|
||||||||||
| 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<JVxToolBar>
com.sibvisions.rad.ui.swing.impl.container.SwingToolBar
public class SwingToolBar
The SwingToolBar is the IToolBar
implementation for swing.
JToolBar,
IToolBar| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, eventSource, factory, parent |
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
resource |
| Fields inherited from interface javax.rad.ui.container.IToolBar |
|---|
HORIZONTAL, VERTICAL |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
SwingToolBar()
Creates a new instance of SwingToolBar. |
|
| Method Summary | |
|---|---|
protected void |
addIntern(java.awt.Component pComponent,
java.lang.Object pConstraints,
int pIndex)
Internal function, for adding physical component and supporting layers. |
IInsets |
getMargins()
Returns the margin between the tool bar's border and its buttons. |
int |
getOrientation()
Returns the current orientation of the tool bar. |
boolean |
isMovable()
Returns whether the toolbar is movable. |
protected void |
removeIntern(java.awt.Component pComponent)
Internal function, for adding physical component and supporting layers. |
void |
setLayout(ILayout pLayout)
Sets the layout manager for this container. |
void |
setMargins(IInsets pMargins)
Sets the margin between the tool bar's border and its buttons. |
void |
setMovable(boolean pMovable)
Sets whether the toolbar is movable. |
void |
setOrientation(int pOrientation)
Sets the orientation of the tool bar. |
void |
setParent(IContainer pParent)
Sets the parent of this component. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture, getToolTipText, setBackground, setTabIndex, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
|---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
getResource, 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, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public SwingToolBar()
SwingToolBar.
| Method Detail |
|---|
public int getOrientation()
HORIZONTAL or VERTICAL.
getOrientation in interface IToolBarHORIZONTAL or VERTICALIToolBar.setOrientation(int)public void setOrientation(int pOrientation)
HORIZONTAL or VERTICAL.
If orientation is
an invalid value, an exception will be thrown.
setOrientation in interface IToolBarpOrientation - the new orientation -- either HORIZONTAL or VERTICALIToolBar.getOrientation()public IInsets getMargins()
getMargins in interface IToolBarInsets object containing the margin valuespublic void setMargins(IInsets pMargins)
null causes the tool bar to
use the default margins. The tool bar's default Border
object uses this value to create the proper margin.
However, if a non-default border is set on the tool bar,
it is that Border object's responsibility to create the
appropriate margin space (otherwise this property will
effectively be ignored).
setMargins in interface IToolBarpMargins - an Insets object that defines the space
between the border and the buttonspublic void setMovable(boolean pMovable)
setMovable in interface IToolBarpMovable - true if the toolbar is movable, false otherwisepublic boolean isMovable()
isMovable in interface IToolBartrue if the toolbar is movablepublic void setLayout(ILayout pLayout)
setLayout in interface IContainersetLayout in class AwtContainer<JVxToolBar>pLayout - the specified layout managerILayout,
IContainer.getLayout()public void setParent(IContainer pParent)
setParent in interface IComponentsetParent in class AwtComponent<JVxToolBar>pParent - the parent container of this component
protected void addIntern(java.awt.Component pComponent,
java.lang.Object pConstraints,
int pIndex)
addIntern in class AwtContainer<JVxToolBar>pComponent - the Component to be addedpConstraints - an object expressing layout contraints for thispIndex - the position in the container's list at which to insert
the Component; -1 means insert at the end
componentAwtContainer.add(IComponent, Object, int)protected void removeIntern(java.awt.Component pComponent)
removeIntern in class AwtContainer<JVxToolBar>pComponent - the Component to be removedAwtContainer.remove(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||