Class MenuLayout
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- io.guise.framework.event.GuiseBoundPropertyObject
-
- io.guise.framework.component.layout.AbstractLayout<T>
-
- io.guise.framework.component.layout.AbstractFlowLayout<MenuConstraints>
-
- io.guise.framework.component.layout.MenuLayout
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Layout<MenuConstraints>
public class MenuLayout extends AbstractFlowLayout<MenuConstraints>
A layout for a menu that flows along an axis.- 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 io.guise.framework.component.layout.AbstractFlowLayout
ALIGNMENT_PROPERTY, FLOW_PROPERTY, GAP_AFTER_PROPERTY, GAP_BEFORE_PROPERTY, GAP_BETWEEN_PROPERTY, WRAPPED_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description MenuLayout(Flow flow)
Flow constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuConstraints
createDefaultConstraints()
Creates default constraints for the layout component.java.lang.Class<? extends MenuConstraints>
getConstraintsClass()
-
Methods inherited from class io.guise.framework.component.layout.AbstractFlowLayout
getAlignment, getFlow, getGapAfter, getGapBefore, getGapBetween, isWrapped, setAlignment, setFlow, setGap, setGapAfter, setGapBefore, setGapBetween, setWrapped
-
Methods inherited from class io.guise.framework.component.layout.AbstractLayout
addComponent, componentConstraintsChanged, fireConstraintsPropertyChange, getComponentConstraintsChangeListener, getConstraints, getConstraintsPropertyChangeListener, getOwner, removeComponent, setOwner
-
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
-
-
-
-
Constructor Detail
-
MenuLayout
public MenuLayout(Flow flow)
Flow constructor.- Parameters:
flow
- The logical axis (line or page) along which information is flowed.- Throws:
java.lang.NullPointerException
- if the flow axis isnull
.
-
-
Method Detail
-
getConstraintsClass
public java.lang.Class<? extends MenuConstraints> getConstraintsClass()
- Returns:
- The class representing the type of constraints appropriate for this layout.
-
createDefaultConstraints
public MenuConstraints createDefaultConstraints()
Description copied from interface:Layout
Creates default constraints for the layout component.- Returns:
- New default constraints for the layout component.
-
-