|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface Layout.AlignmentHandler
AlignmentHandler is most commonly an advanced Layout that can
align its components.
| Field Summary | |
|---|---|
static int |
ALIGNMENT_BOTTOM
Deprecated. Use of Alignment class and its constants |
static int |
ALIGNMENT_HORIZONTAL_CENTER
Deprecated. Use of Alignment class and its constants |
static int |
ALIGNMENT_LEFT
Deprecated. Use of Alignment class and its constants |
static int |
ALIGNMENT_RIGHT
Deprecated. Use of Alignment class and its constants |
static int |
ALIGNMENT_TOP
Deprecated. Use of Alignment class and its constants |
static int |
ALIGNMENT_VERTICAL_CENTER
Deprecated. Use of Alignment class and its constants |
| Method Summary | |
|---|---|
Alignment |
getComponentAlignment(Component childComponent)
Returns the current Alignment of given component. |
void |
setComponentAlignment(Component childComponent,
Alignment alignment)
Set alignment for one contained component in this layout. |
void |
setComponentAlignment(Component childComponent,
int horizontalAlignment,
int verticalAlignment)
Deprecated. Use setComponentAlignment(Component, Alignment)
instead |
| Field Detail |
|---|
@Deprecated static final int ALIGNMENT_LEFT
Alignment class and its constants
@Deprecated static final int ALIGNMENT_RIGHT
Alignment class and its constants
@Deprecated static final int ALIGNMENT_TOP
Alignment class and its constants
@Deprecated static final int ALIGNMENT_BOTTOM
Alignment class and its constants
@Deprecated static final int ALIGNMENT_HORIZONTAL_CENTER
Alignment class and its constants
@Deprecated static final int ALIGNMENT_VERTICAL_CENTER
Alignment class and its constants
| Method Detail |
|---|
@Deprecated
void setComponentAlignment(Component childComponent,
int horizontalAlignment,
int verticalAlignment)
setComponentAlignment(Component, Alignment)
instead
childComponent - the component to align within it's layout cell.horizontalAlignment - the horizontal alignment for the child component (left,
center, right). Use ALIGNMENT constants.verticalAlignment - the vertical alignment for the child component (top,
center, bottom). Use ALIGNMENT constants.
void setComponentAlignment(Component childComponent,
Alignment alignment)
layout.setComponentAlignment(myComponent, Alignment.TOP_RIGHT);
childComponent - the component to align within it's layout cell.alignment - the Alignment value to be setAlignment getComponentAlignment(Component childComponent)
childComponent -
Alignment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||