|
||||||||||
| 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.TreeMenuAppShell
An AppShell implementing the menu tree with a SWT-Tree and the visualisation of the context strings with a SWT-List. This class is to be thought to be subclassed by an application specific implementation.
| Field Summary | |
protected org.eclipse.swt.widgets.Tree |
menuW
swt-tree containing the menu items. |
| 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 | |
TreeMenuAppShell(ComponentClient component,
boolean stateless,
int style)
Initializes the application shell. |
|
| 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 abstract org.eclipse.swt.widgets.Composite |
getMenuComp()
Get the swt-composite for holding the menu items. |
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)
Visibly marks the named MenuItem as selected. |
protected void |
menuWSelected()
Event-method called, when an item in the menu-tree 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.Tree menuW
| Constructor Detail |
public TreeMenuAppShell(ComponentClient component,
boolean stateless,
int style)
component - the Component containing the DialogPage.stateless - indicating if this page is stateless on the server.style - The SWT-Style for the Shell of the DialogPage.
java.lang.IllegalArgumentException - if comonent is null.| Method Detail |
protected abstract org.eclipse.swt.widgets.Composite getMenuComp()
public void initGUI()
PageClient.createWidgets() on the PageClient and all Subpages. Overloaded here
to add its own widgets: the SWT-Tree for the menu and the SWT-List for the
context stack.
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 ContextAppShell
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()
protected 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 removepublic 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)
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 | |||||||||