Class LabelOption

All Implemented Interfaces:
Serializable, Option, OptionElement, OptionProperties

public class LabelOption extends AbstractOption
An option for simple labels that have text, an icon, or both.
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • LabelOption

      public LabelOption()
  • Method Details

    • createUI

      public void createUI()
      Create the UI components for this option.
      Specified by:
      createUI in class AbstractOptionProperties
    • setValue

      public void setValue(Object value)
      Set the value of this option.
      Overrides:
      setValue in class AbstractOption
      Parameters:
      value - the value as an Object instance.
    • setupValueChangeNotifications

      protected void setupValueChangeNotifications()
      Description copied from class: AbstractOption
      Concrete subclasses should implement this method to properly forward changes in the value edited by the underlying UI component/editor.
      Specified by:
      setupValueChangeNotifications in class AbstractOption
    • setEnabled

      public void setEnabled(boolean enabled)
      Enable or disable this option.
      Parameters:
      enabled - true to enable this option, false to disable it.
    • isPersistent

      public boolean isPersistent()
      This method always returns false, since labels have no value to persist.
      Specified by:
      isPersistent in interface Option
      Overrides:
      isPersistent in class AbstractOption
      Returns:
      false.