org.openxma.dsl.reference.xma.customeredit.client
Class CustomerSearchFormGen

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.customeredit.client.CustomerSearchFormGen
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:
CustomerSearchForm

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

This class implements the generic client part of CustomerSearchForm. 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
CustomerSearchFormGen(at.spardat.xma.component.ComponentClient component)
          Constructs the CustomerSearchFormGen.
CustomerSearchFormGen(at.spardat.xma.component.ComponentClient component, org.eclipse.swt.widgets.Shell parentShell)
          Constructs the CustomerSearchFormGen.
CustomerSearchFormGen(at.spardat.xma.component.ComponentClient component, org.eclipse.swt.widgets.Shell parentShell, int modal)
          Constructs the CustomerSearchFormGen.
CustomerSearchFormGen(at.spardat.xma.page.PageClient parent)
          Constructs the CustomerSearchFormGen.
 
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  void createWidgets()
          Create and initialize all SWT-Widgets of the page.
protected  void findCustomer(org.eclipse.swt.events.SelectionEvent event)
           
 java.lang.String getHelpUri()
          Gives the URI of the help for this page This URI is relative to the download-URI of the component
 CustomerEdit 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 selectCustomer(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.
 void stateChanged()
          Enables or disables Widgets according to the current state of the page.
 
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, 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

CustomerSearchFormGen

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

Parameters:
parent - the parent page

CustomerSearchFormGen

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

Parameters:
component - the component this page belongs to

CustomerSearchFormGen

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

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

CustomerSearchFormGen

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

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 CustomerEdit 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.

findCustomer

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

selectCustomer

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


Copyright © 2010. All Rights Reserved.