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 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.ImagegetIcon()Liefert ein optionales Icon.Tastenkombi fuer Short-Cut.voidsetEnabled(boolean enabled, boolean recursive) Ueberschrieben, um dabei auch das Menu anzupassen.Methods inherited from class AbstractItemXml
addChild, equals, getAction, getAttribute, getAttributeNames, getChildren, getExtendableID, getID, getName, getParent, getPath, getPossibleParents, getPrimaryAttribute, hasChild, isEnabledMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Extendable
getExtendableIDMethods inherited from interface de.willuhn.datasource.GenericObject
equals, getAttribute, getAttributeNames, getID, getPrimaryAttributeMethods 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:MenuItemTastenkombi fuer Short-Cut.- Specified by:
getShortcutin interfaceMenuItem- Returns:
- Tastenkombi.
- Throws:
RemoteException- See Also:
-
getIcon
Description copied from interface:MenuItemLiefert ein optionales Icon.- Specified by:
getIconin interfaceMenuItem- Returns:
- das optionale Icon.
- Throws:
RemoteException- See Also:
-
setEnabled
Ueberschrieben, um dabei auch das Menu anzupassen.- Specified by:
setEnabledin interfaceItem- Overrides:
setEnabledin classAbstractItemXml- Parameters:
enabled-recursive- true, wenn auch die Kinder deaktiviert werden sollen.- Throws:
RemoteException- See Also:
-