Class AbstractEnableablePrototype

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Enableable, InfoModel, LabelModel, Model, Prototype
Direct Known Subclasses:
AbstractActionPrototype

public abstract class AbstractEnableablePrototype extends AbstractPrototype implements Enableable
Contains enableable prototype information, appropriate for a control, for example.
Author:
Garret Wilson
  • Constructor Details

    • AbstractEnableablePrototype

      public AbstractEnableablePrototype()
      Default constructor.
    • AbstractEnableablePrototype

      public AbstractEnableablePrototype(String label)
      Label constructor.
      Parameters:
      label - The text of the label, or null if there should be no label.
    • AbstractEnableablePrototype

      public AbstractEnableablePrototype(String label, URI icon)
      Label and icon constructor.
      Parameters:
      label - The text of the label, or null if there should be no label.
      icon - The icon URI, which may be a resource URI, or null if there is no icon URI.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface Enableable
      Returns:
      Whether the object is enabled and can receive user input.
    • setEnabled

      public void setEnabled(boolean newEnabled)
      Description copied from interface: Enableable
      Sets whether the object is enabled and can receive user input. This is a bound property of type Boolean.
      Specified by:
      setEnabled in interface Enableable
      Parameters:
      newEnabled - true if the object should indicate and accept user input.
      See Also: