Class CompactButtonRenderer
java.lang.Object
net.sf.basedb.util.extensions.AbstractRenderer<ButtonAction>
net.sf.basedb.clients.web.extensions.toolbar.CompactButtonRenderer
- All Implemented Interfaces:
Renderer<ButtonAction>
A compact renderer for toolbar button actions, which only
only displays the icon.
- Version:
- 2.7
- Author:
- nicklas
- Last modified
- $Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the HTML tag to use for the "button".void
render
(ButtonAction btn, Extension<? extends ButtonAction> ext) Generates a linked icon:void
setButtonTag
(String tag) Set the HTML tag to use for the "button".Methods inherited from class net.sf.basedb.util.extensions.AbstractRenderer
render
-
Field Details
-
context
-
buttonTag
-
-
Constructor Details
-
CompactButtonRenderer
-
-
Method Details
-
setButtonTag
Set the HTML tag to use for the "button". The default is 'a'.- Since:
- 3.16
-
getButtonTag
Get the HTML tag to use for the "button". The default is 'a'.- Since:
- 3.16
-
render
Generates a linked icon:<a id="[id]" class="[clazz]" style="[style]" title="[title]: [tooltip]" ><img src="[icon]"></a>
If the button isn't visible nothing is generated. If the button isn't enabled, the href attribute is not generated.- Parameters:
btn
- The action to render- Since:
- 3.19.8
-