Class CmsXmlContentTab

java.lang.Object
org.opencms.xml.content.CmsXmlContentTab

public class CmsXmlContentTab extends Object
Represents a configured tab to be used in the XML content editor for better usability.

  • Constructor Details

    • CmsXmlContentTab

      public CmsXmlContentTab(String startName)
      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

      public CmsXmlContentTab(String startName, boolean collapsed, String tabName, String description)
      Constructor with all possible tab parameter settings.

      Parameters:
      startName - XML element name where this tab starts
      collapsed - indicates if the first level of left labels should be shown in the editor
      tabName - the name to display on the tab
      description - the tab description HTML
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • getDescription

      Gets the tab description HTML.

      Returns:
      the tab description HTML
    • getIdName

      public String 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

      public String getStartName()
      Returns the XML element name where this tab starts.

      Returns:
      the XML element name where this tab starts
    • getTabName

      public String getTabName()
      Returns the name to display on the tab.

      Returns:
      the name to display on the tab
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • isCollapsed

      public boolean 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