org.openxma.dsl.reference.xma.order.client
Class Page1Gen

java.lang.Object
  extended by at.spardat.xma.page.Page
      extended by at.spardat.xma.page.PageClient
          extended by at.spardat.xma.page.NotebookPage
              extended by org.openxma.dsl.reference.xma.order.client.Page1Gen
All Implemented Interfaces:
at.spardat.xma.boot.component.IXMAControl, at.spardat.xma.mdl.Synchronization, at.spardat.xma.mdl.Transactional, at.spardat.xma.mdl.util.Descriptive, at.spardat.xma.page.IEmbeddable
Direct Known Subclasses:
Page1

public abstract class Page1Gen
extends at.spardat.xma.page.NotebookPage

This class implements the generic client part of Page1. It implements the widgets and models of the page.

Author:
build

Field Summary
 
Fields inherited from class at.spardat.xma.page.PageClient
composite
 
Constructor Summary
Page1Gen(at.spardat.xma.page.Notebook notebook)
          Constructs the Page1Gen.
 
Method Summary
 void attachUIImpl()
          Attaches all WidgetModels of the page to there corresponding Widgets.
protected  void clientEvent(org.eclipse.swt.events.SelectionEvent event, int type)
          Calls the clientevent configured for the widget of the event.
 void createModels()
          Create and initialize the WidgetModels of the page.
protected  org.eclipse.swt.widgets.TabItem createTabItem(org.eclipse.swt.widgets.TabFolder tabfolder1W, int index)
          Creates the coresponding TabItem
protected  void createWidgets()
          Create and initialize all SWT-Widgets of the page.
 Order getTypedComponent()
          Returns the component this page belongs to, casted to its actual type.
 short getTypeId()
          Returns a unique id to identify the type of this Page.
 org.eclipse.swt.widgets.Control[] getWidgets()
          Returns an array of all Widgets of this page.
 at.spardat.xma.mdl.WModel[] getWModels()
          Returns an array of all WidgetModels of this page.
 boolean hasModels()
          Indicate if the WidgetModels are allready created.
 void removeWidgetModels()
          Remove all WidgetModels of the page.
 void removeWidgets()
          Remove all Widgets of the page after they have been disposed.
protected  void setWidgets(org.eclipse.swt.widgets.Control[] widgets)
          Replaces the widget array generated by guidesigner.
protected  void setWModels(at.spardat.xma.mdl.WModel[] models)
          Replaces the model array generated by guidesigner.
 void stateChanged()
          Enables or disables Widgets according to the current state of the page.
 
Methods inherited from class at.spardat.xma.page.NotebookPage
close, createComposite, getComposite, getNotebook, getTabItem, initGUI
 
Methods inherited from class at.spardat.xma.page.PageClient
activatePage, addChild, attachUI, clearError, clearValidationErrorImpl, clientEventBase, detachUI, determineState, determineStateBase, enter, enterBase, getComponent, getContextString, getCurrentEvent, getDialog, getDialogPage, getExtend, getHelpUri, getHelpUriBase, getParent, hasValidationError, helpEvent, insertLangInFilename, isEventsEnabled, isNew, isUIAttached, launch, launchExtern, launchRelative, leave, leaveBase, newRemoteCall, removeChild, removeModel, removeWidgetsBase, rpcFinished, serverEvent, setContextString, setDialog, setEditable, setError, setEventsEnabled, setExtend, setId, setNew, setValidationErrorImpl, showException, showMessage, stateChangedBase, stateChangedBaseImpl, stateChangedExtend, toLocalizedHelpUri
 
Methods inherited from class at.spardat.xma.page.Page
changed, commit, describe, display, equalsCS, externalize, getId, getNumWModels, getWModel, internalize, isAtServer, isStateless, randomlyChange, rollback, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Page1Gen

public Page1Gen(at.spardat.xma.page.Notebook notebook)
Constructs the Page1Gen.

Parameters:
notebook - the Notebook this page belongs to.
Method Detail

createModels

public void createModels()
Create and initialize the WidgetModels of the page. Subpages which are not lazy are created too.

Specified by:
createModels in class at.spardat.xma.page.PageClient

hasModels

public boolean hasModels()
Indicate if the WidgetModels are allready created.

Specified by:
hasModels in class at.spardat.xma.page.PageClient
Returns:
true if the WidgetModels exist.

removeWidgetModels

public void removeWidgetModels()
Remove all WidgetModels of the page.

Specified by:
removeWidgetModels in class at.spardat.xma.page.PageClient

getWModels

public at.spardat.xma.mdl.WModel[] getWModels()
Returns an array of all WidgetModels of this page.

Specified by:
getWModels in class at.spardat.xma.page.Page
Returns:
array of WidgetModels. The returned array is not a copy, therefore it must not be modified.

setWModels

protected void setWModels(at.spardat.xma.mdl.WModel[] models)
Replaces the model array generated by guidesigner. May only be called by the runtime. Do not call this method!


getTypeId

public short getTypeId()
Returns a unique id to identify the type of this Page.

Specified by:
getTypeId in class at.spardat.xma.page.Page
Returns:
the typeId

getTypedComponent

public Order getTypedComponent()
Returns the component this page belongs to, casted to its actual type.

Returns:
The Component. Never null.

getWidgets

public org.eclipse.swt.widgets.Control[] getWidgets()
Returns an array of all Widgets of this page.

Specified by:
getWidgets in class at.spardat.xma.page.PageClient
Returns:
array of Widgets. The returned array is not a copy, therefore it must not be modified.

setWidgets

protected void setWidgets(org.eclipse.swt.widgets.Control[] widgets)
Replaces the widget array generated by guidesigner. May only be called by the runtime. Do not call this method!


createWidgets

protected void createWidgets()
Create and initialize all SWT-Widgets of the page. It

Specified by:
createWidgets in class at.spardat.xma.page.PageClient

removeWidgets

public void removeWidgets()
Remove all Widgets of the page after they have been disposed.

Specified by:
removeWidgets in class at.spardat.xma.page.PageClient

attachUIImpl

public void attachUIImpl()
                  throws at.spardat.xma.mdl.AttachmentExceptionClient
Attaches all WidgetModels of the page to there corresponding Widgets.

Specified by:
attachUIImpl in class at.spardat.xma.page.PageClient
Throws:
at.spardat.xma.mdl.AttachmentExceptionClient

stateChanged

public void stateChanged()
Enables or disables Widgets according to the current state of the page. This method is called every time the content of any WizardModel of the Page may have been changed.
This method is called immediately after PageClient.determineState().

Overrides:
stateChanged in class at.spardat.xma.page.PageClient

clientEvent

protected void clientEvent(org.eclipse.swt.events.SelectionEvent event,
                           int type)
Calls the clientevent configured for the widget of the event.

Overrides:
clientEvent in class at.spardat.xma.page.PageClient
Parameters:
event - the SWT-Event that happened.
type - the type of the Event, as defined by the event type constants in class SWT.

createTabItem

protected org.eclipse.swt.widgets.TabItem createTabItem(org.eclipse.swt.widgets.TabFolder tabfolder1W,
                                                        int index)
Creates the coresponding TabItem

Overrides:
createTabItem in class at.spardat.xma.page.NotebookPage


Copyright © 2010. All Rights Reserved.