|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IToolBar
Platform and technology independent TabSetPanel definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
JToolBar
Field Summary | |
---|---|
static int |
HORIZONTAL
Horizontal orientation. |
static int |
VERTICAL
Vertical orientation. |
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 pMargin)
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. |
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 |
Field Detail |
---|
static final int HORIZONTAL
static final int VERTICAL
Method Detail |
---|
int getOrientation()
HORIZONTAL
or VERTICAL
.
HORIZONTAL
or VERTICAL
setOrientation(int)
void setOrientation(int pOrientation)
HORIZONTAL
or VERTICAL
.
If orientation
is
an invalid value, an exception will be thrown.
pOrientation
- the new orientation -- either HORIZONTAL
or VERTICAL
IllegalArgumentException
- if orientation is neither
HORIZONTAL
nor VERTICAL
getOrientation()
IInsets getMargins()
Insets
object containing the margin valuesvoid setMargins(IInsets pMargin)
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).
pMargin
- an Insets
object that defines the space
between the border and the buttonsvoid setMovable(boolean pMovable)
pMovable
- true
if the toolbar is movable, false
otherwiseboolean isMovable()
true
if the toolbar is movable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |