|
||||||||||
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.
Method Summary | |
---|---|
Alignment |
getComponentAlignment(Component childComponent)
Returns the current Alignment of given component. |
Alignment |
getDefaultComponentAlignment()
Returns the alignment used for new components added to this layout |
void |
setComponentAlignment(Component childComponent,
Alignment alignment)
Set alignment for one contained component in this layout. |
void |
setDefaultComponentAlignment(Alignment defaultComponentAlignment)
Sets the alignment used for new components added to this layout. |
Method Detail |
---|
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
void setDefaultComponentAlignment(Alignment defaultComponentAlignment)
Alignment.TOP_LEFT
.
defaultComponentAlignment
- The new default alignmentAlignment getDefaultComponentAlignment()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |