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
A
AbstractParamXEditor is 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
ConstructorsModifierConstructorDescriptionprotectedAbstractParamXEditor(Parameter parameter, boolean useDefaultVerifier) Creates the object with a given parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractButtonGets the UI component used to edit the parameter's value.abstract JComponentprotected AbstractButtonprotected IconGets the "standard" edit icon used for parameter editors.protected Stringprotected voidinitUI()Initialized the UI of this editor.protected abstract voidprotected abstract voidvoidupdateUI()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 Details
-
AbstractParamXEditor
Creates the object with a given parameter.- Parameters:
parameter- theParameterto be edited.useDefaultVerifier-trueif a default verifier should be used
-
-
Method Details
-
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
-
invokeXEditor
protected abstract void invokeXEditor() -
getXEditorButton
-
createXEditorButton
-
getXEditorIcon
Gets the "standard" edit icon used for parameter editors. -
getXEditorTitle
-