com.guiseframework.component.layout
Class ControlConstraints

java.lang.Object
  extended by com.globalmentor.beans.BoundPropertyObject
      extended by com.guiseframework.component.layout.AbstractConstraints
          extended by com.guiseframework.component.layout.ControlConstraints
All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Constraints, Displayable, Enableable
Direct Known Subclasses:
CardConstraints

public class ControlConstraints
extends AbstractConstraints
implements Displayable, Enableable

Constraints on a component in a container control. Each component can be specified as bing displayed and/or enabled.

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 com.guiseframework.model.Displayable
DISPLAYED_PROPERTY
 
Fields inherited from interface com.guiseframework.model.Enableable
ENABLED_PROPERTY
 
Constructor Summary
ControlConstraints()
          Default constructor.
ControlConstraints(boolean enabled)
          Enabled constructor.
 
Method Summary
 boolean isDisplayed()
           
 boolean isEnabled()
           
 void setDisplayed(boolean newDisplayed)
          Sets whether the component is displayed or has no representation, taking up no space.
 void setEnabled(boolean newEnabled)
          Sets whether the the component is enabled.
 
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
 

Constructor Detail

ControlConstraints

public ControlConstraints()
Default constructor.


ControlConstraints

public ControlConstraints(boolean enabled)
Enabled constructor.

Parameters:
enabled - Whether the component is enabled.
Method Detail

isDisplayed

public boolean isDisplayed()
Specified by:
isDisplayed in interface Displayable
Returns:
Whether the component is displayed or has no representation, taking up no space.

setDisplayed

public void setDisplayed(boolean newDisplayed)
Sets whether the component is displayed or has no representation, taking up no space. This is a bound property of type Boolean.

Specified by:
setDisplayed in interface Displayable
Parameters:
newDisplayed - true if the component should be displayed, else false if the component should take up no space.
See Also:
Displayable.DISPLAYED_PROPERTY

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Enableable
Returns:
Whether the component is enabled.

setEnabled

public void setEnabled(boolean newEnabled)
Sets whether the the component is enabled. This is a bound property of type Boolean.

Specified by:
setEnabled in interface Enableable
Parameters:
newEnabled - true if the corresponding component is enabled.
See Also:
Enableable.ENABLED_PROPERTY


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