javax.rad.ui.container
Interface ISplitPanel

All Superinterfaces:
IComponent, IContainer, INamedObject, IResource
All Known Implementing Classes:
SwingSplitPanel, UISplitPanel

public interface ISplitPanel
extends IContainer

Platform and technology independent SplitPanel definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .

See Also:
JSplitPane

Field Summary
static int DIVIDER_BOTTOM_RIGHT
          The Divider is fixed to the bottom border during resize.
static int DIVIDER_RELATIVE
          The Divider is fixed to the right border during resize.
static int DIVIDER_TOP_LEFT
          The Divider is fixed to the top border during resize.
static String FIRST_COMPONENT
          Used to add a Component to the left/top of the other Component.
static String SECOND_COMPONENT
          Used to add a Component to the right/bottom of the other Component.
static int SPLIT_LEFT_RIGHT
          Horizontal split indicates the Components are split along the x axis.
static int SPLIT_TOP_BOTTOM
          Vertical split indicates the Components are split along the y axis.
 
Method Summary
 int getDividerAlignment()
          Gets the divider alignment.
 int getDividerPosition()
          Gets the position of the divider.
 IComponent getFirstComponent()
          Returns the component to the left (or above) the divider.
 int getOrientation()
          Returns the orientation.
 IComponent getSecondComponent()
          Returns the component to the right (or below) the divider.
 void setDividerAlignment(int pDividerAlignment)
          Sets the divider alignment.
 void setDividerPosition(int pDividerPosition)
          Sets the position of the divider.
 void setFirstComponent(IComponent pComponent)
          Sets the component to the left (or above) the divider.
 void setOrientation(int pOrientation)
          Sets the orientation, or how the splitter is divided.
 void setSecondComponent(IComponent pComponent)
          Sets the component to the right (or below) the divider.
 
Methods inherited from interface javax.rad.ui.IContainer
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Field Detail

SPLIT_TOP_BOTTOM

static final int SPLIT_TOP_BOTTOM
Vertical split indicates the Components are split along the y axis. For example the two Components will be split one on top of the other.

See Also:
Constant Field Values

SPLIT_LEFT_RIGHT

static final int SPLIT_LEFT_RIGHT
Horizontal split indicates the Components are split along the x axis. For example the two Components will be split one to the left of the other.

See Also:
Constant Field Values

DIVIDER_TOP_LEFT

static final int DIVIDER_TOP_LEFT
The Divider is fixed to the top border during resize.

See Also:
Constant Field Values

DIVIDER_BOTTOM_RIGHT

static final int DIVIDER_BOTTOM_RIGHT
The Divider is fixed to the bottom border during resize.

See Also:
Constant Field Values

DIVIDER_RELATIVE

static final int DIVIDER_RELATIVE
The Divider is fixed to the right border during resize.

See Also:
Constant Field Values

FIRST_COMPONENT

static final String FIRST_COMPONENT
Used to add a Component to the left/top of the other Component.

See Also:
Constant Field Values

SECOND_COMPONENT

static final String SECOND_COMPONENT
Used to add a Component to the right/bottom of the other Component.

See Also:
Constant Field Values
Method Detail

getOrientation

int getOrientation()
Returns the orientation.

Returns:
an integer giving the orientation
See Also:
setOrientation(int)

setOrientation

void setOrientation(int pOrientation)
Sets the orientation, or how the splitter is divided. The options are:

Parameters:
pOrientation - an integer specifying the orientation
Throws:
IllegalArgumentException - if orientation is not one of: SPLIT_LEFT_RIGHT or SPLIT_TOP_BOTTOM.

getFirstComponent

IComponent getFirstComponent()
Returns the component to the left (or above) the divider.

Returns:
the IComponent displayed in that position

setFirstComponent

void setFirstComponent(IComponent pComponent)
Sets the component to the left (or above) the divider.

Parameters:
pComponent - the IComponent to display in that position

getSecondComponent

IComponent getSecondComponent()
Returns the component to the right (or below) the divider.

Returns:
the Component displayed in that position

setSecondComponent

void setSecondComponent(IComponent pComponent)
Sets the component to the right (or below) the divider.

Parameters:
pComponent - the IComponent to display in that position

getDividerPosition

int getDividerPosition()
Gets the position of the divider.

Returns:
the position of the divider.

setDividerPosition

void setDividerPosition(int pDividerPosition)
Sets the position of the divider.

Parameters:
pDividerPosition - the position of the divider.

getDividerAlignment

int getDividerAlignment()
Gets the divider alignment.

Returns:
the divider alignment: DIVIDER_TOP_LEFT, DIVIDER_BOTTOM_RIGHT, DIVIDER_RELATIVE

setDividerAlignment

void setDividerAlignment(int pDividerAlignment)
Sets the divider alignment.

Parameters:
pDividerAlignment - the divider alignment: DIVIDER_TOP_LEFT, DIVIDER_BOTTOM_RIGHT, DIVIDER_RELATIVE


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.