|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<C>
javax.rad.genui.UIContainer<ISplitPanel>
javax.rad.genui.container.UISplitPanel
public class UISplitPanel
Platform and technology independent SplitPanel. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
Field Summary |
---|
Fields inherited from class javax.rad.genui.UIContainer |
---|
allComponents, components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
bTranslate, lLastTranslationModified, parent, popupMenu |
Fields inherited from class javax.rad.genui.UIResource |
---|
uiResource |
Fields inherited from interface javax.rad.ui.container.ISplitPanel |
---|
DIVIDER_BOTTOM_RIGHT, DIVIDER_RELATIVE, DIVIDER_TOP_LEFT, FIRST_COMPONENT, SECOND_COMPONENT, SPLIT_LEFT_RIGHT, SPLIT_TOP_BOTTOM |
Constructor Summary | |
---|---|
|
UISplitPanel()
Creates a new instance of UISplitPanel . |
|
UISplitPanel(int pOrientation)
Creates a new instance of UISplitPanel with the given
orientation. |
|
UISplitPanel(int pOrientation,
int pAlignment)
Creates a new instance of UISplitPanel with the given
orientation and alignment. |
protected |
UISplitPanel(ISplitPanel pPanel)
Creates a new instance of UISplitPanel with the given
split panel. |
protected |
UISplitPanel(ISplitPanel pPanel,
int pOrientation,
int pAlignment)
Creates a new instance of UISplitPanel with the given
split panel, orientation and divider alignment. |
Method Summary | |
---|---|
void |
add(IComponent pComponent,
java.lang.Object pConstraints,
int pIndex)
Adds the specified IComponent to this container with the specified
constraints at the specified index. |
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 |
remove(int pIndex)
Removes the IComponent , specified by index ,
from this container. |
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 class javax.rad.genui.UIContainer |
---|
add, add, add, addInternal, addNotify, beforeAddNotify, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, removeAll, removeInternal, removeNotify, setLayout, setUIResourceContainer, setZOrder, updateTranslation |
Methods inherited from class javax.rad.genui.UIResource |
---|
eventResourceChanged, eventResourceChanged, fireResourceChanged, getObject, getObjectNames, getUIResource, hasResourceHandler, putObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IContainer |
---|
add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, removeAll, setLayout |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public UISplitPanel()
UISplitPanel
.
ISplitPanel
public UISplitPanel(int pOrientation)
UISplitPanel
with the given
orientation.
pOrientation
- the orientationsetOrientation(int)
public UISplitPanel(int pOrientation, int pAlignment)
UISplitPanel
with the given
orientation and alignment.
pOrientation
- the orientationpAlignment
- the divider alignmentsetOrientation(int)
,
setDividerAlignment(int)
protected UISplitPanel(ISplitPanel pPanel)
UISplitPanel
with the given
split panel.
pPanel
- the split panelISplitPanel
protected UISplitPanel(ISplitPanel pPanel, int pOrientation, int pAlignment)
UISplitPanel
with the given
split panel, orientation and divider alignment.
pPanel
- the split panelpOrientation
- the orientationpAlignment
- the divider alignmentISplitPanel
Method Detail |
---|
public int getOrientation()
getOrientation
in interface ISplitPanel
ISplitPanel.setOrientation(int)
public void setOrientation(int pOrientation)
setOrientation
in interface ISplitPanel
pOrientation
- an integer specifying the orientationpublic IComponent getFirstComponent()
getFirstComponent
in interface ISplitPanel
IComponent
displayed in that positionpublic void setFirstComponent(IComponent pComponent)
setFirstComponent
in interface ISplitPanel
pComponent
- the IComponent
to display in that positionpublic IComponent getSecondComponent()
getSecondComponent
in interface ISplitPanel
Component
displayed in that positionpublic void setSecondComponent(IComponent pComponent)
setSecondComponent
in interface ISplitPanel
pComponent
- the IComponent
to display in that positionpublic void add(IComponent pComponent, java.lang.Object pConstraints, int pIndex)
IComponent
to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object.
add
in interface IContainer
add
in class UIContainer<ISplitPanel>
pComponent
- the IComponent
to be addedpConstraints
- an object expressing layout contraints for thispIndex
- the position in the container's list at which to insert
the IComponent
; -1
means insert at the end
componentIComponent
public void remove(int pIndex)
IComponent
, specified by index
,
from this container.
This method also notifies the layout manager to remove the
component from this container's layout via the
removeLayoutComponent
method.
remove
in interface IContainer
remove
in class UIContainer<ISplitPanel>
pIndex
- the index of the IComponent
to be removedIContainer.add(javax.rad.ui.IComponent)
,
IContainer.getComponentCount()
public int getDividerPosition()
getDividerPosition
in interface ISplitPanel
public void setDividerPosition(int pDividerPosition)
setDividerPosition
in interface ISplitPanel
pDividerPosition
- the position of the divider.public int getDividerAlignment()
getDividerAlignment
in interface ISplitPanel
ISplitPanel.DIVIDER_TOP_LEFT
,
ISplitPanel.DIVIDER_BOTTOM_RIGHT
, ISplitPanel.DIVIDER_RELATIVE
public void setDividerAlignment(int pDividerAlignment)
setDividerAlignment
in interface ISplitPanel
pDividerAlignment
- the divider alignment: ISplitPanel.DIVIDER_TOP_LEFT
,
ISplitPanel.DIVIDER_BOTTOM_RIGHT
, ISplitPanel.DIVIDER_RELATIVE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |