Package de.willuhn.jameica.gui
Class MenuItemXml
java.lang.Object
de.willuhn.jameica.gui.AbstractItemXml
de.willuhn.jameica.gui.MenuItemXml
- All Implemented Interfaces:
de.willuhn.datasource.GenericObject
,de.willuhn.datasource.GenericObjectNode
,Extendable
,Item
,MenuItem
,Remote
- Author:
- willuhn
-
Field Summary
Fields inherited from class de.willuhn.jameica.gui.AbstractItemXml
childs, i18n, parent, path
-
Constructor Summary
ConstructorsConstructorDescriptionMenuItemXml
(MenuItem parent, net.n3.nanoxml.IXMLElement path, de.willuhn.util.I18N i18n) ct. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.Image
getIcon()
Liefert ein optionales Icon.Tastenkombi fuer Short-Cut.void
setEnabled
(boolean enabled, boolean recursive) Ueberschrieben, um dabei auch das Menu 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
Methods inherited from interface de.willuhn.datasource.GenericObjectNode
getChildren, getParent, getPath, getPossibleParents, hasChild
-
Constructor Details
-
MenuItemXml
ct.- Parameters:
parent
- das Eltern-Element.path
- Pfad in der XML-Datei.i18n
- optionaler Uebersetzer, um die Menu-Eintraege in die ausgewaehlte Sprache uebersetzen zu koennen.
-
-
Method Details
-
getShortcut
Description copied from interface:MenuItem
Tastenkombi fuer Short-Cut.- Specified by:
getShortcut
in interfaceMenuItem
- Returns:
- Tastenkombi.
- Throws:
RemoteException
- See Also:
-
getIcon
Description copied from interface:MenuItem
Liefert ein optionales Icon.- Specified by:
getIcon
in interfaceMenuItem
- Returns:
- das optionale Icon.
- Throws:
RemoteException
- See Also:
-
setEnabled
Ueberschrieben, um dabei auch das Menu anzupassen.- Specified by:
setEnabled
in interfaceItem
- Overrides:
setEnabled
in classAbstractItemXml
- Parameters:
enabled
-recursive
- true, wenn auch die Kinder deaktiviert werden sollen.- Throws:
RemoteException
- See Also:
-