relativelayout
Class RelativeConstraints

java.lang.Object
  extended by relativelayout.RelativeConstraints

public class RelativeConstraints
extends Object

A constraint object that associates Bindings with a particular component to be bound.

Author:
Brian Ellis (firebird@andrew.cmu.edu)

Field Summary
static Component PARENT_CONTAINER
          A constant that represents whatever object contains the component associated with these constraints.
 
Constructor Summary
RelativeConstraints()
          Constructor for RelativeConstraints.
RelativeConstraints(Binding... theBindings)
          Constructor for RelativeConstraints.
 
Method Summary
 void addBinding(Binding theBinding)
          Adds an Binding to this constraint.
 void addBindings(Binding... theBindings)
          Adds all of the specified Bindings to this constraint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARENT_CONTAINER

public static final Component PARENT_CONTAINER
A constant that represents whatever object contains the component associated with these constraints.

Constructor Detail

RelativeConstraints

public RelativeConstraints()
Constructor for RelativeConstraints.


RelativeConstraints

public RelativeConstraints(Binding... theBindings)
Constructor for RelativeConstraints. Takes a list of Bindings that will be immediately added to the constraints.

Parameters:
theBindings -
Method Detail

addBinding

public void addBinding(Binding theBinding)
Adds an Binding to this constraint.

Parameters:
theBinding - The Binding to add.

addBindings

public void addBindings(Binding... theBindings)
Adds all of the specified Bindings to this constraint.

Parameters:
theBindings - The Bindings to add.