|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.page.Page
at.spardat.xma.page.PageClient
at.spardat.xma.page.DialogPage
at.spardat.xma.appshell.AppShell
at.spardat.xma.appshell.ContextAppShell
at.spardat.xma.appshell.MenuAppShell
An AppShell implementing the menu as SWT menu at the shellbar (Windows standard menu). This class is to be thought to be subclassed by an application specific implementation.
| Field Summary | |
protected org.eclipse.swt.widgets.Menu |
menuW
This variable holds the root menu. |
| Fields inherited from class at.spardat.xma.appshell.ContextAppShell |
contextW |
| Fields inherited from class at.spardat.xma.appshell.AppShell |
rootMenu, rootTask |
| Fields inherited from class at.spardat.xma.page.DialogPage |
statusBar, statusBarComposite |
| Fields inherited from class at.spardat.xma.page.PageClient |
composite |
| Constructor Summary | |
MenuAppShell(ComponentClient component,
boolean stateless,
int style)
|
|
| Method Summary | |
void |
attachMenu(IMenuItem item)
Attach the given MenuItem to its viusal representation. |
protected void |
clientEventBase(org.eclipse.swt.events.SelectionEvent event,
int type)
Calls the clientevent configured for the widget of the event by calling PageClient.clientEvent(SelectionEvent,int). |
void |
detachMenu(IMenuItem item)
Detach the MenuItem from its visual representation. |
protected org.eclipse.swt.widgets.Menu |
getMenu()
Creates the Menu which serves as the root menu widget and is set at: menuW. |
void |
initGUI()
Creates the Widgets of the PageClient and all Subpages by calling PageClient.createWidgets() on the PageClient and all Subpages. |
void |
markMenu(java.lang.String menuId)
Marks the named MenuItem as selected. |
protected void |
menuWSelected(org.eclipse.swt.widgets.MenuItem aMenuItem)
Event-method called, when an item in the menu is selected. |
void |
removeWidgetsBase()
Notify the PageClient and all Subpages, that the Widgets are disposed by calling PageClient.removeWidgets() on all Subpages and the PageClient. |
void |
selectMenu(java.lang.String menuId)
Selects the named MenuItem. |
protected void |
setMenuEnabled(boolean enabled)
Completely enable/disable the menu. |
| Methods inherited from class at.spardat.xma.appshell.ContextAppShell |
contextStringChanged, getContextComp, showContextStack |
| Methods inherited from class at.spardat.xma.appshell.AppShell |
callMenu, callMenu, clearClientArea, close, closeCancel, closeOK, closeTasks, createRootTask, createTask, exit, getClientComposite, getMenu, getMenuResource, getTopTask, hasWidgets, invoke, leaveBase, lockMenu, pushClientComponent, registerMenu, setClientArea, unlockMenu, unregisterMenu |
| Methods inherited from class at.spardat.xma.page.DialogPage |
clearError, clearInfo, clearValidationErrorImpl, clearWarning, createComposite, getDialog, getErrorCount, getExitstatus, getFocusControl, getShell, hasValidationError, isVisible, overrideErrorsFromModel, setError, setFocus, setFocusControl, setInfo, setRerunStateChanched, setValidationErrorImpl, setWarning, stateChangedBase, updateErrorStatus |
| Methods inherited from class at.spardat.xma.page.Page |
changed, commit, describe, display, equalsCS, externalize, getId, getNumWModels, getTypeId, getWModel, getWModels, internalize, isAtServer, isStateless, randomlyChange, rollback, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface at.spardat.xma.page.IDialogPage |
clearInfo, clearValidationErrorImpl, clearWarning, hasValidationError, overrideErrorsFromModel, setFocus, setInfo, setValidationErrorImpl, setWarning |
| Methods inherited from interface at.spardat.xma.boot.component.IDialog |
clearError, getErrorCount, getFocusControl, getShell, setError, setFocusControl, updateErrorStatus |
| Methods inherited from interface at.spardat.xma.boot.component.IXMAControl |
createComposite, enterBase, getComposite, removeModel, stateChangedBase |
| Methods inherited from interface at.spardat.xma.page.IEmbeddable |
determineStateBase, getContextString, getDialog, setDialog, setEventsEnabled, stateChangedBaseImpl, stateChangedExtend |
| Field Detail |
protected org.eclipse.swt.widgets.Menu menuW
| Constructor Detail |
public MenuAppShell(ComponentClient component,
boolean stateless,
int style)
| Method Detail |
protected org.eclipse.swt.widgets.Menu getMenu()
public void initGUI()
PageClient.createWidgets() on the PageClient and all Subpages.
initGUI in interface at.spardat.xma.boot.component.IXMAControlinitGUI in class ContextAppShellpublic void removeWidgetsBase()
PageClient.removeWidgets() on all Subpages and the PageClient.
removeWidgetsBase in interface at.spardat.xma.boot.component.IXMAControlremoveWidgetsBase in class ContextAppShellprotected void setMenuEnabled(boolean enabled)
setMenuEnabled in class AppShellenabled - true: enable, false: disable.public void attachMenu(IMenuItem item)
attachMenu in class AppShellitem - to attachpublic void detachMenu(IMenuItem item)
detachMenu in class AppShellitem - to remove
protected void clientEventBase(org.eclipse.swt.events.SelectionEvent event,
int type)
PageClient.clientEvent(SelectionEvent,int). Handles the selection
events of the menu-tree, too.
clientEventBase in class PageClientevent - the SWT-Event that happened.type - the type of the Event, as defined by the event type constants in class SWT.protected void menuWSelected(org.eclipse.swt.widgets.MenuItem aMenuItem)
public void selectMenu(java.lang.String menuId)
selectMenu in interface IAppShellselectMenu in class AppShellmenuId - the name of the MenuItem to select.public void markMenu(java.lang.String menuId)
CHECK or RADIO,
it is selected when it is checked.
markMenu in interface IAppShellmarkMenu in class AppShellmenuId - the name of the MenuItem to mark as selected.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||