Package org.opencms.xml.content
Class CmsXmlContentTab
java.lang.Object
org.opencms.xml.content.CmsXmlContentTab
Represents a configured tab to be used in the XML content editor for better usability.
-
Constructor Summary
ConstructorDescriptionCmsXmlContentTab
(String startName) Constructor with the start element name.CmsXmlContentTab
(String startName, boolean collapsed, String tabName, String description) Constructor with all possible tab parameter settings. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the tab description HTML.Returns the name for the tab ID, generated from the start name.Returns the XML element name where this tab starts.Returns the name to display on the tab.int
hashCode()
boolean
Indicates if the first level of left labels should be shown in the editor.
-
Constructor Details
-
CmsXmlContentTab
Constructor with the start element name.The tab name is equal to the element name and the first level should not be shown in the editor.
- Parameters:
startName
- the XML element name where this tab starts
-
CmsXmlContentTab
Constructor with all possible tab parameter settings.- Parameters:
startName
- XML element name where this tab startscollapsed
- indicates if the first level of left labels should be shown in the editortabName
- the name to display on the tabdescription
- the tab description HTML
-
-
Method Details
-
equals
-
getDescription
Gets the tab description HTML.- Returns:
- the tab description HTML
-
getIdName
Returns the name for the tab ID, generated from the start name.- Returns:
- the name for the tab ID, generated from the start name
-
getStartName
Returns the XML element name where this tab starts.- Returns:
- the XML element name where this tab starts
-
getTabName
Returns the name to display on the tab.- Returns:
- the name to display on the tab
-
hashCode
-
isCollapsed
Indicates if the first level of left labels should be shown in the editor.- Returns:
true
if the first level of left labels should NOT be shown in the editor
-