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.
|
Method Summary |
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.datasource.GenericObjectNode |
getChildren, getParent, getPath, getPossibleParents, hasChild |
| Methods inherited from interface de.willuhn.datasource.GenericObject |
equals, getAttribute, getAttributeNames, getID, getPrimaryAttribute |
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.
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 interface NavigationItem
- 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 interface NavigationItem
- 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 interface NavigationItem
- 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 interface Item- Overrides:
setEnabled in class AbstractItemXml
recursive - true, wenn auch die Kinder deaktiviert werden sollen.
- Throws:
java.rmi.RemoteException- See Also:
Item.setEnabled(boolean, boolean)