Class BooleanSelectToolButton

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

public class BooleanSelectToolButton extends AbstractBooleanSelectActionControl implements SelectButtonControl, ToolButtonControl
Button that stores a Boolean value in its model representing the selected state. A validator requiring a non-null value is automatically installed. Tool buttons are typically presented on toolbars and rendered differently than a normal button; they usually are more subtle and may only present button decorations upon certain gestures such as mouse overs.
Author:
Garret Wilson
  • Constructor Details

    • BooleanSelectToolButton

      public BooleanSelectToolButton()
      Default constructor.
    • BooleanSelectToolButton

      public BooleanSelectToolButton(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.
    • BooleanSelectToolButton

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