Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.FormLayoutConstraints

java.lang.Object
  |
  +--uk.co.ist.mwt.FormLayoutConstraints

public class FormLayoutConstraints
extends java.lang.Object
implements uk.co.ist.mwt.FormConstants
FormLayoutConstraints objects are used to set the constraints on the resize behaviour of components laid out by a FormLayoutManager. For a description of how to use the FormLayoutManager with this class, see the documentation on the FormLayoutManager, and consult a good book on Motif...


Field Summary
int bottomAttachment
          The type of attachment on the bottom of the component
java.awt.Component bottomComponent
          If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the bottom attachment.
int bottomOffset
          The offset between the attached-to position and the bottom side of the component
int bottomPosition
          If the attachment is kAttachPosition, the numerator of the fraction of the parent component's height to which the child's bottom side is attached.
int leftAttachment
          The type of attachment on the left of the component
java.awt.Component leftComponent
          If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the left attachment.
int leftOffset
          The offset between the attached-to position and the left side of the component
int leftPosition
          If the attachment is kAttachPosition, the numerator of the fraction of the parent component's width to which the child's left side is attached.
boolean resizable
          Is this component resizeable?
int rightAttachment
          The type of attachment on the right of the component
java.awt.Component rightComponent
          If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the right attachment.
int rightOffset
          The offset between the attached-to position and the right side of the component
int rightPosition
          If the attachment is kAttachPosition, the numerator of the fraction of the parent component's width to which the child's right side is attached.
int topAttachment
          The type of attachment on the top of the component
java.awt.Component topComponent
          If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the top attachment.
int topOffset
          The offset between the attached-to position and the top side of the component
int topPosition
          If the attachment is kAttachPosition, the numerator of the fraction of the parent component's height to which the child's top side is attached.
 
Method Summary
java.lang.String toString()
          Converts the attachment into a human-readable form
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

bottomAttachment

public int bottomAttachment
The type of attachment on the bottom of the component

bottomOffset

public int bottomOffset
The offset between the attached-to position and the bottom side of the component

bottomPosition

public int bottomPosition
If the attachment is kAttachPosition, the numerator of the fraction of the parent component's height to which the child's bottom side is attached. The denominator is specified on the FormLayoutManager, using its fractionBase attribute.

bottomComponent

public java.awt.Component bottomComponent
If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the bottom attachment.

leftAttachment

public int leftAttachment
The type of attachment on the left of the component

leftOffset

public int leftOffset
The offset between the attached-to position and the left side of the component

leftPosition

public int leftPosition
If the attachment is kAttachPosition, the numerator of the fraction of the parent component's width to which the child's left side is attached. The denominator is specified on the FormLayoutManager, using its fractionBase attribute.

leftComponent

public java.awt.Component leftComponent
If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the left attachment.

rightAttachment

public int rightAttachment
The type of attachment on the right of the component

rightOffset

public int rightOffset
The offset between the attached-to position and the right side of the component

rightPosition

public int rightPosition
If the attachment is kAttachPosition, the numerator of the fraction of the parent component's width to which the child's right side is attached. The denominator is specified on the FormLayoutManager, using its fractionBase attribute.

rightComponent

public java.awt.Component rightComponent
If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the right attachment.

topAttachment

public int topAttachment
The type of attachment on the top of the component

topOffset

public int topOffset
The offset between the attached-to position and the top side of the component

topPosition

public int topPosition
If the attachment is kAttachPosition, the numerator of the fraction of the parent component's height to which the child's top side is attached. The denominator is specified on the FormLayoutManager, using its fractionBase attribute.

topComponent

public java.awt.Component topComponent
If the attachment type is kAttachComponent or kAttachOppositeComponent then this specifies the component to whose position this component's is relative for the top attachment.

resizable

public boolean resizable
Is this component resizeable? This is currently unused.
Method Detail

toString

public java.lang.String toString()
Converts the attachment into a human-readable form
Returns:
the human-readable form
Overrides:
toString in class java.lang.Object

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD