Package org.esa.snap.core.param.editors
Class ListEditor
- java.lang.Object
-
- org.esa.snap.core.param.AbstractParamEditor
-
- org.esa.snap.core.param.editors.ListEditor
-
- All Implemented Interfaces:
ParamEditor,ParamExceptionHandler
public class ListEditor extends AbstractParamEditor
An editor which uses aJList.
-
-
Constructor Summary
Constructors Constructor Description ListEditor(Parameter parameter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponentgetEditorComponent()Gets the UI component used to edit the parameter's value.JListgetList()JScrollPanegetListScrollPane()protected voidinitUI()Initialized the UI of this editor.voidreconfigureUI()Tells the UI component to reconfigure itself, since the parameter's properties have changed.voidupdateUI()Tells the UI to update it's state.-
Methods inherited from class org.esa.snap.core.param.AbstractParamEditor
checkParameterValue, getComponent, getDefaultActionListener, getDefaultInputVerifier, getExceptionHandler, getLabelComponent, getParameter, getPhysUnitLabelComponent, handleParamException, isEnabled, nameComponent, nameEditorComponent, nameLabelComponent, nameUnitComponent, setDefaultLabelComponent, setDefaultPhysUnitLabelComponent, setEnabled, setLabelComponent, setParameterValue, setPhysUnitLabelComponent
-
-
-
-
Constructor Detail
-
ListEditor
public ListEditor(Parameter parameter)
-
-
Method Detail
-
getList
public JList getList()
-
getListScrollPane
public JScrollPane getListScrollPane()
-
getEditorComponent
public JComponent getEditorComponent()
Gets the UI component used to edit the parameter's value.- Returns:
- the UI editor component
-
initUI
protected void initUI()
Description copied from class:AbstractParamEditorInitialized the UI of this editor. Called only once within this editor's constructor.The default implementation creates a label component for the parameter's "label" and "physicalUnit" properties.
- Overrides:
initUIin classAbstractParamEditor
-
updateUI
public void updateUI()
Description copied from class:AbstractParamEditorTells the UI to update it's state. The default implementations en-/disables the label components (if any) of this editor.Note: If you override this method, you should call this base class version first.
- Specified by:
updateUIin interfaceParamEditor- Overrides:
updateUIin classAbstractParamEditor
-
reconfigureUI
public void reconfigureUI()
Description copied from class:AbstractParamEditorTells the UI component to reconfigure itself, since the parameter's properties have changed.The default implementation simply calls the
updateUImethod.- Specified by:
reconfigureUIin interfaceParamEditor- Overrides:
reconfigureUIin classAbstractParamEditor
-
-