|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.qt.impl.QtResource<C>
com.sibvisions.rad.ui.qt.impl.QtComponentBase<C>
com.sibvisions.rad.ui.qt.impl.QtComponent<C>
com.sibvisions.rad.ui.qt.impl.QtContainer<QFrame>
com.sibvisions.rad.ui.qt.impl.container.QtToolBar
public class QtToolBar
The QtToolBar is the IToolBar
implementation for QT.
QToolBar,
IToolBar| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
|---|
parent |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
|---|
factory |
| Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
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 | |
|---|---|
QtToolBar()
Creates a new instance of QtToolBar. |
|
| Method Summary | |
|---|---|
protected void |
addIntern(IComponent 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(IComponent pComponent)
Internal function, for adding physical component and supporting layers. |
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. |
void |
setParent(IContainer pParent)
Sets the parent of this component. |
void |
setVisible(boolean pVisible)
Shows or hides this component depending on the value of parameter b. |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtContainer |
|---|
add, add, add, add, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout, setLayoutIntern |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponent |
|---|
addStyle, capture, getBackground, getBounds, getCursor, getFont, getForeground, getHorizontalAlignment, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyleSheet, getToolTipText, getVerticalAlignment, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setHorizontalAlignment, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setResourceVisible, setSize, setToolTipText, setVerticalAlignment |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtComponentBase |
|---|
eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getFactory, isVisible, setFactory |
| Methods inherited from class com.sibvisions.rad.ui.qt.impl.QtResource |
|---|
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 QtToolBar()
QtToolBar.
| Method Detail |
|---|
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 int getOrientation()
HORIZONTAL or VERTICAL.
getOrientation in interface IToolBarHORIZONTAL or VERTICALIToolBar.setOrientation(int)public void 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).
setMargins in interface IToolBarpMargin - an Insets object that defines the space
between the border and the buttonspublic IInsets getMargins()
getMargins in interface IToolBarInsets object containing the margin valuespublic 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 QtComponent<QFrame>pParent - the parent container of this componentpublic void setVisible(boolean pVisible)
b.
setVisible in interface IComponentsetVisible in class QtComponentBase<QFrame>pVisible - if true, shows this component; otherwise,
hides this componentIComponent.isVisible()
protected void addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
addIntern in class QtContainer<QFrame>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
componentQtContainer.add(IComponent, Object, int)protected void removeIntern(IComponent pComponent)
removeIntern in class QtContainer<QFrame>pComponent - the Component to be removedQtContainer.remove(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||