com.arsdigita.acs
Class ActionList
java.lang.Object
|
+--com.arsdigita.acs.ActionList
- public class ActionList
- extends Object
Class that displays a list of links that denote actions that can
be taken from the current page.
Elements are added to the action list in order; each element consists
of a path to be used as a relative URL link, and the title to be displayed
as a link to that path. When displayed, the actions are separated by a
vertical bar.
Constructor Summary |
ActionList()
Creates a new action list. |
Method Summary |
void |
add(String path,
String title)
Adds a new element to the action list. |
String |
getHTML()
Returns HTML representation of this action list. |
String |
toString()
Returns HTML representation of this action list. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActionList
public ActionList()
- Creates a new action list.
add
public void add(String path,
String title)
- Adds a new element to the action list.
- Parameters:
path
- Relative URL to appear in href
title
- Title for this page
getHTML
public String getHTML()
- Returns HTML representation of this action list.
- Returns:
- HTML action list
toString
public String toString()
- Returns HTML representation of this action list.
- Overrides:
toString
in class Object
- Returns:
- HTML action list