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
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 io.guise.framework.model.Displayable
DISPLAYED_PROPERTY
-
Fields inherited from interface io.guise.framework.model.Enableable
ENABLED_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description ControlConstraints()
Default constructor.ControlConstraints(boolean enabled)
Enabled constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isDisplayed()
boolean
isEnabled()
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
-
-
-
-
Method Detail
-
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:
Displayable.DISPLAYED_PROPERTY
-
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:
Enableable.ENABLED_PROPERTY
-
-