Package org.opencms.ui.components
Class CmsExtendedSiteSelector.SiteSelectorOption
- java.lang.Object
-
- org.opencms.ui.components.CmsExtendedSiteSelector.SiteSelectorOption
-
- Enclosing class:
- CmsExtendedSiteSelector
public static class CmsExtendedSiteSelector.SiteSelectorOption extends java.lang.Object
Class representing a single option.
-
-
Constructor Summary
Constructors Constructor Description SiteSelectorOption(java.lang.String site, java.lang.String path, java.lang.String label)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getLabel()
Gets the option label.java.lang.String
getPath()
Gets the path to jump to as a site path (may be null).java.lang.String
getSite()
Gets the site rootint
hashCode()
-
-
-
Constructor Detail
-
SiteSelectorOption
public SiteSelectorOption(java.lang.String site, java.lang.String path, java.lang.String label)
Creates a new instance.- Parameters:
site
- the site rootpath
- the path in the site (may be null)label
- the option label
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getLabel
public java.lang.String getLabel()
Gets the option label.- Returns:
- the option label
-
getPath
public java.lang.String getPath()
Gets the path to jump to as a site path (may be null).- Returns:
- the path to jump to
-
getSite
public java.lang.String getSite()
Gets the site root- Returns:
- the site root
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-