|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<JVxSplitPane>
com.sibvisions.rad.ui.swing.impl.container.SwingSplitPanel
public class SwingSplitPanel
The SwingSplitPanel
is the ISplitPanel
implementation for swing.
JSplitPane
,
ISplitPanel
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
---|
eventComponentMoved, eventComponentResized, eventSource, factory, parent |
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
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 |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
SwingSplitPanel()
Creates a new instance of SwingLabel with a divider size
of 6, continous layout enabled and one touch expandable enabled. |
Method Summary | |
---|---|
void |
add(IComponent pComponent,
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 com.sibvisions.rad.ui.swing.impl.SwingComponent |
---|
capture, getToolTipText, setBackground, setToolTipText |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
---|
add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, hashCode, 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 SwingSplitPanel()
SwingLabel
with a divider size
of 6, continous layout enabled and one touch expandable enabled.
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 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
public void add(IComponent pComponent, 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 AwtContainer<JVxSplitPane>
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 AwtContainer<JVxSplitPane>
pIndex
- the index of the IComponent
to be removedIContainer.add(javax.rad.ui.IComponent)
,
IContainer.getComponentCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |