|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object thinwire.ui.layout.AbstractLayout thinwire.ui.layout.SplitLayout
public final class SplitLayout
SplitLayout divides a Container into two sections placing one component on each side and provides a dragable divider allowing the user to adjust the split. The split can be either vertical (splitting the Components left and right) or horizontal (splitting the Components top and bottom).
Example:
Panel p = new Panel(); p.getChildren().add(new Button("Top")); p.getChildren().add(new Button("Bottom")); p.setLayout(new SplitLayout(.5));
Nested Class Summary | |
---|---|
static class |
SplitLayout.Maximize
|
Field Summary |
---|
Fields inherited from class thinwire.ui.layout.AbstractLayout |
---|
autoLayout, autoLayoutProps, container, limitLayout, margin, spacing |
Constructor Summary | |
---|---|
SplitLayout(double split)
Constructs a horizontal SplitLayout with the first Component having the specified height, 0px margin and 4px spacing. |
|
SplitLayout(double split,
boolean splitVertical)
Constructs a SplitLayout with the first Component having the specified size, 0px margin and 4px spacing |
|
SplitLayout(double split,
boolean splitVertical,
int margin)
Constructs a SplitLayout with the first Component having the specified size, specified margin and 4px spacing |
|
SplitLayout(double split,
boolean splitVertical,
int margin,
int spacing)
Constructs a SplitLayout with the first Component having the specified size, specified margin and specified spacing |
Method Summary | |
---|---|
SplitLayout.Maximize |
getMaximize()
Returns an enum constant telling whether the first, second or neither component is currently maximized. |
Style |
getSpacerStyle()
|
double |
getSplit()
|
boolean |
isMaximized()
|
boolean |
isSplitVertical()
|
void |
setContainer(Container<Component> container)
Associates the specified Container to this layout. |
void |
setMargin(int margin)
|
void |
setMaximize(SplitLayout.Maximize maximize)
Set either the first or second component to be maximized. |
void |
setSplit(double split)
Set the size of the first Component in the Container |
void |
setSplitVertical(boolean splitVertical)
Sets whether the split is vertical (Components are left and right) or horizontal (Components are top and bottom) |
protected void |
update()
|
Methods inherited from class thinwire.ui.layout.AbstractLayout |
---|
addComponent, apply, getContainer, getFormalLimit, getMargin, getSpacing, isAutoApply, limitChanged, removeComponent, setAutoApply, setSpacing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitLayout(double split)
split
- public SplitLayout(double split, boolean splitVertical)
split
- splitVertical
- public SplitLayout(double split, boolean splitVertical, int margin)
split
- splitVertical
- margin
- public SplitLayout(double split, boolean splitVertical, int margin, int spacing)
split
- splitVertical
- margin
- spacing
- Method Detail |
---|
public void setContainer(Container<Component> container)
setContainer
in interface Layout
setContainer
in class AbstractLayout
public double getSplit()
public void setSplit(double split)
split
- public boolean isSplitVertical()
public void setSplitVertical(boolean splitVertical)
splitVertical
- public void setMargin(int margin)
setMargin
in interface Layout
setMargin
in class AbstractLayout
public Style getSpacerStyle()
public boolean isMaximized()
public SplitLayout.Maximize getMaximize()
public void setMaximize(SplitLayout.Maximize maximize)
maximize
- protected void update()
update
in class AbstractLayout
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |