return buttons.get(value);
}
if ((value == null) || !(value instanceof CheckWikiDetection)) {
return null;
}
CheckWikiDetection detection = (CheckWikiDetection) value;
JButton button = new JButton(Utilities.getImageIcon(
"gnome-edit-find.png", EnumImageSize.SMALL));
button.setBorderPainted(false);
button.setContentAreaFilled(false);
button.setActionCommand(Integer.toString(detection.getLocation()));
button.setEnabled(textPane != null);
button.addActionListener(EventHandler.create(
ActionListener.class, this, "goToDetection", "actionCommand"));
buttons.put(value, button);
return button;