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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.vaadin.ui.ComponentcreateAppButton(CmsObject cms, I_CmsWorkplaceAppConfiguration appConfig, Locale locale) Creates a properly styled button for the given app.com.vaadin.ui.ComponentcreateAppButton(I_CmsWorkplaceAppConfiguration appConfig) Creates an app launcher button.static com.vaadin.ui.ComponentcreateAppFolderButton(CmsObject cms, CmsAppCategoryNode node, Locale locale) Creates a properly styled button for the given app.com.vaadin.ui.ComponentCreates an app folder button.static com.vaadin.ui.ButtoncreateAppFolderIconButton(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.ButtoncreateAppIconButton(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.ButtoncreateIconButton(String name, String description, com.vaadin.server.Resource icon) Creates an icon button.static com.vaadin.ui.ButtoncreateIconButton(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_CmsAppButtonProviderCreates an app launcher button.- Specified by:
createAppButtonin interfaceI_CmsAppButtonProvider- Parameters:
appConfig- the app configuration- Returns:
- the button component
- See Also:
-
createAppFolderButton
Description copied from interface:I_CmsAppButtonProviderCreates an app folder button.- Specified by:
createAppFolderButtonin interfaceI_CmsAppButtonProvider- Parameters:
node- the folder configuration- Returns:
- the button component
- See Also:
-