|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.path.list.ParsedActionPathList
public class ParsedActionPathList
This class defines a list of ActionPath from a list of encoded paths.
Each encoded path is a semi-colon-separated (;) list of tokens. Only the last
token is significant and will be used to create the actual ActionPath
type. The previous tokens are used to build the
path stack.
For example, the "File;New;-" encoded path will create a
SeparatorActionPath (-) with the path stack set to ["File";"New"].
The table below shows the different formats used by the last token (which
identifies the actual ActionPath instance).
| Format | Type |
|---|---|
| -<ignored> (anything starting with a "-") | SeparatorActionPath. The remaining text is ignored. |
| @<name> | PlaceholderActionPath with the given
name |
| $<name> | SubActionPath whose actionPath is looked up in the
application context by its name |
| <name>@<placeholder> | ReplacementActionPath with the given
placeholder and whose
action is
looked up in the application context by its
name |
| <name> | Simple GUIActionPath whose action is looked up in the application
context by its name |
| Constructor Summary | |
|---|---|
ParsedActionPathList()
|
|
| Method Summary | |
|---|---|
GUIAction |
getAction(String name)
Finds a GUIAction by its name in the ApplicationContext. |
ActionPath |
getActionPath(String name)
Finds an ActionPath by its name in the ApplicationContext
. |
List<ActionPath> |
getPaths()
Returns the list of ActionPath. |
void |
init()
Parses all encoded paths to actual instances of ActionPath. |
protected ActionPath |
parse(String path)
Parses an encoded path to an actual instance of ActionPath. |
void |
setPaths(List<String> paths)
Sets the list of paths using their encoded form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParsedActionPathList()
| Method Detail |
|---|
public GUIAction getAction(String name)
GUIAction by its name in the ApplicationContext.
name - Action name
GUIAction instancepublic ActionPath getActionPath(String name)
ActionPath by its name in the ApplicationContext
.
name - Action name
ActionPath instancepublic List<ActionPath> getPaths()
ActionPathListActionPath.
getPaths in interface ActionPathListActionPath.@PostConstruct public void init()
ActionPath.
protected ActionPath parse(String path)
ActionPath.
path - Encoded path
ActionPath instancepublic void setPaths(List<String> paths)
paths - List of encoded paths
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||