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
Constraints on an individual component representing a task in a card layout.
- Author:
- Garret Wilson
-
Field Summary
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
ConstructorDescriptionDefault constructor.TaskCardConstraints
(boolean enabled) Enabled constructor.TaskCardConstraints
(InfoModel infoModel) Info model constructor.TaskCardConstraints
(InfoModel infoModel, boolean enabled) Info model and enabled constructor.TaskCardConstraints
(String label) Label constructor.TaskCardConstraints
(String label, boolean enabled) Label and enabled constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.globalmentor.model.TaskState
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
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.globalmentor.beans.PropertyConstrainable
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
-
Field Details
-
TASK_STATE_PROPERTY
The task state bound property.
-
-
Constructor Details
-
TaskCardConstraints
public TaskCardConstraints()Default constructor. -
TaskCardConstraints
public TaskCardConstraints(boolean enabled) Enabled constructor.- Parameters:
enabled
- Whether the card is enabled.
-
TaskCardConstraints
Label constructor.- Parameters:
label
- The text of the label.
-
TaskCardConstraints
Label and enabled constructor.- Parameters:
label
- The text of the label.enabled
- Whether the card is enabled.
-
TaskCardConstraints
Info model constructor.- Parameters:
infoModel
- The info model representing the card label.- Throws:
NullPointerException
- if the given info model isnull
.
-
TaskCardConstraints
Info model and enabled constructor.- Parameters:
infoModel
- The info model representing the card label.enabled
- Whether the card is enabled.- Throws:
NullPointerException
- if the given info model isnull
.
-
-
Method Details
-
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:
-