|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.layout.ControlConstraints
ControlConstraints is a class containing positioning and alignment information for components managed by layout manager classes which are derived from the LayoutManager3 interface. It allows you to specify:
LayoutManager3
,
ControlLayout
,
ColumnLayout
,
RowLayout
Field Summary | |
static int |
ALIGN_CENTER
Constant used when the control is to be centred within its container. |
static int |
ALIGN_LEFT
Constant used when the control is to be left-aligned within its container. |
static int |
ALIGN_RIGHT
Constant used when the control is to be right-aligned within its container. |
Constructor Summary | |
ControlConstraints()
Parameterless class constructor. |
|
ControlConstraints(int alignment)
Class constructor where you can specify the alignment but accept the default gaps. |
|
ControlConstraints(int alignment,
int xgap,
int ygap)
Class constructor where you can specify the alignment and the gap values. |
|
ControlConstraints(int alignment,
int xgap,
int ygap,
int width,
int height)
Class constructor where you can specify all the constraint values. |
Method Summary | |
static int |
convertAlignment(java.lang.String text)
Convert a string representation of an alignment value to an integer. |
int |
getAlignment()
Accessor method for the constraint object's alignment setting. |
java.lang.String |
getAlignmentString()
Accessor method for the constraint object's alignment setting as a string. |
int |
getHeight()
Accessor method for the constraint object's height setting. |
int |
getWidth()
Accessor method for the constraint object's width setting. |
int |
getXGap()
Accessor method for the contraint object's horizontal gap setting. |
int |
getYGap()
Accessor method for the contraint object's vertical gap setting. |
java.lang.String |
toString()
Generates a String which holds the settings of this constraint object in a human readable form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ALIGN_LEFT
public static final int ALIGN_RIGHT
public static final int ALIGN_CENTER
Constructor Detail |
public ControlConstraints()
public ControlConstraints(int alignment)
alignment
- the position of the controlinside the containerpublic ControlConstraints(int alignment, int xgap, int ygap)
alignment
- the position of the controlinside the containerxgap
- the horizontal space to the previous controlygap
- the vertical space to the previous controlpublic ControlConstraints(int alignment, int xgap, int ygap, int width, int height)
alignment
- the position of the controlinside the containerxgap
- the horizontal space to the previous controlygap
- the vertical space to the previous controlwidth
- the width of the controlheight
- the height of the controlMethod Detail |
public static int convertAlignment(java.lang.String text) throws java.lang.IllegalArgumentException
text
- string representation of an alignment constant
java.lang.IllegalArgumentException
- if the string passed in is not a valid alignment valuegetAlignmentString()
public int getAlignment()
public java.lang.String getAlignmentString()
convertAlignment(java.lang.String)
public int getHeight()
public int getWidth()
public int getXGap()
public int getYGap()
public java.lang.String toString()
ControlConstraintsEditor
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.