|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.AbstractDisposable
yu.ac.bg.etf.javaqx.qswing.JQComponent
yu.ac.bg.etf.javaqx.qswing.JQContainer
yu.ac.bg.etf.javaqx.qswing.JQMenu
Menu Component.
Field Summary |
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent |
listenerList |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQMenuProperties |
PROPERTY_ICON |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQTextProperty |
PROPERTY_MNEMONIC, PROPERTY_TEXT |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties |
PROPERTY_LAYOUT_MANAGER |
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties |
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT |
Constructor Summary | |
JQMenu()
Constructs new JQMenu object. |
|
JQMenu(java.lang.String text)
Constructs new JQMenu object. |
|
JQMenu(java.lang.String text,
boolean autoExclusive)
Constructs new JQMenu object. |
Method Summary | |
JQCheckBoxMenuItem |
add(JQCheckBoxMenuItem menuItem)
Adds check box menu item. |
JQCheckBoxMenuItem |
add(JQCheckBoxMenuItem menuItem,
int index)
Adds check box menu item. |
JQMenu |
add(JQMenu menu)
Adds menu. |
JQMenu |
add(JQMenu menu,
int index)
Adds menu. |
JQMenuItem |
add(JQMenuItem menuItem)
Adds menu item. |
JQMenuItem |
add(JQMenuItem menuItem,
int index)
Adds menu item. |
JQRadioButtonMenuItem |
add(JQRadioButtonMenuItem menuItem)
Adds radio button menu item. |
JQRadioButtonMenuItem |
add(JQRadioButtonMenuItem menuItem,
int index)
Adds radio button menu item. |
JQSeparator |
addSeparator()
Adds separator. |
JQSeparator |
addSeparator(int index)
Adds separator. |
JQSeparator |
addSeparator(java.lang.String text)
Adds separator. |
JQSeparator |
addSeparator(java.lang.String text,
int index)
Adds separator. |
int |
getMnemonic()
Returns the keyboard mnemonic. |
java.lang.String |
getText()
Returns text. |
void |
invalidate()
Invalidates the component. |
boolean |
isMnemonicSet()
Returns true if the keyboard mnemonic has been explicitly set. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
revalidate()
Revalidates the component. |
void |
setLayout(LayoutManager layoutManager)
Sets the layout manager for this container. |
void |
setMnemonic(int mnemonic)
Sets the keyboard mnemonic. |
void |
setText(java.lang.String text)
Sets text. |
void |
show(int x,
int y)
Displays popup menu at specified location. |
void |
updateLocalization()
Updates localization. |
void |
validate()
Validates the component. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer |
add, add, add, add, addImpl, doLayout, getComponent, getComponentCount, getComponentIndex, getComponents, getLayout, getMaximumSize, getMinimumSize, getOwnedComponents, getPreferredSize, pack, remove, remove, removeAll, setBackground, setComponentOrientation, setForeground |
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable |
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JQMenu()
public JQMenu(java.lang.String text)
text
- the text for the menu labelpublic JQMenu(java.lang.String text, boolean autoExclusive)
text
- the text for the menu labelautoExclusive
- true if auto exclusiveMethod Detail |
public java.lang.String getText()
public void setText(java.lang.String text)
text
- the textpublic boolean isMnemonicSet()
public int getMnemonic()
public void setMnemonic(int mnemonic)
mnemonic
- the keyboard mnemonicpublic JQMenuItem add(JQMenuItem menuItem)
menuItem
- the menu item
public JQMenuItem add(JQMenuItem menuItem, int index)
menuItem
- the menu itemindex
- the menu index
public JQCheckBoxMenuItem add(JQCheckBoxMenuItem menuItem)
menuItem
- the check box menu item
public JQCheckBoxMenuItem add(JQCheckBoxMenuItem menuItem, int index)
menuItem
- the check box menu itemindex
- the check box menu index
public JQRadioButtonMenuItem add(JQRadioButtonMenuItem menuItem)
menuItem
- the radio button menu item
public JQRadioButtonMenuItem add(JQRadioButtonMenuItem menuItem, int index)
menuItem
- the radio button menu itemindex
- the radio button menu index
public JQMenu add(JQMenu menu)
menu
- the menu
public JQMenu add(JQMenu menu, int index)
menu
- the menuindex
- the menu index
public JQSeparator addSeparator()
public JQSeparator addSeparator(int index)
index
- the separator index
public JQSeparator addSeparator(java.lang.String text)
text
- the text
public JQSeparator addSeparator(java.lang.String text, int index)
text
- the textindex
- the separator index
public void show(int x, int y)
x
- the x coordinate of the locationy
- the y coordinate of the locationpublic void setLayout(LayoutManager layoutManager)
setLayout
in class JQContainer
layoutManager
- the layout managerpublic void validate()
validate
in class JQContainer
public void invalidate()
invalidate
in class JQContainer
public void revalidate()
revalidate
in class JQComponent
public void updateLocalization()
updateLocalization
in class JQContainer
protected java.lang.String paramString()
paramString
in class JQContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |