public class CmsGalleryTabConfiguration
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
限定符和类型 | 字段和说明 |
---|---|
static java.util.Map<java.lang.String,CmsGalleryTabConfiguration> |
DEFAULT_CONFIGURATIONS
The map containing the predefined tab configurations.
|
protected I_CmsGalleryProviderConstants.GalleryTabId |
m_defaultTab
The id of the default tab.
|
static java.lang.String |
TC_ADE_ADD
Gallery configuration id.
|
static java.lang.String |
TC_FOLDERS
Gallery configuration id.
|
static java.lang.String |
TC_SELECT_ALL
Gallery configuration id.
|
static java.lang.String |
TC_SELECT_DOC
Gallery configuration id.
|
限定符 | 构造器和说明 |
---|---|
protected |
CmsGalleryTabConfiguration()
Default constructor for serialization.
|
|
CmsGalleryTabConfiguration(java.util.List<I_CmsGalleryProviderConstants.GalleryTabId> tabsList)
Creates a new gallery tab configuration based on a list of tabs.
|
限定符和类型 | 方法和说明 |
---|---|
static CmsGalleryTabConfiguration |
getDefault()
Gets the default tab configuration.
|
I_CmsGalleryProviderConstants.GalleryTabId |
getDefaultTab()
Gets the default tab.
|
java.util.List<I_CmsGalleryProviderConstants.GalleryTabId> |
getTabs()
Gets the list of tabs.
|
static CmsGalleryTabConfiguration |
parse(java.lang.String configStr)
Creates a gallery tab configuration from a configuration string.
|
static I_CmsGalleryProviderConstants.GalleryTabId |
parseTabId(java.lang.String tabId)
Parses a tab id from a gallery configuration string.
|
static CmsGalleryTabConfiguration |
resolve(java.lang.String configStr)
Given a string which is either the name of a predefined tab configuration or a configuration string, returns
the corresponding tab configuration.
|
CmsGalleryTabConfiguration |
withDefault(I_CmsGalleryProviderConstants.GalleryTabId defaultTab)
Creates a new tab configuration based on this one, but changes its default tab.
|
public static final java.util.Map<java.lang.String,CmsGalleryTabConfiguration> DEFAULT_CONFIGURATIONS
public static final java.lang.String TC_ADE_ADD
public static final java.lang.String TC_FOLDERS
public static final java.lang.String TC_SELECT_ALL
public static final java.lang.String TC_SELECT_DOC
protected I_CmsGalleryProviderConstants.GalleryTabId m_defaultTab
public CmsGalleryTabConfiguration(java.util.List<I_CmsGalleryProviderConstants.GalleryTabId> tabsList)
tabsList
- the list of tabsprotected CmsGalleryTabConfiguration()
public static CmsGalleryTabConfiguration getDefault()
public static CmsGalleryTabConfiguration parse(java.lang.String configStr)
The string should consist of a comma-separated list of tab ids, omitting the cms_tab_ prefix of the corresponding enum values. The tab which should be used as a default tab should be prefixed with an asterisk '*'.
configStr
- the configuration stringpublic static I_CmsGalleryProviderConstants.GalleryTabId parseTabId(java.lang.String tabId)
tabId
- the tab id to parsepublic static CmsGalleryTabConfiguration resolve(java.lang.String configStr)
configStr
- a configuration string or predefined configuration namepublic I_CmsGalleryProviderConstants.GalleryTabId getDefaultTab()
public java.util.List<I_CmsGalleryProviderConstants.GalleryTabId> getTabs()
public CmsGalleryTabConfiguration withDefault(I_CmsGalleryProviderConstants.GalleryTabId defaultTab)
defaultTab
- the new default tab