public class ComboBoxEditor extends AbstractParamEditor
JComboBox
.Constructor and Description |
---|
ComboBoxEditor(Parameter parameter) |
Modifier and Type | Method and Description |
---|---|
JComboBox |
getComboBox() |
JComponent |
getEditorComponent()
Gets the UI component used to edit the parameter's value.
|
JTextComponent |
getTextComponent() |
protected void |
initUI()
Initialized the UI of this editor.
|
void |
reconfigureUI()
Tells the UI component to reconfigure itself, since the parameter's properties have changed.
|
void |
updateUI()
Tells the UI to update it's state.
|
checkParameterValue, getComponent, getDefaultActionListener, getDefaultInputVerifier, getExceptionHandler, getLabelComponent, getParameter, getPhysUnitLabelComponent, handleParamException, isEnabled, nameComponent, nameEditorComponent, nameLabelComponent, nameUnitComponent, setDefaultLabelComponent, setDefaultPhysUnitLabelComponent, setEnabled, setLabelComponent, setParameterValue, setPhysUnitLabelComponent
public ComboBoxEditor(Parameter parameter)
public JComboBox getComboBox()
public JTextComponent getTextComponent()
public JComponent getEditorComponent()
protected void initUI()
AbstractParamEditor
The default implementation creates a label component for the parameter's "label" and "physicalUnit" properties.
initUI
in class AbstractParamEditor
public void updateUI()
AbstractParamEditor
Note: If you override this method, you should call this base class version first.
updateUI
in interface ParamEditor
updateUI
in class AbstractParamEditor
public void reconfigureUI()
AbstractParamEditor
The default implementation simply calls the updateUI
method.
reconfigureUI
in interface ParamEditor
reconfigureUI
in class AbstractParamEditor
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.