Class TaskStateSelectLink

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

public class TaskStateSelectLink extends ValueSelectLink<com.globalmentor.model.TaskState>
Selectable link that stores a task state. The link uses selected and unselected icons from the resources using resource keys select.action.selected.glyph and select.action.unselected.glyph, respectively. The link uses task state icons from the resources using resource keys task.state.taskState.glyph, where taskState represents the task state enum value such as TaskState.INCOMPLETE in its resource key form such as task.state.incomplete.glyph, and task.state..glyph for the null task state value.
Author:
Garret Wilson
See Also:
  • Field Details

    • SELECT_ACTION_SELECTED_GLYPH_RESOURCE_URI

      public static final URI SELECT_ACTION_SELECTED_GLYPH_RESOURCE_URI
      The resource URI for the selected icon.
    • SELECT_ACTION_UNSELECTED_GLYPH_RESOURCE_URI

      public static final URI SELECT_ACTION_UNSELECTED_GLYPH_RESOURCE_URI
      The resource URI for the unselected icon.
  • Constructor Details

    • TaskStateSelectLink

      public TaskStateSelectLink()
      Default constructor.
    • TaskStateSelectLink

      public TaskStateSelectLink(InfoModel infoModel, ActionModel actionModel, ValueModel<com.globalmentor.model.TaskState> 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.