Class AbstractItemXml

  • All Implemented Interfaces:
    de.willuhn.datasource.GenericObject, de.willuhn.datasource.GenericObjectNode, Extendable, Item, java.rmi.Remote
    Direct Known Subclasses:
    MenuItemXml, NavigationItemXml

    public abstract class AbstractItemXml
    extends java.lang.Object
    implements Item
    Author:
    willuhn
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.ArrayList<Item> childs  
      protected de.willuhn.util.I18N i18n  
      protected Item parent  
      protected net.n3.nanoxml.IXMLElement path  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(Item i)
      Fuegt ein Kind hinzu.
      boolean equals​(de.willuhn.datasource.GenericObject other)  
      Action getAction()
      Liefert die Aktion, der ausgeloest werden soll, wenn das Element aktiviert wird.
      java.lang.Object getAttribute​(java.lang.String name)  
      java.lang.String[] getAttributeNames()  
      de.willuhn.datasource.GenericIterator getChildren()  
      java.lang.String getExtendableID()
      Liefert die ID, ueber die das Extandable von den Extensions identifiziert wird.
      java.lang.String getID()  
      java.lang.String getName()
      Anzuzeigender Name.
      de.willuhn.datasource.GenericObjectNode getParent()  
      de.willuhn.datasource.GenericIterator getPath()  
      de.willuhn.datasource.GenericIterator getPossibleParents()  
      java.lang.String getPrimaryAttribute()  
      boolean hasChild​(de.willuhn.datasource.GenericObjectNode object)  
      boolean isEnabled()
      Liefert true, wenn das Element aktiv ist.
      void setEnabled​(boolean enabled, boolean recursive)
      Aktiviert oder deaktiviert das Element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • parent

        protected Item parent
      • path

        protected net.n3.nanoxml.IXMLElement path
      • i18n

        protected de.willuhn.util.I18N i18n
      • childs

        protected java.util.ArrayList<Item> childs
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: Item
        Anzuzeigender Name.
        Specified by:
        getName in interface Item
        Returns:
        Name.
        See Also:
        Item.getName()
      • isEnabled

        public boolean isEnabled()
                          throws java.rmi.RemoteException
        Description copied from interface: Item
        Liefert true, wenn das Element aktiv ist.
        Specified by:
        isEnabled in interface Item
        Returns:
        true, wenn es aktiv ist.
        Throws:
        java.rmi.RemoteException
        See Also:
        Item.isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled,
                               boolean recursive)
                        throws java.rmi.RemoteException
        Description copied from interface: Item
        Aktiviert oder deaktiviert das Element.
        Specified by:
        setEnabled in interface Item
        recursive - true, wenn auch die Kinder deaktiviert werden sollen.
        Throws:
        java.rmi.RemoteException
        See Also:
        Item.setEnabled(boolean, boolean)
      • getAction

        public Action getAction()
        Description copied from interface: Item
        Liefert die Aktion, der ausgeloest werden soll, wenn das Element aktiviert wird.
        Specified by:
        getAction in interface Item
        Returns:
        Action.
        See Also:
        Item.getAction()
      • getChildren

        public de.willuhn.datasource.GenericIterator getChildren()
                                                          throws java.rmi.RemoteException
        Specified by:
        getChildren in interface de.willuhn.datasource.GenericObjectNode
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObjectNode.getChildren()
      • hasChild

        public boolean hasChild​(de.willuhn.datasource.GenericObjectNode object)
                         throws java.rmi.RemoteException
        Specified by:
        hasChild in interface de.willuhn.datasource.GenericObjectNode
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObjectNode.hasChild(de.willuhn.datasource.GenericObjectNode)
      • getParent

        public de.willuhn.datasource.GenericObjectNode getParent()
                                                          throws java.rmi.RemoteException
        Specified by:
        getParent in interface de.willuhn.datasource.GenericObjectNode
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObjectNode.getParent()
      • getPossibleParents

        public de.willuhn.datasource.GenericIterator getPossibleParents()
                                                                 throws java.rmi.RemoteException
        Specified by:
        getPossibleParents in interface de.willuhn.datasource.GenericObjectNode
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObjectNode.getPossibleParents()
      • getPath

        public de.willuhn.datasource.GenericIterator getPath()
                                                      throws java.rmi.RemoteException
        Specified by:
        getPath in interface de.willuhn.datasource.GenericObjectNode
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObjectNode.getPath()
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
                                      throws java.rmi.RemoteException
        Specified by:
        getAttribute in interface de.willuhn.datasource.GenericObject
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObject.getAttribute(java.lang.String)
      • getID

        public java.lang.String getID()
        Specified by:
        getID in interface de.willuhn.datasource.GenericObject
        See Also:
        GenericObject.getID()
      • getExtendableID

        public java.lang.String getExtendableID()
        Description copied from interface: Extendable
        Liefert die ID, ueber die das Extandable von den Extensions identifiziert wird.
        Specified by:
        getExtendableID in interface Extendable
        Returns:
        Liefert die ID des Extendable.
        See Also:
        Extendable.getExtendableID()
      • getPrimaryAttribute

        public java.lang.String getPrimaryAttribute()
                                             throws java.rmi.RemoteException
        Specified by:
        getPrimaryAttribute in interface de.willuhn.datasource.GenericObject
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObject.getPrimaryAttribute()
      • equals

        public boolean equals​(de.willuhn.datasource.GenericObject other)
                       throws java.rmi.RemoteException
        Specified by:
        equals in interface de.willuhn.datasource.GenericObject
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObject.equals(de.willuhn.datasource.GenericObject)
      • getAttributeNames

        public java.lang.String[] getAttributeNames()
                                             throws java.rmi.RemoteException
        Specified by:
        getAttributeNames in interface de.willuhn.datasource.GenericObject
        Throws:
        java.rmi.RemoteException
        See Also:
        GenericObject.getAttributeNames()