org.opencms.xml.content
Class CmsXmlContentTab

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

public class CmsXmlContentTab
extends java.lang.Object

Represents a configured tab to be used in the XML content editor for better usability.

Version:
$Revision: 1.3 $
Author:
Andreas Zahner

Constructor Summary
CmsXmlContentTab(java.lang.String startName)
          Constructor with the start element name.
CmsXmlContentTab(java.lang.String startName, boolean collapsed, java.lang.String tabName)
          Constructor with all possible tab parameter settings.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getStartName()
          Returns the XML element name where this tab starts.
 java.lang.String getTabName()
          Returns the name to display on the tab.
 int hashCode()
           
 boolean isCollapsed()
          Indicates if the first level of left labels should be shown in the editor.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsXmlContentTab

public CmsXmlContentTab(java.lang.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(java.lang.String startName,
                        boolean collapsed,
                        java.lang.String tabName)
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
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

getStartName

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

Returns:
the XML element name where this tab starts

getTabName

public java.lang.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 java.lang.Object
See Also:
Object.hashCode()

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