gate.gui.teamware
Class AnnotationSetNameComboEditor
java.lang.Object
gate.gui.teamware.AnnotationSetNameComboEditor
- All Implemented Interfaces:
- FocusListener, EventListener, ComboBoxEditor
class AnnotationSetNameComboEditor
- extends Object
- implements ComboBoxEditor, FocusListener
Combo box editor for annotation set names. When the text field is
empty, it displays the text "<Default annotation set>" in
italics. Other than that, it delegates to the underlying default
editor.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SET_TEXT
public static final String DEFAULT_SET_TEXT
- See Also:
- Constant Field Values
realEditor
private ComboBoxEditor realEditor
normalFont
private Font normalFont
italicFont
private Font italicFont
isEmpty
private boolean isEmpty
AnnotationSetNameComboEditor
AnnotationSetNameComboEditor(ComboBoxEditor realEditor)
addActionListener
public void addActionListener(ActionListener l)
- Specified by:
addActionListener in interface ComboBoxEditor
getEditorComponent
public Component getEditorComponent()
- Specified by:
getEditorComponent in interface ComboBoxEditor
getItem
public Object getItem()
- Specified by:
getItem in interface ComboBoxEditor
removeActionListener
public void removeActionListener(ActionListener l)
- Specified by:
removeActionListener in interface ComboBoxEditor
selectAll
public void selectAll()
- Specified by:
selectAll in interface ComboBoxEditor
setItem
public void setItem(Object item)
- Specified by:
setItem in interface ComboBoxEditor
setItem
private void setItem(Object item,
boolean updateFocus)
- Set the current item. If updateFocus is true, call the relevant
FocusListener method.
focusGained
public void focusGained(FocusEvent e)
- Specified by:
focusGained in interface FocusListener
focusLost
public void focusLost(FocusEvent e)
- Specified by:
focusLost in interface FocusListener