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.
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
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 constrainedconstraint - 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
Contact Etienne Studer for feedback.