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>
public class FlowLayout extends AbstractFlowLayout<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
-
-
Constructor Summary
Constructors Constructor Description FlowLayout()
Default constructor withFlow.PAGE
layout.FlowLayout(Flow flow)
Flow constructor with no wrapping.FlowLayout(Flow flow, boolean wrapped)
Flow and wrap constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowConstraints
createDefaultConstraints()
Creates default constraints for the layout component.java.lang.Class<? extends FlowConstraints>
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
-
FlowLayout
public FlowLayout()
Default constructor withFlow.PAGE
layout.
-
FlowLayout
public FlowLayout(Flow flow)
Flow constructor with no wrapping.- Parameters:
flow
- The logical axis (line or page) along which information is flowed.- Throws:
java.lang.NullPointerException
- if the flow axis isnull
.
-
FlowLayout
public FlowLayout(Flow flow, boolean wrapped)
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:
java.lang.NullPointerException
- if the flow axis isnull
.
-
-
Method Detail
-
getConstraintsClass
public java.lang.Class<? extends FlowConstraints> getConstraintsClass()
- Returns:
- The class representing the type of constraints appropriate for this layout.
-
createDefaultConstraints
public FlowConstraints createDefaultConstraints()
Description copied from interface:Layout
Creates default constraints for the layout component.- Returns:
- New default constraints for the layout component.
-
-