com.guiseframework.component.layout
Class TaskCardConstraints

java.lang.Object
  extended by com.globalmentor.beans.BoundPropertyObject
      extended by com.guiseframework.component.layout.AbstractConstraints
          extended by com.guiseframework.component.layout.ControlConstraints
              extended by com.guiseframework.component.layout.CardConstraints
                  extended by com.guiseframework.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
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 com.guiseframework.model.InfoModel
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY
 
Fields inherited from interface com.guiseframework.model.LabelModel
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY
 
Fields inherited from interface com.guiseframework.model.Model
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE
 
Fields inherited from interface com.guiseframework.model.Displayable
DISPLAYED_PROPERTY
 
Fields inherited from interface com.guiseframework.model.Enableable
ENABLED_PROPERTY
 
Constructor Summary
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
 com.globalmentor.model.TaskState getTaskState()
           
 void setTaskState(com.globalmentor.model.TaskState newTaskState)
          Sets the task state of the card.
 
Methods inherited from class com.guiseframework.component.layout.CardConstraints
getDescription, getDescriptionContentType, getGlyphURI, getInfo, getInfoContentType, getInfoModel, getLabel, getLabelContentType, setDescription, setDescriptionContentType, setGlyphURI, setInfo, setInfoContentType, setLabel, setLabelContentType
 
Methods inherited from class com.guiseframework.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 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
 
Methods inherited from interface com.guiseframework.model.Displayable
isDisplayed, setDisplayed
 
Methods inherited from interface com.guiseframework.model.Enableable
isEnabled, setEnabled
 

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


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.