public class ButtonBean extends DynamicActionAttributeSupport implements ButtonAction
ButtonAction
interface.Modifier and Type | Field and Description |
---|---|
private String |
clazz |
private boolean |
enabled |
private String |
icon |
private String |
id |
private String |
onClick |
private String |
style |
private int |
tabIndex |
private String |
title |
private String |
tooltip |
private boolean |
visible |
Constructor and Description |
---|
ButtonBean() |
Modifier and Type | Method and Description |
---|---|
String |
getClazz()
Class attribute of the main button tag.
|
String |
getIcon()
Get a reference to an image that will be displayed in the menu.
|
String |
getId()
ID attribute of the main button tag.
|
String |
getOnClick()
Deprecated.
|
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.
|
String |
getTitle()
Get the title of the button.
|
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(String clazz) |
void |
setEnabled(boolean enabled) |
void |
setIcon(String icon) |
void |
setId(String id) |
void |
setOnClick(String onClick)
Deprecated.
|
void |
setStyle(String style) |
void |
setTabIndex(int tabIndex) |
void |
setTitle(String title) |
void |
setTooltip(String tooltip) |
void |
setVisible(boolean visible) |
addAttributes, getAttributesString, getDynamicActionAttributes, setDynamicActionAttributesSource
private String clazz
private String icon
private String id
private String onClick
private String style
private String title
private String tooltip
private boolean enabled
private boolean visible
private int tabIndex
public String getClazz()
ButtonAction
getClazz
in interface ButtonAction
public String getIcon()
ButtonAction
getIcon
in interface ButtonAction
public String getId()
ButtonAction
getId
in interface ButtonAction
@Deprecated public String getOnClick()
ButtonAction
getOnClick
in interface ButtonAction
public String getStyle()
ButtonAction
style
attribute of the main button tag.getStyle
in interface ButtonAction
public String getTitle()
ButtonAction
getTitle
in interface ButtonAction
public 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(String clazz)
public void setIcon(String icon)
public void setId(String id)
@Deprecated public void setOnClick(String onClick)
public void setStyle(String style)
public void setTitle(String title)
public void setTooltip(String tooltip)
public void setEnabled(boolean enabled)
public void setVisible(boolean visible)
public void setTabIndex(int tabIndex)