public class ButtonBean extends DynamicActionAttributeSupport implements ButtonAction
ButtonAction
interface.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clazz |
private boolean |
enabled |
private java.lang.String |
icon |
private java.lang.String |
id |
private java.lang.String |
style |
private int |
tabIndex |
private java.lang.String |
title |
private java.lang.String |
tooltip |
private boolean |
visible |
Constructor and Description |
---|
ButtonBean() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClazz()
Class attribute of the main button tag.
|
java.lang.String |
getIcon()
Get a reference to an image that will be displayed in the menu.
|
java.lang.String |
getId()
ID attribute of the main button tag.
|
java.lang.String |
getStyle()
Extra CSS style attributes that will be added to the
style attribute of the main button tag. |
int |
getTabIndex()
Get the tab index used to control focus order when tabbing.
|
java.lang.String |
getTitle()
Get the title of the button.
|
java.lang.String |
getTooltip()
A tooltip that is shown as a yellow popup when the
user points the mouse at the button.
|
boolean |
isEnabled()
If the button should be enabled or disabled.
|
boolean |
isVisible()
If the button should be visible or not.
|
void |
setClazz(java.lang.String clazz) |
void |
setEnabled(boolean enabled) |
void |
setIcon(java.lang.String icon) |
void |
setId(java.lang.String id) |
void |
setStyle(java.lang.String style) |
void |
setTabIndex(int tabIndex) |
void |
setTitle(java.lang.String title) |
void |
setTooltip(java.lang.String tooltip) |
void |
setVisible(boolean visible) |
addAttributes, getAttributesString, getDynamicActionAttributes, setDynamicActionAttributesSource
private java.lang.String clazz
private java.lang.String icon
private java.lang.String id
private java.lang.String style
private java.lang.String title
private java.lang.String tooltip
private boolean enabled
private boolean visible
private int tabIndex
public java.lang.String getClazz()
ButtonAction
getClazz
in interface ButtonAction
public java.lang.String getIcon()
ButtonAction
getIcon
in interface ButtonAction
public java.lang.String getId()
ButtonAction
getId
in interface ButtonAction
public java.lang.String getStyle()
ButtonAction
style
attribute of the main button tag.getStyle
in interface ButtonAction
public java.lang.String getTitle()
ButtonAction
getTitle
in interface ButtonAction
public java.lang.String getTooltip()
ButtonAction
getTooltip
in interface ButtonAction
public boolean isEnabled()
ButtonAction
isEnabled
in interface ButtonAction
public boolean isVisible()
ButtonAction
isVisible
in interface ButtonAction
public int getTabIndex()
ButtonAction
getTabIndex
in interface ButtonAction
public void setClazz(java.lang.String clazz)
public void setIcon(java.lang.String icon)
public void setId(java.lang.String id)
public void setStyle(java.lang.String style)
public void setTitle(java.lang.String title)
public void setTooltip(java.lang.String tooltip)
public void setEnabled(boolean enabled)
public void setVisible(boolean visible)
public void setTabIndex(int tabIndex)