Package org.opencms.gwt.client.ui
Interface I_CmsToolbarButton
- All Superinterfaces:
com.google.gwt.event.dom.client.HasClickHandlers,com.google.gwt.event.shared.HasHandlers
- All Known Implementing Classes:
A_CmsToolbarButton,A_CmsToolbarMenu,A_CmsToolbarOptionButton,CmsAddToFavoritesButton,CmsQuickLauncher,CmsToolbarAllGalleriesMenu,CmsToolbarClipboardMenu,CmsToolbarContextButton,CmsToolbarEditButton,CmsToolbarElementInfoButton,CmsToolbarFavLocationButton,CmsToolbarGalleryMenu,CmsToolbarInfoButton,CmsToolbarListAddButton,CmsToolbarListManagerButton,CmsToolbarMoveButton,CmsToolbarPublishButton,CmsToolbarPublishButton,CmsToolbarRemoveButton,CmsToolbarResetButton,CmsToolbarSaveButton,CmsToolbarSelectionButton,CmsToolbarSelectionButton,CmsToolbarSettingsButton,CmsToolbarSitemapButton,CmsUserInfo
Interface for all tool-bar buttons.
- Since:
- 8.0.0
-
Method Summary
Modifier and TypeMethodDescriptiongetTitle()Returns the localized button title.booleanisActive()Returns whether this button is active (pushed, not disabled).voidMethod executed when the button is activated.voidExecuted when the tool-bar button is clicked.voidMethod executed when the button is deactivated.voidsetActive(boolean active) Sets the button to active (pushed, not disabled).voidsetEnabled(boolean enabled) Enables or disables the button.Methods inherited from interface com.google.gwt.event.dom.client.HasClickHandlers
addClickHandlerMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
Method Details
-
getTitle
Returns the localized button title. Will show in tool-tip.- Returns:
- the button title
-
isActive
boolean isActive()Returns whether this button is active (pushed, not disabled).- Returns:
trueif the button is active
-
onToolbarActivate
void onToolbarActivate()Method executed when the button is activated. -
onToolbarClick
void onToolbarClick()Executed when the tool-bar button is clicked. -
onToolbarDeactivate
void onToolbarDeactivate()Method executed when the button is deactivated. -
setActive
Sets the button to active (pushed, not disabled).- Parameters:
active-trueif active
-
setEnabled
Enables or disables the button.- Parameters:
enabled- if true, enable the button, else disable it
-