|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.basedb.clients.web.extensions.toolbar.ToolbarButtonRenderer
public class ToolbarButtonRenderer
A renderer for toolbar button actions, which displays the
action as a toolbar button. The render can also be used in
"standalone" mode (eg. without a JspContext).
| Field Summary | |
|---|---|
private JspContext |
context
|
| Constructor Summary | |
|---|---|
ToolbarButtonRenderer()
Create a new "standalone" toolbar button renderer. |
|
ToolbarButtonRenderer(JspContext context)
Create a new toolbar button renderer. |
|
| Method Summary | |
|---|---|
String |
getHTML(ButtonAction btn,
boolean displayText,
boolean displayIcon)
Generate the HTML that is needed to create a toolbar button. |
void |
render(ButtonAction btn)
Generates a toolbar button. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private JspContext context
| Constructor Detail |
|---|
public ToolbarButtonRenderer()
getHTML(ButtonAction, boolean, boolean) to
generate the HTML. Do not use render(ButtonAction) since
that requires a JspContext.
public ToolbarButtonRenderer(JspContext context)
| Method Detail |
|---|
public void render(ButtonAction btn)
render in interface Renderer<ButtonAction>btn - The action to render
public String getHTML(ButtonAction btn,
boolean displayText,
boolean displayIcon)
btn - The button informationdisplayText - If text should be displayed on the button or notdisplayIcon - If the icon should be displayed on the button or not
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||