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

java.lang.Object
  extended by at.spardat.xma.page.Page
      extended by at.spardat.xma.page.PageServer
          extended by org.openxma.dsl.reference.xma.customeredit.server.CustomerSearchFormGen
All Implemented Interfaces:
at.spardat.xma.mdl.Synchronization, at.spardat.xma.mdl.Transactional, at.spardat.xma.mdl.util.Descriptive
Direct Known Subclasses:
CustomerSearchForm

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

This class implements the generic server part of CustomerSearchForm. It implements the models of the page.

Author:
build

Constructor Summary
CustomerSearchFormGen(at.spardat.xma.component.ComponentServer component)
          Constructs the CustomerSearchFormGen.
 
Method Summary
 void atomicWMToBusinessData(CustomerView customer)
          Copies values of widget models to attributes of the provided BusinessData objects.
 void businessDataToAtomicWM(CustomerView customer)
          Copies attribute values of the provided BusinessDatas into widget models.
 void createModels()
          Create and initialize the WidgetModels of the page.
 at.spardat.xma.mdl.table.TableRow customerTableAddRow(CustomerView customers)
          This method creates a TableRow object and adds it to the end of the table.
 java.lang.Object[] customerTableCreateCells(CustomerView customers)
          This is a support method to create the table cells of one row from one or more BusinessDatas.
 void customerTableFill()
          This method iterates over the collection and calls customerTableAddRow for each element.
 int customerTableGetImageFor(CustomerView customers)
          This method is called from customerTableAddRow to figure out an image id for a particular row.
abstract  void findCustomer(at.spardat.xma.rpc.RemoteCall call, at.spardat.xma.rpc.RemoteReply reply)
           
 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.
 at.spardat.xma.mdl.WModel[] getWModels()
          Returns an array of all WidgetModels of this page.
 void instanceDataToModel()
          Copies attribute values of the BusinessData instance variables into their attached widget models.
 void modelToInstanceData()
          Copies values of all attached widget models to attributes of the BusinessData instance variables.
 void removeChild(at.spardat.xma.page.PageServer child)
          Removes the given subpage.
abstract  void selectCustomer(at.spardat.xma.rpc.RemoteCall call, at.spardat.xma.rpc.RemoteReply reply)
           
 void setChild(at.spardat.xma.page.PageServer child)
          Sets the given subpage.
protected  void setWModels(at.spardat.xma.mdl.WModel[] models)
          Replaces the model array generated by guidesigner.
 
Methods inherited from class at.spardat.xma.page.PageServer
cleanUpAfterServerEvent, clear, estimateMemory, getComponent, getParent, setParentId
 
Methods inherited from class at.spardat.xma.page.Page
changed, commit, describe, display, equalsCS, externalize, getId, getNumWModels, getWModel, internalize, isAtServer, isStateless, randomlyChange, rollback, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomerSearchFormGen

public CustomerSearchFormGen(at.spardat.xma.component.ComponentServer component)
Constructs the CustomerSearchFormGen. This contructor is called by the runtime. Do not remove!

Parameters:
component - the component this page belongs to
Method Detail

createModels

public void createModels()
Create and initialize the WidgetModels of the page.


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.

modelToInstanceData

public void modelToInstanceData()
Copies values of all attached widget models to attributes of the BusinessData instance variables. Copies them for this page and all contained NotebookPages and statically embedded Pages (embedded via XMAContainer in guidesigner)


instanceDataToModel

public void instanceDataToModel()
Copies attribute values of the BusinessData instance variables into their attached widget models. This includes simple widget models and tables. Copies them for this page and all contained NotebookPages and statically embedded Pages (embedded via XMAContainer in guidesigner)


atomicWMToBusinessData

public void atomicWMToBusinessData(CustomerView customer)
Copies values of widget models to attributes of the provided BusinessData objects.


businessDataToAtomicWM

public void businessDataToAtomicWM(CustomerView customer)
Copies attribute values of the provided BusinessDatas into widget models.


customerTableCreateCells

public java.lang.Object[] customerTableCreateCells(CustomerView customers)
This is a support method to create the table cells of one row from one or more BusinessDatas. You may overwrite this method if you need a custom mapping from BusinessData attributes to table columns that you were unable to specify in the UI designer.

Returns:
the returned Object[] is needed in the constructor of a TableRow.

customerTableAddRow

public at.spardat.xma.mdl.table.TableRow customerTableAddRow(CustomerView customers)
This method creates a TableRow object and adds it to the end of the table. The key of the row is drawn from the key attribute specified in the UI designer. The image id is resolved by calling customerTableGetImageId. The cells of the table are taken from a call to customerTableCreateCells.


customerTableGetImageFor

public int customerTableGetImageFor(CustomerView customers)
This method is called from customerTableAddRow to figure out an image id for a particular row. If you do not overwrite this method, the table row does not have an image id.


customerTableFill

public void customerTableFill()
This method iterates over the collection and calls customerTableAddRow for each element.


setChild

public void setChild(at.spardat.xma.page.PageServer child)
Sets the given subpage. The method automatically chooses the correct member variable to set.

Overrides:
setChild in class at.spardat.xma.page.PageServer
Parameters:
child - the subpage to set.

removeChild

public void removeChild(at.spardat.xma.page.PageServer child)
Removes the given subpage. The method automatically chooses the correct member variable to clear.

Overrides:
removeChild in class at.spardat.xma.page.PageServer
Parameters:
child - the subpage to set.

findCustomer

public abstract void findCustomer(at.spardat.xma.rpc.RemoteCall call,
                                  at.spardat.xma.rpc.RemoteReply reply)

selectCustomer

public abstract void selectCustomer(at.spardat.xma.rpc.RemoteCall call,
                                    at.spardat.xma.rpc.RemoteReply reply)


Copyright © 2010. All Rights Reserved.