Class TabLayout
- 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<ControlConstraints>
-
- io.guise.framework.component.layout.TabLayout
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,com.globalmentor.model.MutableValued<Component>
,com.globalmentor.model.Valued<Component>
,Layout<ControlConstraints>
,Model
,ValueModel<Component>
public class TabLayout extends AbstractValueLayout<ControlConstraints>
A layout that manages child components as a series of tabs. Only one child component is visible at a time. The tab layout maintains its own value model that maintains the current selected component. If a tab implementsActiveable
the tab is set as active when selected and set as inactive when the tab 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 TabLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControlConstraints
createDefaultConstraints()
Creates default constraints for the layout component.java.lang.Class<? extends ControlConstraints>
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 ControlConstraints> getConstraintsClass()
- Returns:
- The class representing the type of constraints appropriate for this layout.
-
createDefaultConstraints
public ControlConstraints createDefaultConstraints()
Description copied from interface:Layout
Creates default constraints for the layout component.- Returns:
- New default constraints for the layout component.
-
-