| java.lang.Object thinwire.ui.layout.AbstractLayout thinwire.ui.layout.SplitLayout
SplitLayout | final public class SplitLayout extends AbstractLayout (Code) | | 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));
author: Joshua J. Gertzen |
Inner Class :public enum Maximize | |
Constructor Summary | |
public | SplitLayout(double split) Constructs a horizontal SplitLayout with the first Component having the
specified height, 0px margin and 4px spacing. | public | SplitLayout(double split, boolean splitVertical) | public | SplitLayout(double split, boolean splitVertical, int margin) | public | SplitLayout(double split, boolean splitVertical, int margin, int spacing) |
SplitLayout | public SplitLayout(double split)(Code) | | Constructs a horizontal SplitLayout with the first Component having the
specified height, 0px margin and 4px spacing.
Parameters: split - |
SplitLayout | public SplitLayout(double split, boolean splitVertical)(Code) | | Constructs a SplitLayout with the first Component having the specified
size, 0px margin and 4px spacing
Parameters: split - Parameters: splitVertical - |
SplitLayout | public SplitLayout(double split, boolean splitVertical, int margin)(Code) | | Constructs a SplitLayout with the first Component having the specified
size, specified margin and 4px spacing
Parameters: split - Parameters: splitVertical - Parameters: margin - |
SplitLayout | public SplitLayout(double split, boolean splitVertical, int margin, int spacing)(Code) | | Constructs a SplitLayout with the first Component having the specified
size, specified margin and specified spacing
Parameters: split - Parameters: splitVertical - Parameters: margin - Parameters: spacing - |
getMaximize | public Maximize getMaximize()(Code) | | Returns an enum constant telling whether the first, second or neither
component is currently maximized.
|
getSpacerStyle | public Style getSpacerStyle()(Code) | | the Stle object for the spacer |
getSplit | public double getSplit()(Code) | | the size of the first Component in the Container |
isMaximized | public boolean isMaximized()(Code) | | true if one of the components is currently maximized |
isSplitVertical | public boolean isSplitVertical()(Code) | | true if the split is vertical (Components are left and right) |
setContainer | public void setContainer(Container<Component> container)(Code) | | Associates the specified Container to this layout. (NOTE: This method
should only be called from Container.setLayout())
|
setMargin | public void setMargin(int margin)(Code) | | |
setMaximize | public void setMaximize(Maximize maximize)(Code) | | Set either the first or second component to be maximized. Passing
Maximize.NONE or null will restore the layout to the last state.
Parameters: maximize - |
setSplit | public void setSplit(double split)(Code) | | Set the size of the first Component in the Container
Parameters: split - |
setSplitVertical | public void setSplitVertical(boolean splitVertical)(Code) | | Sets whether the split is vertical (Components are left and right) or
horizontal (Components are top and bottom)
Parameters: splitVertical - |
update | protected void update()(Code) | | |
|
|