Class CardLayout
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- io.guise.framework.event.GuiseBoundPropertyObject
-
- io.guise.framework.component.layout.AbstractLayout<T>
-
- io.guise.framework.component.layout.AbstractValueLayout<CardConstraints>
-
- io.guise.framework.component.layout.CardLayout
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,com.globalmentor.model.MutableValued<Component>
,com.globalmentor.model.Valued<Component>
,Layout<CardConstraints>
,Model
,ValueModel<Component>
public class CardLayout extends AbstractValueLayout<CardConstraints>
A layout that manages child components as an ordered stack of cards. Only one child component is visible at a time. The card layout maintains its own value model that maintains the current selected card. If a card implementsActiveable
the card is set as active when selected and set as inactive when the card is unselected.- Author:
- Garret Wilson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.guise.framework.component.layout.AbstractLayout
AbstractLayout.ConstraintsPropertyChangeListener
-
-
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.ValueModel
VALIDATOR_PROPERTY, VALUE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description CardLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardConstraints
createDefaultConstraints()
Creates default constraints for the layout component.java.lang.Class<? extends CardConstraints>
getConstraintsClass()
-
Methods inherited from class io.guise.framework.component.layout.AbstractValueLayout
addComponent, clearValue, getDefaultValue, getOwner, getSelectedIndex, getValidator, getValue, getValueClass, getValueModel, isValidValue, removeComponent, resetValue, setOwner, setSelectedIndex, setValidator, setValue, validateValue
-
Methods inherited from class io.guise.framework.component.layout.AbstractLayout
componentConstraintsChanged, fireConstraintsPropertyChange, getComponentConstraintsChangeListener, getConstraints, getConstraintsPropertyChangeListener
-
Methods inherited from class io.guise.framework.event.GuiseBoundPropertyObject
getSession
-
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.component.layout.Layout
getSession
-
-
-
-
Method Detail
-
getConstraintsClass
public java.lang.Class<? extends CardConstraints> getConstraintsClass()
- Returns:
- The class representing the type of constraints appropriate for this layout.
-
createDefaultConstraints
public CardConstraints createDefaultConstraints()
Description copied from interface:Layout
Creates default constraints for the layout component.- Returns:
- New default constraints for the layout component.
-
-