|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--planetj.gui.CMAction
Field Summary | |
char |
desiredMnemonic
|
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
CMAction()
ActionClass constructor comment. |
|
CMAction(String name)
ActionClass constructor comment. |
|
CMAction(String name,
Icon icon)
ActionClass constructor comment. |
Method Summary | |
void |
actionPerformed(ActionEvent arg1)
when an action is performed by a user on this action, this method should be called. |
void |
addActionListener(ActionListener l)
Adds an action listener to this action |
void |
fireActionPerformed(ActionEvent e)
This method was created in VisualAge. |
char |
getDesiredMnemonic()
This returns the mnemonic that should be used for this action. |
Icon |
getDisabledIcon()
Insert the method's description here. |
Icon |
getIcon()
Gets the icon property (javax.swing.Icon) value. |
String |
getName()
Gets the name property (String) value. |
Icon |
getPressedIcon()
Insert the method's description here. |
Icon |
getRolloverIcon()
Insert the method's description here. |
Icon |
getSelectedIcon()
Insert the method's description here. |
String |
getText()
Gets the text property (java.lang.String) value. |
String |
getToolTip()
Gets the toolTip property (java.lang.String) value. |
void |
removeActionListener(ActionListener l)
Removes the action listener for this action |
void |
setDesiredMnemonic(char newDesiredMnemonic)
This sets the mnemonic that should be used for this action. |
void |
setDisabledIcon(Icon newDisabledIcon)
Insert the method's description here. |
void |
setIcon(Icon icon)
Sets the icon property (javax.swing.Icon) value. |
void |
setPressedIcon(Icon newPressedIcon)
Insert the method's description here. |
void |
setRolloverIcon(Icon newRolloverIcon)
Insert the method's description here. |
void |
setSelectedIcon(Icon newSelectedIcon)
Insert the method's description here. |
void |
setText(String text)
Sets the text property (java.lang.String) value and retrieves the translated text from a properties file. |
void |
setToolTip(String toolTip)
Sets the toolTip property (java.lang.String) value and retrieves the translated text from a properties file. |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public char desiredMnemonic
Constructor Detail |
public CMAction()
public CMAction(String name)
name
- java.lang.Stringpublic CMAction(String name, Icon icon)
name
- java.lang.Stringicon
- javax.swing.IconMethod Detail |
public void actionPerformed(ActionEvent arg1)
public void addActionListener(ActionListener l)
l
- java.awt.event.ActionListenerpublic void fireActionPerformed(ActionEvent e)
e
- java.awt.event.ActionEventpublic char getDesiredMnemonic()
public Icon getDisabledIcon()
public Icon getIcon()
setIcon(javax.swing.Icon)
public String getName()
public Icon getPressedIcon()
public Icon getRolloverIcon()
public Icon getSelectedIcon()
public String getText()
setText(java.lang.String)
public String getToolTip()
setToolTip(java.lang.String)
public void removeActionListener(ActionListener l)
l
- java.awt.event.ActionListenerpublic void setDesiredMnemonic(char newDesiredMnemonic)
newDesiredMnemonic
- charpublic void setDisabledIcon(Icon newDisabledIcon)
newDisabledIcon
- javax.swing.Iconpublic void setIcon(Icon icon)
icon
- The new value for the property.getIcon()
public void setPressedIcon(Icon newPressedIcon)
newPressedIcon
- javax.swing.Iconpublic void setRolloverIcon(Icon newRolloverIcon)
newRolloverIcon
- javax.swing.Iconpublic void setSelectedIcon(Icon newSelectedIcon)
newSelectedIcon
- javax.swing.Iconpublic void setText(String text)
text
- The new value for the property.getText()
public void setToolTip(String toolTip)
toolTip
- The new value for the property.getToolTip()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |