|
|||||||||
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.JQMenuItem
Menu Item Component.
Nested Class Summary | |
protected static class |
JQMenuItem.ActionPropertyChangeListener
Action PropertyChangeListener. |
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.JQMenuItemProperties |
PROPERTY_ACCELERATOR, PROPERTY_ACTION, PROPERTY_ACTION_COMMAND, PROPERTY_DISABLED_ICON, PROPERTY_ICON, PROPERTY_ROLLOVER_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.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 | |
JQMenuItem()
Constructs new JQMenuItem object. |
|
JQMenuItem(Action action)
Constructs new JQMenuItem object using the specified action. |
|
JQMenuItem(Icon icon)
Constructs new JQMenuItem object. |
|
JQMenuItem(java.lang.String text)
Constructs new JQMenuItem object. |
|
JQMenuItem(java.lang.String text,
Icon icon)
Constructs new JQMenuItem object. |
Method Summary | |
void |
addActionListener(ActionListener listener)
Adds action listener. |
protected void |
configurePropertiesFromAction(Action action)
Configures action properties from the specified action. |
protected java.beans.PropertyChangeListener |
createActionPropertyChangeListener()
Creates and returns PropertyChangeListener for menu item action. |
protected void |
fireActionPerformed(ActionEvent e)
Fires action event. |
KeyStroke |
getAccelerator()
Returns accelerator. |
Action |
getAction()
Returns action. |
java.lang.String |
getActionCommand()
Returns action command. |
ActionListener[] |
getActionListeners()
Returns all action listeners. |
Icon |
getDisabledIcon()
Returns disabled icon. |
Icon |
getIcon()
Returns icon. |
int |
getMnemonic()
Returns the keyboard mnemonic. |
JQMenu |
getParentMenu()
Returns the parent menu of this menu item. |
Icon |
getRolloverIcon()
Returns rollover icon. |
java.lang.String |
getText()
Returns text. |
protected java.lang.String |
paramString()
Returns parameters string. |
void |
removeActionListener(ActionListener listener)
Removes action listener. |
void |
setAccelerator(KeyStroke keyStroke)
Sets accelerator. |
void |
setAction(Action action)
Sets the action. |
void |
setActionCommand(java.lang.String actionCommand)
Sets action command for this button. |
void |
setDisabledIcon(Icon icon)
Sets disabled icon. |
void |
setIcon(Icon icon)
Sets icon. |
void |
setMnemonic(int mnemonic)
Sets the keyboard mnemonic. |
void |
setRolloverIcon(Icon icon)
Sets rollover icon. |
void |
setText(java.lang.String text)
Sets text. |
void |
updateLocalization()
Updates localization. |
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 JQMenuItem()
public JQMenuItem(java.lang.String text)
text
- the textpublic JQMenuItem(Icon icon)
icon
- the iconpublic JQMenuItem(java.lang.String text, Icon icon)
text
- the texticon
- the iconpublic JQMenuItem(Action action)
action
- the actionMethod Detail |
public JQMenu getParentMenu()
public java.lang.String getText()
public void setText(java.lang.String text)
text
- the textpublic int getMnemonic()
public void setMnemonic(int mnemonic)
mnemonic
- the keyboard mnemonicpublic KeyStroke getAccelerator()
public void setAccelerator(KeyStroke keyStroke)
keyStroke
- the acceleratorpublic Icon getIcon()
public void setIcon(Icon icon)
icon
- the iconpublic Icon getDisabledIcon()
public void setDisabledIcon(Icon icon)
icon
- the disabled iconpublic Icon getRolloverIcon()
public void setRolloverIcon(Icon icon)
icon
- the rollover iconpublic Action getAction()
public void setAction(Action action)
action
- the actionpublic java.lang.String getActionCommand()
public void setActionCommand(java.lang.String actionCommand)
actionCommand
- the action commandpublic void addActionListener(ActionListener listener)
listener
- the action listener.public void removeActionListener(ActionListener listener)
listener
- the action listener.public ActionListener[] getActionListeners()
protected void configurePropertiesFromAction(Action action)
action
- the actionprotected java.beans.PropertyChangeListener createActionPropertyChangeListener()
protected void fireActionPerformed(ActionEvent e)
e
- the action eventpublic void updateLocalization()
updateLocalization
in class JQComponent
protected java.lang.String paramString()
paramString
in class JQComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |