Package org.opencms.ui.apps
Class CmsDefaultAppButtonProvider
java.lang.Object
org.opencms.ui.apps.CmsDefaultAppButtonProvider
- All Implemented Interfaces:
I_CmsAppButtonProvider
The default app button provider.
-
Field Summary
Fields inherited from interface org.opencms.ui.apps.I_CmsAppButtonProvider
BUTTON_STYLE_BLUE, BUTTON_STYLE_CLASSIC, BUTTON_STYLE_CYAN, BUTTON_STYLE_GRAY, BUTTON_STYLE_ORANGE, BUTTON_STYLE_RED, BUTTON_STYLE_TRANSPARENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.vaadin.ui.Component
createAppButton
(CmsObject cms, I_CmsWorkplaceAppConfiguration appConfig, Locale locale) Creates a properly styled button for the given app.com.vaadin.ui.Component
createAppButton
(I_CmsWorkplaceAppConfiguration appConfig) Creates an app launcher button.static com.vaadin.ui.Component
createAppFolderButton
(CmsObject cms, CmsAppCategoryNode node, Locale locale) Creates a properly styled button for the given app.com.vaadin.ui.Component
Creates an app folder button.static com.vaadin.ui.Button
createAppFolderIconButton
(I_CmsFolderAppCategory appCat, Locale locale) Creates a properly styled button for the given app, without adding a click handler or checking visibility settings.static com.vaadin.ui.Button
createAppIconButton
(I_CmsWorkplaceAppConfiguration appConfig, Locale locale) Creates a properly styled button for the given app, without adding a click handler or checking visibility settings.static com.vaadin.ui.Button
createIconButton
(String name, String description, com.vaadin.server.Resource icon) Creates an icon button.static com.vaadin.ui.Button
createIconButton
(String name, String description, com.vaadin.server.Resource icon, String buttonStyle) Creates an icon button.
-
Constructor Details
-
CmsDefaultAppButtonProvider
public CmsDefaultAppButtonProvider()
-
-
Method Details
-
createAppButton
public static com.vaadin.ui.Component createAppButton(CmsObject cms, I_CmsWorkplaceAppConfiguration appConfig, Locale locale) Creates a properly styled button for the given app.- Parameters:
cms
- the cms contextappConfig
- the app configurationlocale
- the locale- Returns:
- the button component
-
createAppFolderButton
public static com.vaadin.ui.Component createAppFolderButton(CmsObject cms, CmsAppCategoryNode node, Locale locale) Creates a properly styled button for the given app.- Parameters:
cms
- the cms contextnode
- the node to display a buttom forlocale
- the locale- Returns:
- the button component (I_CmsFolderAppCategory)childNode.getCategory(), childNode.getAppConfigurations())
-
createAppFolderIconButton
public static com.vaadin.ui.Button createAppFolderIconButton(I_CmsFolderAppCategory appCat, Locale locale) Creates a properly styled button for the given app, without adding a click handler or checking visibility settings.- Parameters:
appCat
- the app categorylocale
- the locale- Returns:
- the button component
-
createAppIconButton
public static com.vaadin.ui.Button createAppIconButton(I_CmsWorkplaceAppConfiguration appConfig, Locale locale) Creates a properly styled button for the given app, without adding a click handler or checking visibility settings.- Parameters:
appConfig
- the app configurationlocale
- the locale- Returns:
- the button component
-
createIconButton
public static com.vaadin.ui.Button createIconButton(String name, String description, com.vaadin.server.Resource icon) Creates an icon button.- Parameters:
name
- the namedescription
- the descriptionicon
- the icon- Returns:
- the created button
-
createIconButton
public static com.vaadin.ui.Button createIconButton(String name, String description, com.vaadin.server.Resource icon, String buttonStyle) Creates an icon button.- Parameters:
name
- the namedescription
- the descriptionicon
- the iconbuttonStyle
- the button style- Returns:
- the created button
-
createAppButton
Description copied from interface:I_CmsAppButtonProvider
Creates an app launcher button.- Specified by:
createAppButton
in interfaceI_CmsAppButtonProvider
- Parameters:
appConfig
- the app configuration- Returns:
- the button component
- See Also:
-
createAppFolderButton
Description copied from interface:I_CmsAppButtonProvider
Creates an app folder button.- Specified by:
createAppFolderButton
in interfaceI_CmsAppButtonProvider
- Parameters:
node
- the folder configuration- Returns:
- the button component
- See Also:
-