at.spardat.xma.appshell
Class ContextAppShell

java.lang.Object
  extended byat.spardat.xma.page.Page
      extended byat.spardat.xma.page.PageClient
          extended byat.spardat.xma.page.DialogPage
              extended byat.spardat.xma.appshell.AppShell
                  extended byat.spardat.xma.appshell.ContextAppShell
All Implemented Interfaces:
Descriptive, IAppShell, at.spardat.xma.boot.component.IDialog, IDialogPage, IEmbeddable, at.spardat.xma.boot.component.IXMAControl, Synchronization, Transactional
Direct Known Subclasses:
MenuAppShell, TreeMenuAppShell

public abstract class ContextAppShell
extends AppShell

An AppShell implementing the visualisation of the context strings with a SWT-List. This class is to be thought to be subclassed by other abstract AppShells implementing some kind of menu like TreeMenu, SWT menu.

Since:
version_number

Field Summary
protected  org.eclipse.swt.widgets.List contextW
          swt-list containing the context strings of all tasks on the task stack.
 
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
ContextAppShell(ComponentClient component, boolean stateless, int style)
           
 
Method Summary
 void contextStringChanged(at.spardat.xma.boot.component.IXMAControl source, java.lang.String newText)
          Notifies the AppShell of a change in the context-string of a component or page.
protected abstract  org.eclipse.swt.widgets.Composite getContextComp()
          Gets the swt-composite for holding the context strings of the call stack.
 void initGUI()
          Creates the Widgets of the PageClient and all Subpages by calling PageClient.createWidgets() on the PageClient and all Subpages.
 void removeWidgetsBase()
          Notify the PageClient and all Subpages, that the Widgets are disposed by calling PageClient.removeWidgets() on all Subpages and the PageClient.
 void showContextStack()
          Show the contextStrings of all Tasks, Components and Pages on the call stack.
 
Methods inherited from class at.spardat.xma.appshell.AppShell
attachMenu, callMenu, callMenu, clearClientArea, close, closeCancel, closeOK, closeTasks, createRootTask, createTask, detachMenu, exit, getClientComposite, getMenu, getMenuResource, getTopTask, hasWidgets, invoke, leaveBase, lockMenu, markMenu, pushClientComponent, registerMenu, selectMenu, setClientArea, setMenuEnabled, 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.PageClient
activatePage, addChild, attachUI, attachUIImpl, clientEvent, clientEventBase, createModels, createWidgets, detachUI, determineState, determineStateBase, enter, enterBase, getComponent, getComposite, getContextString, getCurrentEvent, getDialogPage, getExtend, getHelpUri, getHelpUriBase, getParent, getWidgets, hasModels, helpEvent, insertLangInFilename, isEventsEnabled, isNew, isUIAttached, launch, launchExtern, launchRelative, leave, newRemoteCall, removeChild, removeModel, removeWidgetModels, removeWidgets, rpcFinished, serverEvent, setContextString, setDialog, setEditable, setError, setEventsEnabled, setExtend, setId, setNew, setValidationErrorImpl, showException, showMessage, stateChanged, stateChangedBaseImpl, stateChangedExtend, toLocalizedHelpUri
 
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

contextW

protected org.eclipse.swt.widgets.List contextW
swt-list containing the context strings of all tasks on the task stack.

Constructor Detail

ContextAppShell

public ContextAppShell(ComponentClient component,
                       boolean stateless,
                       int style)
Method Detail

getContextComp

protected abstract org.eclipse.swt.widgets.Composite getContextComp()
Gets the swt-composite for holding the context strings of the call stack. It will be filled completely with a list containing the context stack.

Returns:
the composite for the context strings.

initGUI

public void initGUI()
Description copied from class: DialogPage
Creates the Widgets of the PageClient and all Subpages by calling PageClient.createWidgets() on the PageClient and all Subpages.

Specified by:
initGUI in interface at.spardat.xma.boot.component.IXMAControl
Overrides:
initGUI in class DialogPage

removeWidgetsBase

public void removeWidgetsBase()
Notify the PageClient and all Subpages, that the Widgets are disposed by calling PageClient.removeWidgets() on all Subpages and the PageClient.

Specified by:
removeWidgetsBase in interface at.spardat.xma.boot.component.IXMAControl
Overrides:
removeWidgetsBase in class DialogPage

showContextStack

public void showContextStack()
Show the contextStrings of all Tasks, Components and Pages on the call stack.


contextStringChanged

public void contextStringChanged(at.spardat.xma.boot.component.IXMAControl source,
                                 java.lang.String newText)
Notifies the AppShell of a change in the context-string of a component or page. Propagates the change to the GUI.

Parameters:
source - the component or page which changed its context string.
newText - the new context string of the source.