|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 renderpublic 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
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |