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

java.lang.Object
  extended by at.spardat.xma.page.Page
      extended by at.spardat.xma.page.PageClient
          extended by at.spardat.xma.page.DialogPage
              extended by org.openxma.dsl.reference.xma.order.client.OrderEditFormGen
All Implemented Interfaces:
at.spardat.xma.boot.component.IDialog, 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.IDialogPage, at.spardat.xma.page.IEmbeddable
Direct Known Subclasses:
OrderEditForm

public abstract class OrderEditFormGen
extends at.spardat.xma.page.DialogPage

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

Author:
build

Field Summary
 
Fields inherited from class at.spardat.xma.page.DialogPage
statusBar, statusBarComposite
 
Fields inherited from class at.spardat.xma.page.PageClient
composite
 
Constructor Summary
OrderEditFormGen(at.spardat.xma.component.ComponentClient component)
          Constructs the OrderEditFormGen.
OrderEditFormGen(at.spardat.xma.component.ComponentClient component, org.eclipse.swt.widgets.Shell parentShell)
          Constructs the OrderEditFormGen.
OrderEditFormGen(at.spardat.xma.component.ComponentClient component, org.eclipse.swt.widgets.Shell parentShell, int modal)
          Constructs the OrderEditFormGen.
OrderEditFormGen(at.spardat.xma.page.PageClient parent)
          Constructs the OrderEditFormGen.
 
Method Summary
 void attachUIImpl()
          Attaches all WidgetModels of the page to there corresponding Widgets.
protected  void cancel(org.eclipse.swt.events.SelectionEvent event)
           
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  void createWidgets()
          Create and initialize all SWT-Widgets of the page.
 java.lang.String getHelpUri()
          Gives the URI of the help for this page This URI is relative to the download-URI of the component
 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.
protected  void readOrder(org.eclipse.swt.events.SelectionEvent event)
           
 void removeWidgetModels()
          Remove all WidgetModels of the page.
 void removeWidgets()
          Remove all Widgets of the page after they have been disposed.
protected  void saveOrder(org.eclipse.swt.events.SelectionEvent event)
           
protected  void selectOrderItem(org.eclipse.swt.events.SelectionEvent event)
           
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.
 
Methods inherited from class at.spardat.xma.page.DialogPage
clearError, clearInfo, clearValidationErrorImpl, clearWarning, close, closeCancel, closeOK, createComposite, getDialog, getDialogTitle, getErrorCount, getExitstatus, getFocusControl, getShell, hasValidationError, initGUI, invoke, isVisible, overrideErrorsFromModel, removeWidgetsBase, setError, setFocus, setFocusControl, setInfo, setRerunStateChanched, setValidationErrorImpl, setWarning, stateChangedBase, updateErrorStatus
 
Methods inherited from class at.spardat.xma.page.PageClient
activatePage, addChild, attachUI, clientEventBase, detachUI, determineState, determineStateBase, enter, enterBase, getComponent, getComposite, getContextString, getCurrentEvent, getDialogPage, getExtend, getHelpUriBase, getParent, helpEvent, insertLangInFilename, isEventsEnabled, isNew, isUIAttached, launch, launchExtern, launchRelative, leave, leaveBase, newRemoteCall, removeChild, removeModel, 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, getWModel, 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.boot.component.IXMAControl
enterBase, getComposite, leaveBase, removeModel
 
Methods inherited from interface at.spardat.xma.page.IEmbeddable
determineStateBase, getContextString, setDialog, setEventsEnabled, stateChangedBaseImpl, stateChangedExtend
 
Methods inherited from interface at.spardat.xma.boot.component.IXMAControl
enterBase, getComposite, leaveBase, removeModel
 

Constructor Detail

OrderEditFormGen

public OrderEditFormGen(at.spardat.xma.page.PageClient parent)
Constructs the OrderEditFormGen.

Parameters:
parent - the parent page

OrderEditFormGen

public OrderEditFormGen(at.spardat.xma.component.ComponentClient component)
Constructs the OrderEditFormGen.

Parameters:
component - the component this page belongs to

OrderEditFormGen

public OrderEditFormGen(at.spardat.xma.component.ComponentClient component,
                        org.eclipse.swt.widgets.Shell parentShell)
Constructs the OrderEditFormGen.

Parameters:
component - the component this page belongs to
parentShell - the shell of the calling dialog

OrderEditFormGen

public OrderEditFormGen(at.spardat.xma.component.ComponentClient component,
                        org.eclipse.swt.widgets.Shell parentShell,
                        int modal)
Constructs the OrderEditFormGen.

Parameters:
component - the component this page belongs to
parentShell - the shell of the calling dialog
modal - the SWT-style for the desired modality
Method Detail

getHelpUri

public java.lang.String getHelpUri()
Gives the URI of the help for this page This URI is relative to the download-URI of the component

Overrides:
getHelpUri in class at.spardat.xma.page.PageClient
Returns:
the relative URI of the help for this page

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

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.

readOrder

protected void readOrder(org.eclipse.swt.events.SelectionEvent event)

saveOrder

protected void saveOrder(org.eclipse.swt.events.SelectionEvent event)

cancel

protected void cancel(org.eclipse.swt.events.SelectionEvent event)

selectOrderItem

protected void selectOrderItem(org.eclipse.swt.events.SelectionEvent event)


Copyright © 2010. All Rights Reserved.