|
||||||||||
| 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<IToolBar>
javax.rad.genui.container.UIToolBar
public class UIToolBar
Platform and technology independent TabSetPanel. 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.IToolBar |
|---|
HORIZONTAL, VERTICAL |
| Constructor Summary | |
|---|---|
|
UIToolBar()
Creates a new instance of UIToolBar. |
protected |
UIToolBar(IToolBar pToolBar)
Creates a new instance of UIToolBar with the given
toolbar. |
| Method Summary | |
|---|---|
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. |
void |
setMargins(IInsets pMargins)
Sets the margin between the tool bar's border and its buttons. |
void |
setMargins(int pTop,
int pLeft,
int pBottom,
int pRight)
Sets the insets with primitive types. |
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 javax.rad.genui.UIContainer |
|---|
add, add, add, add, addInternal, addNotify, beforeAddNotify, checkAdd, contains, getComponent, getComponentCount, getComponents, getInsets, getLayout, getUIResourceContainer, indexOf, remove, 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, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public UIToolBar()
UIToolBar.
IToolBarprotected UIToolBar(IToolBar pToolBar)
UIToolBar with the given
toolbar.
pToolBar - the toolbarIToolBar| 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 buttons
public void setMargins(int pTop,
int pLeft,
int pBottom,
int pRight)
pTop - the top insets.pLeft - the left insets.pBottom - the bottom insets.pRight - the right insets.public 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 setParent(IContainer pParent)
setParent in interface IComponentsetParent in class UIComponent<IToolBar>pParent - the parent container of this component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||