|
||||||||||
| 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<QMenu>
com.sibvisions.rad.ui.qt.impl.menu.QtMenu
public class QtMenu
The QtMenu is the IMenu
implementation for QT.
QMenu,
IMenu| Field Summary | |
|---|---|
protected IImage |
image
the image. |
| 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.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
QtMenu()
Creates a new instance of QtMenu. |
|
| Method Summary | |
|---|---|
protected void |
addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
Internal function, for adding physical component and supporting layers. |
void |
addSeparator()
Appends a new separator at the end of the menu. |
void |
addSeparator(int pIndex)
Inserts a separator at the specified position. |
ActionHandler |
eventAction()
Not supported. |
Key |
getAccelerator()
Not supported. |
String |
getActionCommand()
Returns the command name of the action event fired by this action component. |
IImage |
getImage()
Returns the default image. |
IInsets |
getMargins()
Returns the margin between the component's border and the text. |
String |
getText()
Returns the text string that the label displays. |
protected void |
removeIntern(IComponent pComponent)
Internal function, for adding physical component and supporting layers. |
void |
setAccelerator(Key pKey)
Not supported. |
void |
setActionCommand(String pActionCommand)
Sets the command name for the action event fired by this action component. |
void |
setImage(IImage pImage)
Sets the default image. |
void |
setMargins(IInsets pInsets)
Sets space for margin between the button's border and the text. |
protected void |
setResourceVisible(boolean pVisible)
Sets the visibility of the internal resource. |
void |
setText(String pText)
Defines the single line of text this component will display. |
| 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, setParent, setPreferredSize, 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, setVisible |
| 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.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
| Methods inherited from interface javax.rad.ui.IContainer |
|---|
add, add, add, add, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, setLayout |
| Field Detail |
|---|
protected IImage image
| Constructor Detail |
|---|
public QtMenu()
QtMenu.
| Method Detail |
|---|
public void addSeparator()
addSeparator in interface IMenupublic void addSeparator(int pIndex)
addSeparator in interface IMenupIndex - an integer specifying the position at which to
insert the menu separatorpublic void setAccelerator(Key pKey)
setAccelerator in interface IActionComponentpKey - the Key which will serve as an acceleratorpublic Key getAccelerator()
getAccelerator in interface IActionComponentnullIActionComponent.getAccelerator()public ActionHandler eventAction()
eventAction in interface IActionComponentpublic void setActionCommand(String pActionCommand)
setActionCommand in interface IActionComponentpActionCommand - a string used to set the action command.
If the string is null then the action command
is set to match the text of the action component.ActionEventpublic String getActionCommand()
null (default) then this method
returns the label of the button.
getActionCommand in interface IActionComponentpublic void setImage(IImage pImage)
setImage in interface IIconpImage - the imageIIcon.getImage()public IImage getImage()
getImage in interface IIconIIcon.setImage(IImage)public void setText(String pText)
setText in interface ILabelpText - the textpublic String getText()
getText in interface ILabelILabel.setText(java.lang.String)public void setMargins(IInsets pInsets)
null will cause the action component to
use the default margin.
setMargins in interface IActionComponentpInsets - the space between the border and the testpublic IInsets getMargins()
getMargins in interface IActionComponentIInsets object specifying the margin
between the component's border and the textIActionComponent.setMargins(IInsets)protected void setResourceVisible(boolean pVisible)
setResourceVisible in class QtComponent<QMenu>pVisible - true to set visible, otherwise false
protected void addIntern(IComponent pComponent,
Object pConstraints,
int pIndex)
addIntern in class QtContainer<QMenu>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<QMenu>pComponent - the Component to be removedQtContainer.remove(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||