|
||||||||||
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 |
---|
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.IToolBar |
---|
HORIZONTAL, VERTICAL |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
SwingToolBar()
Creates a new instance of SwingToolBar . |
Method Summary | |
---|---|
protected void |
addIntern(Component pComponent,
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(Component pComponent)
Internal function, for adding physical component and supporting layers. |
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, setToolTipText |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, 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, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
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 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 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 AwtComponent<JVxToolBar>
pParent
- the parent container of this componentprotected void addIntern(Component pComponent, 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(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 |