chrriis.uihierarchy.constraints
Class FlowHConstraints

java.lang.Object
  extended bychrriis.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)

Constructor Summary
FlowHConstraints()
           
 
Method Summary
 Object createConstraints(SingleLevelAccessor accessor, Container parentContainer, Object constraints)
          Create the constraints for a flow layout.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowHConstraints

public FlowHConstraints()
Method Detail

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.