|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.PingOO.DLAI.lib.PWidget.PAction
Defines an action that will use localized resources.
Actions are usefull to provide a single way of handling the same action from two (or more) different sources.
Eg: a popupmenu's menuitem and a toolbar's button can execute the same action, and if the action is disabled the two object will automatically be disbled as well.
Actually PAction can be used with PMenu, PPoppupMenu and PToolBar (as AbstractAction can be used with JMenu, JPopupMenu and JToolBar), it might be extended in the future with an added constructor in PButton, PRadioButton and PToggleButton.
AbstractAction, Serialized Form| Field Summary | |
protected static java.lang.String |
DEFAULT_MODULE
Defines the default module where to find this object's text and tool tip. |
static java.lang.String |
MODULE
Defines the key used to retrieve this object's module. |
static java.lang.String |
TEXT_KEY
Defines the key used to retrieve this object's text key. |
static java.lang.String |
TOOL_TIP_KEY
Defines the key used to retrieve this object's tool tip key. |
| Fields inherited from class javax.swing.AbstractAction |
changeSupport,
enabled,
keyTable |
| Constructor Summary | |
PAction()
Creates a new action. |
|
PAction(javax.swing.Icon icon)
Creates a new action. |
|
PAction(javax.swing.Icon icon,
java.lang.String toolTipKey)
Creates a new action. |
|
PAction(javax.swing.Icon icon,
java.lang.String toolTipKey,
java.lang.String module)
Creates a new action. |
|
PAction(java.lang.String textKey)
Creates a new action. |
|
PAction(java.lang.String textKey,
javax.swing.Icon icon)
Creates a new action. |
|
PAction(java.lang.String textKey,
java.lang.String toolTipKey,
javax.swing.Icon icon)
Creates a new action. |
|
PAction(java.lang.String textKey,
java.lang.String toolTipKey,
java.lang.String module,
javax.swing.Icon icon)
Creates a new action. |
|
| Methods inherited from class javax.swing.AbstractAction |
actionPerformed,
addPropertyChangeListener,
clone,
firePropertyChange,
getValue,
isEnabled,
putValue,
removePropertyChangeListener,
setEnabled |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected static final java.lang.String DEFAULT_MODULE
public static final java.lang.String TEXT_KEY
public static final java.lang.String TOOL_TIP_KEY
public static final java.lang.String MODULE
| Constructor Detail |
public PAction()
public PAction(java.lang.String textKey)
textKey - Used by the targeted components to find their text.
public PAction(java.lang.String textKey,
javax.swing.Icon icon)
textKey - Used by the targeted components to find their text.icon - The icon to put on the targeted components.
public PAction(java.lang.String textKey,
java.lang.String toolTipKey,
javax.swing.Icon icon)
textKey - Used by the targeted components to find their text.toolTipKey - Used by the targeted components to find their toolTip.icon - The icon to put on the targeted components.public PAction(javax.swing.Icon icon)
icon - The icon to put on the targeted components.
public PAction(javax.swing.Icon icon,
java.lang.String toolTipKey)
icon - The icon to put on the targeted components.toolTipKey - Used by the targeted components to find their toolTip.
public PAction(javax.swing.Icon icon,
java.lang.String toolTipKey,
java.lang.String module)
icon - The icon to put on the targeted components.toolTipKey - Used by the targeted components to find their toolTip.module - Used by the targeted components to find their resources.
public PAction(java.lang.String textKey,
java.lang.String toolTipKey,
java.lang.String module,
javax.swing.Icon icon)
textKey - Used by the targeted components to find their text.toolTipKey - Used by the targeted components to find their toolTip.module - Used by the targeted components to find their resources.icon - The icon to put on the targeted components.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||