Class ComboBoxFieldComponentFactory
- java.lang.Object
-
- org.openjump.core.ui.swing.factory.field.ComboBoxFieldComponentFactory
-
- All Implemented Interfaces:
FieldComponentFactory
public class ComboBoxFieldComponentFactory extends Object implements FieldComponentFactory
Factory to build a combobox component.- Version:
- 0.1.0
- Author:
- Michael Michaud
-
-
Constructor Summary
Constructors Constructor Description ComboBoxFieldComponentFactory(WorkbenchContext workbenchContext)
ComboBoxFieldComponentFactory(WorkbenchContext workbenchContext, String option, Object[] items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
createComponent()
JComponent
createComponent(ValueChangeListener listener)
Object
getValue(JComponent component)
void
setValue(JComponent component, Object value)
-
-
-
Constructor Detail
-
ComboBoxFieldComponentFactory
public ComboBoxFieldComponentFactory(WorkbenchContext workbenchContext)
-
ComboBoxFieldComponentFactory
public ComboBoxFieldComponentFactory(WorkbenchContext workbenchContext, String option, Object[] items)
-
-
Method Detail
-
getValue
public Object getValue(JComponent component)
- Specified by:
getValue
in interfaceFieldComponentFactory
-
setValue
public void setValue(JComponent component, Object value)
- Specified by:
setValue
in interfaceFieldComponentFactory
-
createComponent
public JComponent createComponent()
- Specified by:
createComponent
in interfaceFieldComponentFactory
-
createComponent
public JComponent createComponent(ValueChangeListener listener)
- Specified by:
createComponent
in interfaceFieldComponentFactory
-
-