de.willuhn.datasource.GenericObject
, de.willuhn.datasource.GenericObjectNode
, Extendable
, Item
, NavigationItem
, java.rmi.Remote
public class NavigationItemXml extends AbstractItemXml implements NavigationItem
childs, i18n, parent, path
Constructor | Description |
---|---|
NavigationItemXml(NavigationItem parent,
net.n3.nanoxml.IXMLElement path,
de.willuhn.util.I18N i18n) |
ct.
|
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.
|
addChild, equals, getAction, getAttribute, getAttributeNames, getChildren, getExtendableID, getID, getName, getParent, getPath, getPossibleParents, getPrimaryAttribute, hasChild, isEnabled
getExtendableID
equals, getAttribute, getAttributeNames, getID, getPrimaryAttribute
getChildren, getParent, getPath, getPossibleParents, hasChild
public NavigationItemXml(NavigationItem parent, net.n3.nanoxml.IXMLElement path, de.willuhn.util.I18N i18n)
parent
- das Eltern-Element.path
- Pfad in der XML-Datei.i18n
- optionaler Uebersetzer, um die Navi-Eintraege in die ausgewaehlte Sprache uebersetzen zu koennen.public org.eclipse.swt.graphics.Image getIconOpen()
NavigationItem
getIconOpen
in interface NavigationItem
NavigationItem.getIconOpen()
public org.eclipse.swt.graphics.Image getIconClose()
NavigationItem
getIconClose
in interface NavigationItem
NavigationItem.getIconClose()
public boolean isExpanded() throws java.rmi.RemoteException
NavigationItem
isExpanded
in interface NavigationItem
java.rmi.RemoteException
NavigationItem.isExpanded()
public void setEnabled(boolean enabled, boolean recursive) throws java.rmi.RemoteException
setEnabled
in interface Item
setEnabled
in class AbstractItemXml
recursive
- true, wenn auch die Kinder deaktiviert werden sollen.java.rmi.RemoteException
Item.setEnabled(boolean, boolean)