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 JComponentcreateComponent()JComponentcreateComponent(ValueChangeListener listener)ObjectgetValue(JComponent component)voidsetValue(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:
getValuein interfaceFieldComponentFactory
-
setValue
public void setValue(JComponent component, Object value)
- Specified by:
setValuein interfaceFieldComponentFactory
-
createComponent
public JComponent createComponent()
- Specified by:
createComponentin interfaceFieldComponentFactory
-
createComponent
public JComponent createComponent(ValueChangeListener listener)
- Specified by:
createComponentin interfaceFieldComponentFactory
-
-