public class ButtonGroup extends StylableTag
Syntax:
<base:buttongroup id=... class=... subclass=... style=... > <base:button ... > <base:button ... > </base:buttongroup>
Attribute | Default value | Required | Description |
id | - | no | The ID of the button. The value of this attribute
goes directly into the standard id attribute.
This means that if you need a reference to the button object in your own
JavaScript code, you may for example use the following code:
|
clazz | buttongroup | no |
The value if this attribute goes directly into the standard HTML
class attribute. This allows you to apply different styles
to different buttons.
|
subclass | - | no | Additional classes to put in the HTML class attribute. Doesn't replace the main class attribute. |
style | - | no |
The value if this attribute goes directly into the standard HTML
style attribute. This allows you to apply different styles
to different buttons.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
buttons
The buttons in this group.
|
private static long |
serialVersionUID |
private boolean |
vertical
If the buttons should be vertically grouped.
|
id, pageContext
EVAL_BODY_AGAIN
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
Constructor and Description |
---|
ButtonGroup() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addButton(java.lang.String html) |
int |
doEndTag() |
int |
doStartTag() |
void |
setVertical(boolean vertical) |
addDynamicAttributes, addIdAndStyles, getClazz, getDynamicActionAttributes, getDynamicAttribute, getFullClass, getIdPrefix, getStyle, getSubclass, initDefaultAttributes, setClazz, setDynamicAttribute, setMoreDynamicAttributes, setPageContext, setStyle, setSubclass
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setParent, setValue
private static final long serialVersionUID
private java.util.List<java.lang.String> buttons
private boolean vertical
public void setVertical(boolean vertical)
void addButton(java.lang.String html)
public int doStartTag() throws JspException
doStartTag
in interface Tag
doStartTag
in class TagSupport
JspException
public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException