|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
org.jppf.ui.actions.AbstractUpdatableAction
public abstract class AbstractUpdatableAction
Abstract superclass for actions used in toolbars or popup menus.
| Field Summary | |
|---|---|
protected String |
BASE
The base location for internationalized messages. |
protected Point |
location
Location at which to display any window or dialog created by this action. |
protected List<Object> |
selectedElements
The list of selected elements. |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
AbstractUpdatableAction()
|
|
| Method Summary | |
|---|---|
Point |
getLocation()
Get the location at which to display any window or dialog created by this action. |
protected String |
localize(String message)
Get a localized message given its unique name and the current locale. |
void |
setLocation(Point location)
Set the location at which to display any window or dialog created by this action. |
protected void |
setupIcon(String name)
Set the icon for this action using the specified image file name. |
protected void |
setupNameAndTooltip(String name)
Set the action name and tooltip text. |
void |
updateState(List<Object> selectedElements)
Update this action's enabled state based on a list of selected elements. |
void |
valueChanged(ValueChangeEvent event)
Method called when the action is triggered. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.Action |
|---|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Field Detail |
|---|
protected String BASE
protected List<Object> selectedElements
protected Point location
| Constructor Detail |
|---|
public AbstractUpdatableAction()
| Method Detail |
|---|
public Point getLocation()
Point instance.public void setLocation(Point location)
location - a Point instance.public void updateState(List<Object> selectedElements)
updateState in interface UpdatableActionselectedElements - a list of objects.UpdatableAction.updateState(java.util.List)public void valueChanged(ValueChangeEvent event)
valueChanged in interface ValueChangeListenerevent - the event encapsulating the source of the event.ValueChangeListener.valueChanged(org.jppf.ui.options.event.ValueChangeEvent)protected void setupIcon(String name)
name - the name of the icon image file.protected void setupNameAndTooltip(String name)
name - the key to find the name and tooltip in the localized resource bundles.protected String localize(String message)
message - the unique name of the localized message.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||