Class ControlConstraints
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
io.guise.framework.component.layout.AbstractConstraints
io.guise.framework.component.layout.ControlConstraints
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Constraints
,Displayable
,Enableable
- Direct Known Subclasses:
CardConstraints
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 io.guise.framework.model.Displayable
DISPLAYED_PROPERTY
Fields inherited from interface io.guise.framework.model.Enableable
ENABLED_PROPERTY
-
Constructor Summary
ConstructorDescriptionDefault constructor.ControlConstraints
(boolean enabled) Enabled constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
setDisplayed
(boolean newDisplayed) Sets whether the object is displayed or has no representation, taking up no space.void
setEnabled
(boolean newEnabled) Sets whether the object is enabled and can receive user input.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 Details
-
ControlConstraints
public ControlConstraints()Default constructor. -
ControlConstraints
public ControlConstraints(boolean enabled) Enabled constructor.- Parameters:
enabled
- Whether the component is enabled.
-
-
Method Details
-
isDisplayed
public boolean isDisplayed()- Specified by:
isDisplayed
in interfaceDisplayable
- Returns:
- Whether the object is displayed or has no representation, taking up no space.
-
setDisplayed
public void setDisplayed(boolean newDisplayed) Description copied from interface:Displayable
Sets whether the object is displayed or has no representation, taking up no space. This is a bound property of typeBoolean
.- Specified by:
setDisplayed
in interfaceDisplayable
- Parameters:
newDisplayed
-true
if the object should be displayed, elsefalse
if the object should take up no space.- See Also:
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceEnableable
- Returns:
- Whether the object is enabled and can receive user input.
-
setEnabled
public void setEnabled(boolean newEnabled) Description copied from interface:Enableable
Sets whether the object is enabled and can receive user input. This is a bound property of typeBoolean
.- Specified by:
setEnabled
in interfaceEnableable
- Parameters:
newEnabled
-true
if the object should indicate and accept user input.- See Also:
-