chrriis.uihierarchy.constraints
Class FlowHConstraints
java.lang.Object
chrriis.uihierarchy.constraints.FlowHConstraints
- All Implemented Interfaces:
- LayoutHConstraints
- public class FlowHConstraints
- extends Object
- implements LayoutHConstraints
The constraints for a Flow layout, which are only meant to raise an
exception as a flow layout does not accept constraints.
This is meant to catch the common mistake of a developer specifing some
constraints but omitting to set the layout of the parent component, which by
default is usually a Flow layout that does not complain about the given
constraints.
- Version:
- 1.1 2003.02.24
- Author:
- Christopher Deckers (chrriis@brainlex.com)
FlowHConstraints
public FlowHConstraints()
createConstraints
public Object createConstraints(SingleLevelAccessor accessor,
Container parentContainer,
Object constraints)
- Create the constraints for a flow layout.
- Specified by:
createConstraints
in interface LayoutHConstraints
- Parameters:
accessor
- The accessor of the level for which to create the
constraints.parentContainer
- The parent container.constraints
- The constraints of the component.
- Returns:
- null if the constraints are null, or raises an exception as it does
not allow the use of constraints.