com.jaxfront.swing.ui.visualizers
Class SimpleTypeComboBoxEditor
java.lang.Object
javax.swing.plaf.basic.BasicComboBoxEditor
com.jaxfront.swing.ui.visualizers.SimpleTypeComboBoxEditor
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.FocusListener, java.util.EventListener, javax.swing.ComboBoxEditor
public class SimpleTypeComboBoxEditor
- extends javax.swing.plaf.basic.BasicComboBoxEditor
- implements java.awt.event.ActionListener
This class represents a SimpleTypeComboBoxEditor which is derived from the class
BasicComboBoxEditor. This class replaces the standard ComboBox visualizer view
component with a JAXFront specific AbstractSimpleTypeView. So the ComboBox can take advantage
of the JAXFront Type infrastructure.
- Version:
- 1.4.1
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
javax.swing.plaf.basic.BasicComboBoxEditor.UIResource |
Methods inherited from class javax.swing.plaf.basic.BasicComboBoxEditor |
addActionListener, focusGained, focusLost, removeActionListener, selectAll |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTypeComboBoxEditor
public SimpleTypeComboBoxEditor(SimpleType simpleType,
Type context)
getVisualizer
public AbstractSimpleTypeView getVisualizer()
getEditorComponent
public java.awt.Component getEditorComponent()
- Specified by:
getEditorComponent
in interface javax.swing.ComboBoxEditor
- Overrides:
getEditorComponent
in class javax.swing.plaf.basic.BasicComboBoxEditor
- See Also:
ComboBoxEditor.getEditorComponent()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
setItem
public void setItem(java.lang.Object anObject)
- Specified by:
setItem
in interface javax.swing.ComboBoxEditor
- Overrides:
setItem
in class javax.swing.plaf.basic.BasicComboBoxEditor
- See Also:
ComboBoxEditor.setItem(java.lang.Object)
getItem
public java.lang.Object getItem()
- Specified by:
getItem
in interface javax.swing.ComboBoxEditor
- Overrides:
getItem
in class javax.swing.plaf.basic.BasicComboBoxEditor
- See Also:
ComboBoxEditor.getItem()