MDateSelector

mseries.utils
Class FormConstraints

java.lang.Object
  extended by mseries.utils.FormConstraints
All Implemented Interfaces:
Serializable, Cloneable

public class FormConstraints
extends Object
implements Cloneable, Serializable

The FormConstraints class specifies constraints for components that are laid out using the FormLayout class.

See Also:
FormLayout, Serialized Form

Field Summary
 int anchor
          This field is used when the component is smaller than its display area.
static int CENTER
          Put the component in the center of its display area.
static int EAST
          Put the component on the right side of its display area, centered vertically.
 boolean fill
          Set this to true of the components is not to take part in column width calculations, it will fill the column which is wht widht of the widest component in the column
 int gridx
          Specifies the cell at the left of the component's display area, where the leftmost cell has gridx=0.
 int gridy
          Specifies the cell at the top of the component's display area, where the topmost cell has gridy=0.
 Insets insets
          Speifies the border around the component, this is usually left to the default value
static int NORTH
          Put the component at the top of its display area, centered horizontally.
static int NORTHEAST
          Put the component at the top-right corner of its display area.
static int NORTHWEST
          Put the component at the top-left corner of its display area.
static int RELATIVE
          Specify that this component is to be placed next to the previously added component (gridx, gridy).
static int SOUTH
          Put the component at the bottom of its display area, centered horizontally.
static int SOUTHEAST
          Put the component at the bottom-right corner of its display area.
static int SOUTHWEST
          Put the component at the bottom-left corner of its display area.
 boolean spansColumns
          A component that spans columns will be drawn at its preferred size if there is enough remaining space in the container.
static int WEST
          Put the component on the left side of its display area, centered vertically.
 
Constructor Summary
FormConstraints()
          Creates a FormConstraint object with all of its fields set to their default value.
 
Method Summary
 Object clone()
          Creates a copy of this form constraint.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELATIVE

public static final int RELATIVE
Specify that this component is to be placed next to the previously added component (gridx, gridy).

See Also:
gridx, gridy, Constant Field Values

CENTER

public static final int CENTER
Put the component in the center of its display area.

See Also:
Constant Field Values

NORTH

public static final int NORTH
Put the component at the top of its display area, centered horizontally.

See Also:
Constant Field Values

NORTHEAST

public static final int NORTHEAST
Put the component at the top-right corner of its display area.

See Also:
Constant Field Values

EAST

public static final int EAST
Put the component on the right side of its display area, centered vertically.

See Also:
Constant Field Values

SOUTHEAST

public static final int SOUTHEAST
Put the component at the bottom-right corner of its display area.

See Also:
Constant Field Values

SOUTH

public static final int SOUTH
Put the component at the bottom of its display area, centered horizontally.

See Also:
Constant Field Values

SOUTHWEST

public static final int SOUTHWEST
Put the component at the bottom-left corner of its display area.

See Also:
Constant Field Values

WEST

public static final int WEST
Put the component on the left side of its display area, centered vertically.

See Also:
Constant Field Values

NORTHWEST

public static final int NORTHWEST
Put the component at the top-left corner of its display area.

See Also:
Constant Field Values

spansColumns

public boolean spansColumns
A component that spans columns will be drawn at its preferred size if there is enough remaining space in the container.


insets

public Insets insets
Speifies the border around the component, this is usually left to the default value


gridx

public int gridx
Specifies the cell at the left of the component's display area, where the leftmost cell has gridx=0. The value RELATIVE specifies that the component be placed just to the right of the component that was added to the container just before this component was added.

The default value is RELATIVE. gridx should be a non-negative value.

See Also:
clone(), gridy

gridy

public int gridy
Specifies the cell at the top of the component's display area, where the topmost cell has gridy=0. The value RELATIVE specifies that the component be placed just below the component that was added to the container just before this component was added.

The default value is RELATIVE. gridy should be a non-negative value.

See Also:
clone(), gridx

anchor

public int anchor
This field is used when the component is smaller than its display area. It determines where, within the display area, to place the component. Possible values are CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, and NORTHWEST. The default value is CENTER.

See Also:
clone()

fill

public boolean fill
Set this to true of the components is not to take part in column width calculations, it will fill the column which is wht widht of the widest component in the column

Constructor Detail

FormConstraints

public FormConstraints()
Creates a FormConstraint object with all of its fields set to their default value.

Method Detail

clone

public Object clone()
Creates a copy of this form constraint.

Overrides:
clone in class Object
Returns:
a copy of this form constraint

MDateSelector

Copyright © 2001-2007 M Newstead. All Rights Reserved.