layout

com.canoo.ulc.community.layout.application
Class ComponentSpecifications

java.lang.Object
  |
  +--com.canoo.ulc.community.layout.application.ComponentSpecifications

public class ComponentSpecifications
extends Object

Keeps track of the specifications that have been provided for a particular component.


Constructor Summary
ComponentSpecifications(String componentName)
          Create a new set of specifications for the named component.
 
Method Summary
 void addConstraint(AttributeType type, RelativeLayoutConstraint constraint)
          Add a constraint for this component.
 String getComponentName()
          Return the logical name of the component to which these specifications apply.
 Map getConstraints()
          Return a mapping of the the added constraints
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentSpecifications

public ComponentSpecifications(String componentName)
Create a new set of specifications for the named component. We don't currently have an actual ULCComponent associated with the constraints; that will be set later.
Parameters:
componentName - the logical name by which the ULCRelativeLayoutPane knows the component
Method Detail

getComponentName

public String getComponentName()
Return the logical name of the component to which these specifications apply.
Returns:
name by which component is known to the ULCRelativeLayoutPane

getConstraints

public Map getConstraints()
Return a mapping of the the added constraints
Returns:
map containing the added constraints

addConstraint

public void addConstraint(AttributeType type,
                          RelativeLayoutConstraint constraint)
Add a constraint for this component.
Parameters:
type - the attribute whih is to be constrained
constraint - the place from which the attribute's value can be calculated
Throws:
IllegalStateException - if this would cause the component to become overconstrained

toString

public String toString()
Overrides:
toString in class Object

layout

Contact Etienne Studer for feedback.