Class FlowLayout
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<FlowConstraints>
io.guise.framework.component.layout.FlowLayout
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Layout<FlowConstraints>
A layout that flows information 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
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
-
Constructor Summary
ConstructorDescriptionDefault constructor withFlow.PAGE
layout.FlowLayout
(Flow flow) Flow constructor with no wrapping.FlowLayout
(Flow flow, boolean wrapped) Flow and wrap constructor. -
Method Summary
Modifier and TypeMethodDescriptionCreates default constraints for the layout component.Class<? extends FlowConstraints>
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
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
FlowLayout
public FlowLayout()Default constructor withFlow.PAGE
layout. -
FlowLayout
Flow constructor with no wrapping.- Parameters:
flow
- The logical axis (line or page) along which information is flowed.- Throws:
NullPointerException
- if the flow axis isnull
.
-
FlowLayout
Flow and wrap constructor.- Parameters:
flow
- The logical axis (line or page) along which information is flowed.wrapped
- Whether flowed children should be wrapped when the flow extent is reached.- Throws:
NullPointerException
- if the flow axis isnull
.
-
-
Method Details
-
getConstraintsClass
- Returns:
- The class representing the type of constraints appropriate for this layout.
-
createDefaultConstraints
Description copied from interface:Layout
Creates default constraints for the layout component.- Returns:
- New default constraints for the layout component.
-