|
||||||||||
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 |
---|
components |
Fields inherited from class javax.rad.genui.UIComponent |
---|
lLastTranslationModified, parent |
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, addNotify, beforeAddNotify, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeNotify, setLayout, setZOrder, updateTranslation |
Methods inherited from class javax.rad.genui.UIResource |
---|
equals, getUIResource, 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, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public UIToolBar()
UIToolBar
.
IToolBar
protected UIToolBar(IToolBar pToolBar)
UIToolBar
with the given
toolbar.
pToolBar
- the toolbarIToolBar
Method Detail |
---|
public int getOrientation()
HORIZONTAL
or VERTICAL
.
getOrientation
in interface IToolBar
HORIZONTAL
or VERTICAL
IToolBar.setOrientation(int)
public void setOrientation(int pOrientation)
HORIZONTAL
or VERTICAL
.
If orientation
is
an invalid value, an exception will be thrown.
setOrientation
in interface IToolBar
pOrientation
- the new orientation -- either HORIZONTAL
or VERTICAL
IToolBar.getOrientation()
public IInsets getMargins()
getMargins
in interface IToolBar
Insets
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 IToolBar
pMargins
- an Insets
object that defines the space
between the border and the buttonspublic 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 IToolBar
pMovable
- true
if the toolbar is movable, false
otherwisepublic boolean isMovable()
isMovable
in interface IToolBar
true
if the toolbar is movablepublic void setParent(IContainer pParent)
setParent
in interface IComponent
setParent
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 |