de.willuhn.datasource.GenericObject, de.willuhn.datasource.GenericObjectNode, Extendable, Item, NavigationItem, java.rmi.Remotepublic 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, isEnabledgetExtendableIDequals, getAttribute, getAttributeNames, getID, getPrimaryAttributegetChildren, getParent, getPath, getPossibleParents, hasChildpublic 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()
NavigationItemgetIconOpen in interface NavigationItemNavigationItem.getIconOpen()public org.eclipse.swt.graphics.Image getIconClose()
NavigationItemgetIconClose in interface NavigationItemNavigationItem.getIconClose()public boolean isExpanded()
throws java.rmi.RemoteException
NavigationItemisExpanded in interface NavigationItemjava.rmi.RemoteExceptionNavigationItem.isExpanded()public void setEnabled(boolean enabled,
boolean recursive)
throws java.rmi.RemoteException
setEnabled in interface ItemsetEnabled in class AbstractItemXmlrecursive - true, wenn auch die Kinder deaktiviert werden sollen.java.rmi.RemoteExceptionItem.setEnabled(boolean, boolean)