Package de.willuhn.jameica.gui
Class NavigationItemXml
- java.lang.Object
-
- de.willuhn.jameica.gui.AbstractItemXml
-
- de.willuhn.jameica.gui.NavigationItemXml
-
- All Implemented Interfaces:
de.willuhn.datasource.GenericObject
,de.willuhn.datasource.GenericObjectNode
,Extendable
,Item
,NavigationItem
,java.rmi.Remote
public class NavigationItemXml extends AbstractItemXml implements NavigationItem
XML-Implementierung eines Navigations-Elements.
-
-
Field Summary
-
Fields inherited from class de.willuhn.jameica.gui.AbstractItemXml
childs, i18n, parent, path
-
-
Constructor Summary
Constructors Constructor Description NavigationItemXml(NavigationItem parent, net.n3.nanoxml.IXMLElement path, de.willuhn.util.I18N i18n)
ct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.graphics.Image
getIconClose()
Liefert das Bild, welches angezeigt wird, wenn das Element geschlossen wird.org.eclipse.swt.graphics.Image
getIconOpen()
Liefert das Bild, welches angezeigt wird, wenn das Element geoeffnet wird.boolean
isExpanded()
Liefert true, wenn das Element aufgeklappt sein soll.void
setEnabled(boolean enabled, boolean recursive)
Ueberschrieben, um dabei auch links die Navigation anzupassen.-
Methods inherited from class de.willuhn.jameica.gui.AbstractItemXml
addChild, equals, getAction, getAttribute, getAttributeNames, getChildren, getExtendableID, getID, getName, getParent, getPath, getPossibleParents, getPrimaryAttribute, hasChild, isEnabled
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.willuhn.jameica.gui.extension.Extendable
getExtendableID
-
Methods inherited from interface de.willuhn.datasource.GenericObject
equals, getAttribute, getAttributeNames, getID, getPrimaryAttribute
-
-
-
-
Constructor Detail
-
NavigationItemXml
public NavigationItemXml(NavigationItem parent, net.n3.nanoxml.IXMLElement path, de.willuhn.util.I18N i18n)
ct.- Parameters:
parent
- das Eltern-Element.path
- Pfad in der XML-Datei.i18n
- optionaler Uebersetzer, um die Navi-Eintraege in die ausgewaehlte Sprache uebersetzen zu koennen.
-
-
Method Detail
-
getIconOpen
public org.eclipse.swt.graphics.Image getIconOpen()
Description copied from interface:NavigationItem
Liefert das Bild, welches angezeigt wird, wenn das Element geoeffnet wird.- Specified by:
getIconOpen
in interfaceNavigationItem
- Returns:
- das Bild.
- See Also:
NavigationItem.getIconOpen()
-
getIconClose
public org.eclipse.swt.graphics.Image getIconClose()
Description copied from interface:NavigationItem
Liefert das Bild, welches angezeigt wird, wenn das Element geschlossen wird.- Specified by:
getIconClose
in interfaceNavigationItem
- Returns:
- das Bild.
- See Also:
NavigationItem.getIconClose()
-
isExpanded
public boolean isExpanded() throws java.rmi.RemoteException
Description copied from interface:NavigationItem
Liefert true, wenn das Element aufgeklappt sein soll.- Specified by:
isExpanded
in interfaceNavigationItem
- Returns:
- true, wenn es aufgeklappt sein soll.
- Throws:
java.rmi.RemoteException
- See Also:
NavigationItem.isExpanded()
-
setEnabled
public void setEnabled(boolean enabled, boolean recursive) throws java.rmi.RemoteException
Ueberschrieben, um dabei auch links die Navigation anzupassen.- Specified by:
setEnabled
in interfaceItem
- Overrides:
setEnabled
in classAbstractItemXml
recursive
- true, wenn auch die Kinder deaktiviert werden sollen.- Throws:
java.rmi.RemoteException
- See Also:
Item.setEnabled(boolean, boolean)
-
-