com.leafdigital.ui.api
Interface SplitPanel

All Superinterfaces:
Panel, Widget, WidgetParent

public interface SplitPanel
extends Panel

A Panel with two component slots - 'main' and 'split'. Four orientations control where the split bit goes. The initial size of the split must be specified. Users can then drag the split bar.


Field Summary
static int SIDE_EAST
          Split is on east side.
static int SIDE_NORTH
          Split is on north side.
static int SIDE_SOUTH
          Split is on south side.
static int SIDE_WEST
          Split is on west side.
 
Method Summary
 int getSplitSize()
           
 void setMain(Widget w)
          Sets the main component.
 void setSide(int side)
          Controls where the split part appears.
 void setSplit(Widget w)
          Sets the split component.
 void setSplitSize(int size)
          Sets the size (in pixels) of the split area.
 
Methods inherited from interface com.leafdigital.ui.api.Panel
remove, removeAll, setBorder
 
Methods inherited from interface com.leafdigital.ui.api.Widget
getID, getOwner, informClosed, isVisible, setOwner, setVisible
 
Methods inherited from interface com.leafdigital.ui.api.WidgetParent
getWidgets
 

Field Detail

SIDE_NORTH

static final int SIDE_NORTH
Split is on north side.

See Also:
Constant Field Values

SIDE_EAST

static final int SIDE_EAST
Split is on east side.

See Also:
Constant Field Values

SIDE_SOUTH

static final int SIDE_SOUTH
Split is on south side.

See Also:
Constant Field Values

SIDE_WEST

static final int SIDE_WEST
Split is on west side.

See Also:
Constant Field Values
Method Detail

setMain

void setMain(Widget w)
Sets the main component.

Parameters:
w - New widget for slot

setSplit

void setSplit(Widget w)
Sets the split component.

Parameters:
w - New widget for slot

setSplitSize

void setSplitSize(int size)
Sets the size (in pixels) of the split area. The default is 100.

Parameters:
size - Size in pixels

getSplitSize

int getSplitSize()
Returns:
Size of split area in pixels

setSide

void setSide(int side)
Controls where the split part appears. The default is SIDE_EAST.

Parameters:
side - A SIDE_xxx constant


Copyright © 2011 Samuel Marshall. All rights reserved.