borland Packages  Class Hierarchy  jbcl.layout Package  Index 

PaneConstraints component

java.lang.Object
   +----borland.jbcl.layout.PaneConstraints

About the PaneConstraints component

Variables  Constructors  Properties  Methods  

Implements Serializable

The constraint object for adding a component to a container using PaneLayout. Each component specifies a PaneConstraints object that tells the layout manager from which component to take space, and how much of its existing space to take. You use the PaneLayout constraints property editor to modify this information for each component.

For more detailed information on using PaneLayout and the PaneConstraints object, see the topics PaneLayout in the online Building Applications with JBuilder and PaneLayout constraints property editor in the online F1 Help topics.


PaneConstraints variables

Variables implemented in this class

PaneConstraints constructors

PaneConstraints properties

*Read-only properties **Write-only properties

Properties implemented in java.lang.Object

PaneConstraints methods

Methods implemented in this class

Methods implemented in java.lang.Object


PaneConstraints variables

BOTTOM

  public static final String BOTTOM = "Bottom"

LEFT

  public static final String LEFT = "Left"

name

  public String name

position

  public String position

proportion

  public float proportion
Must be between 0 and 1.

RIGHT

  public static final String RIGHT = "Right"

ROOT

  public static final String ROOT = "Root"

splitComponentName

  public String splitComponentName

TOP

  public static final String TOP = "Top"

PaneConstraints constructors

PaneConstraints()

  public PaneConstraints()
Constructs a PaneConstraints object.

PaneConstraints(java.lang.String, java.lang.String, java.lang.String, float)

  public PaneConstraints(java.lang.String name, java.lang.String splitComponentName, java.lang.String position, float proportion)
Constructs a PaneConstraints object according to the following parameters:

Parameters:

name
The component associated with the constraint.
splitComponentName
The component this component takes space from.
position
The side from which the space is taken.
proportion
The percentage of the space taken.

PaneConstraints methods

toString()

  public String toString()
Returns a string that displays the constant values:
name + ": " + splitComponentName + "," + position + "proportion:" + proportion
where:
name
The name of the constraint.
splitComponentName
The constraint name for the component this constraint takes space from.
position
The edge of the split component space will be taken from.
proportion
The proportion of space that will be taken.

Overrides: java.lang.Object.toString()