Class TaskCardConstraints

    • Field Detail

      • TASK_STATE_PROPERTY

        public static final java.lang.String TASK_STATE_PROPERTY
        The task state bound property.
    • Constructor Detail

      • TaskCardConstraints

        public TaskCardConstraints()
        Default constructor.
      • TaskCardConstraints

        public TaskCardConstraints​(boolean enabled)
        Enabled constructor.
        Parameters:
        enabled - Whether the card is enabled.
      • TaskCardConstraints

        public TaskCardConstraints​(java.lang.String label)
        Label constructor.
        Parameters:
        label - The text of the label.
      • TaskCardConstraints

        public TaskCardConstraints​(java.lang.String label,
                                   boolean enabled)
        Label and enabled constructor.
        Parameters:
        label - The text of the label.
        enabled - Whether the card is enabled.
      • TaskCardConstraints

        public TaskCardConstraints​(InfoModel infoModel)
        Info model constructor.
        Parameters:
        infoModel - The info model representing the card label.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
      • TaskCardConstraints

        public TaskCardConstraints​(InfoModel infoModel,
                                   boolean enabled)
        Info model and enabled constructor.
        Parameters:
        infoModel - The info model representing the card label.
        enabled - Whether the card is enabled.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
    • Method Detail

      • getTaskState

        public com.globalmentor.model.TaskState getTaskState()
        Returns:
        The current task state of this card, or null if no task has been started in relation to this card.
      • setTaskState

        public void setTaskState​(com.globalmentor.model.TaskState newTaskState)
        Sets the task state of the card. This is a bound property.
        Parameters:
        newTaskState - true if the corresponding card can be selected.
        See Also:
        TASK_STATE_PROPERTY