Klasse AbstractMenuItem

java.lang.Object
de.uplanet.lucy.server.menu.rt.AbstractMenuItem
Alle implementierten Schnittstellen:
IMenuItem, Cloneable
Bekannte direkte Unterklassen:
AbstractContainerMenuItem, ApplicationMenuItem, LinkMenuItem, SeparatorMenuItem

public abstract class AbstractMenuItem extends Object implements IMenuItem
  • Konstruktordetails

    • AbstractMenuItem

      public AbstractMenuItem(String p_strId)
  • Methodendetails

    • clone

      public abstract AbstractMenuItem clone()
    • getGuid

      public String getGuid()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the menu item's unique identifier.
      Angegeben von:
      getGuid in Schnittstelle IMenuItem
      Gibt zurück:
      The menu item's unique identifier.
    • isRootMenuItem

      public boolean isRootMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this is the root menu item.
      Angegeben von:
      isRootMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • isApplicationMenuItem

      public boolean isApplicationMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item is an application menu item.
      Angegeben von:
      isApplicationMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • isLinkMenuItem

      public boolean isLinkMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item is a link menu item.
      Angegeben von:
      isLinkMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • isCmsMenuItem

      public boolean isCmsMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item is a CMS menu item.
      Angegeben von:
      isCmsMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • isSeparatorMenuItem

      public boolean isSeparatorMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item is a separator.
      Angegeben von:
      isSeparatorMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • isContainerMenuItem

      public boolean isContainerMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item is a container.
      Angegeben von:
      isContainerMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • isTopLevelGroupMenuItem

      public boolean isTopLevelGroupMenuItem()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item is a top-level group.
      Angegeben von:
      isTopLevelGroupMenuItem in Schnittstelle IMenuItem
      Gibt zurück:
      Always false.
    • getLevel

      public int getLevel()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the level of this menu item. 0 for menu items that do not have a parent.
      Angegeben von:
      getLevel in Schnittstelle IMenuItem
      Gibt zurück:
      The level of this menu item.
    • getLevelRelative

      public int getLevelRelative(IMenuItem p_menuItem)
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the level of this menu item relative to the given menu item.
      Angegeben von:
      getLevelRelative in Schnittstelle IMenuItem
      Gibt zurück:
      The relative level of this menu item.
    • hasParent

      public boolean hasParent()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Indicates if this menu item has a parent.
      Angegeben von:
      hasParent in Schnittstelle IMenuItem
      Gibt zurück:
      true if this menu item has a parent or false otherwise.
    • getParent

      public AbstractContainerMenuItem getParent()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the parent of this menu item.
      Angegeben von:
      getParent in Schnittstelle IMenuItem
      Gibt zurück:
      The parent of this menu item, or null if this menu item has no parent.
    • isFirstChild

      public boolean isFirstChild()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Check if this menu item is the first child of it's parent.
      Angegeben von:
      isFirstChild in Schnittstelle IMenuItem
      Gibt zurück:
      true if this menu item has a parent and is the first child of this parent, or false otherwise.
    • isLastChild

      public boolean isLastChild()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Check if this menu item is the last child of it's parent.
      Angegeben von:
      isLastChild in Schnittstelle IMenuItem
      Gibt zurück:
      true if this menu item has a parent and is the last child of this parent, or false otherwise.
    • getPreviousSibling

      public IMenuItem getPreviousSibling()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the previous sibling of this menu item.
      Angegeben von:
      getPreviousSibling in Schnittstelle IMenuItem
      Gibt zurück:
      If this menu item has a parent and this menu item is not the first child of this parent, the previous sibling of this menu item is returned. In all other cases the return value is null.
    • getNextSibling

      public IMenuItem getNextSibling()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the next sibling of this menu item.
      Angegeben von:
      getNextSibling in Schnittstelle IMenuItem
      Gibt zurück:
      If this menu item has a parent and this menu item is not the last child of this parent, the next sibling of this menu item is returned. In all other cases the return value is null.
    • hasProperty

      public boolean hasProperty(String p_strLang)
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Test if this menu item has the given property.
      Angegeben von:
      hasProperty in Schnittstelle IMenuItem
      Parameter:
      p_strLang - The property name.
      Gibt zurück:
      true if this menu item has the property, or false otherwise.
    • getProperty

      public String getProperty(String p_strName)
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the value of the given property
      Angegeben von:
      getProperty in Schnittstelle IMenuItem
      Parameter:
      p_strName - The property name.
      Gibt zurück:
      The value of the property.
    • getProperties

      public SortedMap<String,String> getProperties()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the menu item's properties.
      Angegeben von:
      getProperties in Schnittstelle IMenuItem
      Gibt zurück:
      An immutable map of the menu item's properties, never null.
    • hasName

      public boolean hasName(String p_strLang)
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Test if this menu item has a name in the specified language.
      Angegeben von:
      hasName in Schnittstelle IMenuItem
      Parameter:
      p_strLang - The language.
      Gibt zurück:
      true if this menu item has a name in the given language, or false otherwise.
    • getName

      public String getName(String p_strLang)
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the name of this menu item in the specified language.
      Angegeben von:
      getName in Schnittstelle IMenuItem
      Parameter:
      p_strLang - The language.
      Gibt zurück:
      The name of the menu item in the given language.
    • getNames

      public SortedMap<String,String> getNames()
      Beschreibung aus Schnittstelle kopiert: IMenuItem
      Get the menu item's language dependent names.
      Angegeben von:
      getNames in Schnittstelle IMenuItem
      Gibt zurück:
      An immutable map of the menu item's names, never null.