public class NamedDestination
extends java.lang.Object
Constructor and Description |
---|
NamedDestination(java.lang.String name,
AbstractAction action)
Creates a new named destination.
|
Modifier and Type | Method and Description |
---|---|
AbstractAction |
getAction()
Returns the action performed when the destination is selected.
|
java.lang.String |
getName()
Returns the destination's name.
|
void |
setAction(AbstractAction action)
Sets the action performed when the destination is selected.
|
public NamedDestination(java.lang.String name, AbstractAction action)
name
- the destination's nameaction
- the action performed when the destination is selectedpublic java.lang.String getName()
public AbstractAction getAction()
public void setAction(AbstractAction action)
action
- the actionCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.