Package org.esa.snap.core.param
Class AbstractParamXEditor
- java.lang.Object
-
- org.esa.snap.core.param.AbstractParamEditor
-
- org.esa.snap.core.param.AbstractParamXEditor
-
- All Implemented Interfaces:
ParamEditor,ParamExceptionHandler
- Direct Known Subclasses:
ColorEditor,TextFieldXEditor
public abstract class AbstractParamXEditor extends AbstractParamEditor
AAbstractParamXEditoris base class for editors which use special purpose editors for editing a parameter value. For example, the special purpose editor could be a color chooser or file chooser dialog. The special purpose editor is invoked by pressing the "..." button usually located to the right of the value display.- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractParamXEditor(Parameter parameter, boolean useDefaultVerifier)Creates the object with a given parameter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected AbstractButtoncreateXEditorButton()JComponentgetEditorComponent()Gets the UI component used to edit the parameter's value.abstract JComponentgetEditorComponentChild()protected AbstractButtongetXEditorButton()protected IcongetXEditorIcon()Gets the "standard" edit icon used for parameter editors.protected StringgetXEditorTitle()protected voidinitUI()Initialized the UI of this editor.protected abstract voidinitUIChild()protected abstract voidinvokeXEditor()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, reconfigureUI, setDefaultLabelComponent, setDefaultPhysUnitLabelComponent, setEnabled, setLabelComponent, setParameterValue, setPhysUnitLabelComponent
-
-
-
-
Constructor Detail
-
AbstractParamXEditor
protected AbstractParamXEditor(Parameter parameter, boolean useDefaultVerifier)
Creates the object with a given parameter.- Parameters:
parameter- theParameterto be edited.useDefaultVerifier-trueif a default verifier should be used
-
-
Method Detail
-
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()
Tells the UI to update it's state.Note: If you override this method, please call the super class version first.
- Specified by:
updateUIin interfaceParamEditor- Overrides:
updateUIin classAbstractParamEditor
-
initUIChild
protected abstract void initUIChild()
-
getEditorComponentChild
public abstract JComponent getEditorComponentChild()
-
invokeXEditor
protected abstract void invokeXEditor()
-
getXEditorButton
protected AbstractButton getXEditorButton()
-
createXEditorButton
protected AbstractButton createXEditorButton()
-
getXEditorIcon
protected Icon getXEditorIcon()
Gets the "standard" edit icon used for parameter editors.
-
getXEditorTitle
protected String getXEditorTitle()
-
-