Interface ButtonAction
- All Superinterfaces:
Action
- All Known Implementing Classes:
Button.ButtonActionWrapper
,ButtonBean
,FixedButtonFactory
Actions represented as buttons in a toolbar.
- Version:
- 2.7
- Author:
- nicklas
- Last modified
- $Date:2008-03-20 12:15:25 +0100 (Thu, 20 Mar 2008) $
-
Method Summary
Modifier and TypeMethodDescriptiongetClazz()
Class attribute of the main button tag.getIcon()
Get a reference to an image that will be displayed in the menu.getId()
ID attribute of the main button tag.getStyle()
Extra CSS style attributes that will be added to thestyle
attribute of the main button tag.int
Get the tab index used to control focus order when tabbing.getTitle()
Get the title of the button.A tooltip that is shown as a yellow popup when the user points the mouse at the button.boolean
If the button should be enabled or disabled.boolean
If the button should be visible or not.
-
Method Details
-
getId
String getId()ID attribute of the main button tag. You need to set this value to reference the button in a javascript.- Returns:
- The ID, or null
-
getClazz
String getClazz()Class attribute of the main button tag. The default value is "button".- Returns:
- Class attribute, or null to use the default "button"
-
getStyle
String getStyle()Extra CSS style attributes that will be added to thestyle
attribute of the main button tag.- Returns:
- Style attributes, or null
-
getTitle
String getTitle()Get the title of the button. -
getTooltip
String getTooltip()A tooltip that is shown as a yellow popup when the user points the mouse at the button.- Returns:
- The tooltip or null to not display any tooltip
-
getIcon
String getIcon()Get a reference to an image that will be displayed in the menu. It is recommended that the image is 16x16 pixels to line up with the other icons used by the BASE.- Returns:
- A reference to an image, or null if no image should be used
-
isEnabled
boolean isEnabled()If the button should be enabled or disabled. -
isVisible
boolean isVisible()If the button should be visible or not. -
getTabIndex
int getTabIndex()Get the tab index used to control focus order when tabbing. Use -1 to disable.- Since:
- 3.2
-