at.spardat.xma.boot.component
Interface IXMAControl

All Known Subinterfaces:
IDialog

public interface IXMAControl

Interface of all Pages or other Objects (like Notebook) which may be embedded in other Pages.


Method Summary
 org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent)
          Creates the SWT-Composite of the PageClient.
 void enterBase()
          Notify the PageClient and all visible subpages, that the PageClient is becoming visible.
 org.eclipse.swt.widgets.Composite getComposite()
          Gets the SWT-Composite of the PageClient.
 void initGUI()
          Creates and initializes all SWT-Widgets of this PageClient and its visible subpages.
 void leaveBase()
          Notify the PageClient and all visible subpages, that the PageClient no longer is visible.
 void removeModel()
          Remove the PageModel and all submodels from the Component.
 void removeWidgetsBase()
          Notify the PageClient and all Subpages, that the Widgets are disposed by calling at.spardat.xma.page.PageClient#removeWidgets() on all Subpages and the PageClient.
 void stateChangedBase()
          Notify the PageClient and all visible subpages, of a possible Change in the PageModels.
 

Method Detail

createComposite

public org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent)
Creates the SWT-Composite of the PageClient. All SWT-Widgets of this PageClient will be children of this Composite (directly or indirectly).

Parameters:
parent - the SWT-Composite to use as parent of the created SWT-Composite.
Returns:
the newly created SWT-Composite corresponding to this PageClient

getComposite

public org.eclipse.swt.widgets.Composite getComposite()
Gets the SWT-Composite of the PageClient. All SWT-Widgets of this PageClient will be children of this Composite (directly or indirectly).

Returns:
the SWT-Composite corresponding to this PageClient

initGUI

public void initGUI()
Creates and initializes all SWT-Widgets of this PageClient and its visible subpages. It must call at.spardat.xma.page.PageClient#createWidgets() on all visible subpages. It must garantie, that the Composite of the XMAControl is created befor at.spardat.xma.page.PageClient#createWidgets() is called on any subpage.


enterBase

public void enterBase()
Notify the PageClient and all visible subpages, that the PageClient is becoming visible. It must call at.spardat.xma.page.PageClient#enter() on the PageClient and all visible subpages.


stateChangedBase

public void stateChangedBase()
Notify the PageClient and all visible subpages, of a possible Change in the PageModels. It must call at.spardat.xma.page.PageClient#stateChanged() on the PageClient and all visible subpages.


leaveBase

public void leaveBase()
Notify the PageClient and all visible subpages, that the PageClient no longer is visible. It must call at.spardat.xma.page.PageClient#leave() on the PageClient and all visible subpages.


removeWidgetsBase

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


removeModel

public void removeModel()
Remove the PageModel and all submodels from the Component. This causes the corresponding server side models to be freed when the next serverEvent occurs. It must call at.spardat.xma.page.PageClient#removeWidgetModels() on the Page and all subpages. The WidgetModels on the PageModel an all submodels will be set to null.