Class TaskCardConstraints
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- io.guise.framework.component.layout.AbstractConstraints
-
- io.guise.framework.component.layout.ControlConstraints
-
- io.guise.framework.component.layout.CardConstraints
-
- io.guise.framework.component.layout.TaskCardConstraints
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Constraints
,Displayable
,Enableable
,InfoModel
,LabelModel
,Model
public class TaskCardConstraints extends CardConstraints
Constraints on an individual component representing a task in a card layout.- Author:
- Garret Wilson
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TASK_STATE_PROPERTY
The task state bound property.-
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Fields inherited from interface io.guise.framework.model.Displayable
DISPLAYED_PROPERTY
-
Fields inherited from interface io.guise.framework.model.Enableable
ENABLED_PROPERTY
-
Fields inherited from interface io.guise.framework.model.InfoModel
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY
-
Fields inherited from interface io.guise.framework.model.LabelModel
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description TaskCardConstraints()
Default constructor.TaskCardConstraints(boolean enabled)
Enabled constructor.TaskCardConstraints(InfoModel infoModel)
Info model constructor.TaskCardConstraints(InfoModel infoModel, boolean enabled)
Info model and enabled constructor.TaskCardConstraints(java.lang.String label)
Label constructor.TaskCardConstraints(java.lang.String label, boolean enabled)
Label and enabled constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.globalmentor.model.TaskState
getTaskState()
void
setTaskState(com.globalmentor.model.TaskState newTaskState)
Sets the task state of the card.-
Methods inherited from class io.guise.framework.component.layout.CardConstraints
getDescription, getDescriptionContentType, getGlyphURI, getInfo, getInfoContentType, getInfoModel, getLabel, getLabelContentType, setDescription, setDescriptionContentType, setGlyphURI, setInfo, setInfoContentType, setLabel, setLabelContentType
-
Methods inherited from class io.guise.framework.component.layout.ControlConstraints
isDisplayed, isEnabled, setDisplayed, setEnabled
-
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.guise.framework.model.Displayable
isDisplayed, setDisplayed
-
Methods inherited from interface io.guise.framework.model.Enableable
isEnabled, setEnabled
-
-
-
-
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 isnull
.
-
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 isnull
.
-
-
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
-
-