Class CmsResourceTypeApp
java.lang.Object
org.opencms.ui.apps.A_CmsWorkplaceApp
org.opencms.ui.apps.resourcetypes.CmsResourceTypeApp
- All Implemented Interfaces:
I_CmsWorkplaceApp
App to manage the resource types.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
A_CmsWorkplaceApp.NavEntry
-
Field Summary
Fields inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
m_infoLayout, m_rootLayout, m_uiContext, PARAM_ASSIGN, PARAM_SEPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LinkedHashMap<String,
String> getBreadCrumbForState
(String state) Returns the current bread crumb entries in an ordered map.protected com.vaadin.ui.Component
getComponentForState
(String state) Returns the app component for the given state.protected List<A_CmsWorkplaceApp.NavEntry>
getSubNavEntries
(String state) Returns the sub navigation entries.void
initUI
(I_CmsAppUIContext context) Within this method the app UI should be initialized.static boolean
isResourceTypeIdFree
(int id) Is the given resource type id free?static boolean
isResourceTypeNameFree
(String name) Is resource type name free.void
reload()
Reloads the table.Methods inherited from class org.opencms.ui.apps.A_CmsWorkplaceApp
addParamToState, addSubNavEntry, getLastPathLevel, getOfflineCmsObject, getParamFromState, getParamsFromState, onStateChange, openSubView, removeParamsFromState, setBreadCrumbEntries, updateBreadCrumb, updateSubNav
-
Constructor Details
-
CmsResourceTypeApp
public CmsResourceTypeApp()
-
-
Method Details
-
isResourceTypeIdFree
Is the given resource type id free?- Parameters:
id
- to be checked- Returns:
- boolean
-
isResourceTypeNameFree
Is resource type name free.- Parameters:
name
- to be checked- Returns:
- boolean
-
initUI
Description copied from interface:I_CmsWorkplaceApp
Within this method the app UI should be initialized.Use the context to add the app's components to the UI.
- Specified by:
initUI
in interfaceI_CmsWorkplaceApp
- Overrides:
initUI
in classA_CmsWorkplaceApp
- Parameters:
context
- the UI context- See Also:
-
reload
Reloads the table. -
getBreadCrumbForState
Description copied from class:A_CmsWorkplaceApp
Returns the current bread crumb entries in an ordered map.- Specified by:
getBreadCrumbForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the current state- Returns:
- bread crumb entry name by state, in case the state is empty, the entry will be disabled
- See Also:
-
getComponentForState
Description copied from class:A_CmsWorkplaceApp
Returns the app component for the given state.- Specified by:
getComponentForState
in classA_CmsWorkplaceApp
- Parameters:
state
- the state to render- Returns:
- the app component
- See Also:
-