Class BooleanSelectLink

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, com.globalmentor.model.MutableValued<Boolean>, com.globalmentor.model.Valued<Boolean>, ActionControl, ActionValueControl<Boolean>, Component, Control, InputFocusableComponent, LabelComponent, LabelDisplayableComponent, LinkControl, SelectActionControl, SelectLinkControl, ValueControl<Boolean>, ValuedComponent<Boolean>, ActionListenable, ActionModel, Displayable, Enableable, InfoModel, LabelModel, Model, Selectable, PresentationModel, ValueModel<Boolean>, DepictedObject

public class BooleanSelectLink extends AbstractBooleanSelectActionControl implements SelectLinkControl
Link that stores a Boolean value in its model representing the selected state. A validator requiring a non-null value is automatically installed.
Author:
Garret Wilson
  • Constructor Details

    • BooleanSelectLink

      public BooleanSelectLink()
      Default constructor.
    • BooleanSelectLink

      public BooleanSelectLink(InfoModel infoModel, ActionModel actionModel, ValueModel<Boolean> valueModel, Enableable enableable)
      Info model, action model, value model, and enableable object constructor.
      Parameters:
      infoModel - The component info model.
      actionModel - The component action model.
      valueModel - The component value model.
      enableable - The enableable object in which to store enabled status.
      Throws:
      NullPointerException - if the given info model, action model, and/or enableable object is null.
    • BooleanSelectLink

      public BooleanSelectLink(ValuePrototype<Boolean> valuePrototype)
      Prototype constructor.
      Parameters:
      valuePrototype - The prototype on which this component should be based.