Class ComboBoxEditor

java.lang.Object
org.esa.snap.core.param.AbstractParamEditor
org.esa.snap.core.param.editors.ComboBoxEditor
All Implemented Interfaces:
ParamEditor, ParamExceptionHandler

public class ComboBoxEditor extends AbstractParamEditor
An editor which uses a JComboBox.
  • Constructor Details

    • ComboBoxEditor

      public ComboBoxEditor(Parameter parameter)
  • Method Details

    • getComboBox

      public JComboBox getComboBox()
    • getTextComponent

      public JTextComponent getTextComponent()
    • 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: AbstractParamEditor
      Initialized 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:
      initUI in class AbstractParamEditor
    • updateUI

      public void updateUI()
      Description copied from class: AbstractParamEditor
      Tells 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:
      updateUI in interface ParamEditor
      Overrides:
      updateUI in class AbstractParamEditor
    • reconfigureUI

      public void reconfigureUI()
      Description copied from class: AbstractParamEditor
      Tells the UI component to reconfigure itself, since the parameter's properties have changed.

      The default implementation simply calls the updateUI method.

      Specified by:
      reconfigureUI in interface ParamEditor
      Overrides:
      reconfigureUI in class AbstractParamEditor