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

java.lang.Object
  extended by at.spardat.xma.component.Component
      extended by at.spardat.xma.component.ComponentClient
          extended by at.spardat.xma.component.EmbeddableComponent
              extended by org.openxma.dsl.reference.xma.customeredit.client.CustomerEditGen
All Implemented Interfaces:
at.spardat.xma.boot.component.IComponent, at.spardat.xma.boot.component.IXMAControl, at.spardat.xma.component.IComponentClient, at.spardat.xma.mdl.Synchronization, at.spardat.xma.mdl.util.Descriptive, at.spardat.xma.page.IEmbeddable, ICustomerEdit
Direct Known Subclasses:
CustomerEdit

public abstract class CustomerEditGen
extends at.spardat.xma.component.EmbeddableComponent
implements ICustomerEdit

This class implements the generic client part of CustomerEdit. It provides the mapping between typeIds and classnames of all pages in the component.

Author:
build

Field Summary
static short CustomerEditFormClass
          the unique typeId for the page CustomerEditForm
static short CustomerSearchFormClass
          the unique typeId for the page CustomerSearchForm
protected  java.lang.String mode
          the mode of the component
static short Page1Class
          the unique typeId for the page Page1
static short Page2Class
          the unique typeId for the page Page2
static short Page3Class
          the unique typeId for the page Page3
protected  java.lang.String selectedCustomerFirstName
          firstname of the selected customer
protected  java.lang.String selectedCustomerId
          the id of the selected customer
protected  java.lang.String selectedCustomerLastName
          lastname of the selected customer
 
Fields inherited from class at.spardat.xma.component.ComponentClient
errorBackground, errorBackgroundUneditable, lastResGif, resErrorGif, resInfoGif, resWarnGif
 
Fields inherited from class at.spardat.xma.component.Component
session_
 
Fields inherited from interface org.openxma.dsl.reference.xma.customeredit.client.ICustomerEdit
COMPONENT_NAME
 
Constructor Summary
CustomerEditGen(at.spardat.xma.session.XMASessionClient session)
          Initializes the CustomerEditGen.
 
Method Summary
 java.lang.String getHelpUri()
          Gives the URI of the help for this component This URI is relative to the download-URI of the component
protected  java.lang.String getMode()
          the mode of the component
 java.lang.String getModelClass(short typeId)
          Gets the full classname for the given typeId of a page in this component.
protected  at.spardat.xma.component.ComponentProperty[] getPropDes()
           
 java.lang.String getSelectedCustomerFirstName()
          firstname of the selected customer
 java.lang.String getSelectedCustomerId()
          the id of the selected customer
 java.lang.String getSelectedCustomerLastName()
          lastname of the selected customer
static java.lang.String getShortModelClass(short typeId)
          Gets the short classname for the given typeId of a page in this component.
 void invoke(org.eclipse.swt.widgets.Composite parentComposite)
          Invokes the CustomerEdit.
 void setMode(java.lang.String mode)
          the mode of the component
protected  void setSelectedCustomerFirstName(java.lang.String selectedCustomerFirstName)
          firstname of the selected customer
protected  void setSelectedCustomerId(java.lang.String selectedCustomerId)
          the id of the selected customer
protected  void setSelectedCustomerLastName(java.lang.String selectedCustomerLastName)
          lastname of the selected customer
 
Methods inherited from class at.spardat.xma.component.EmbeddableComponent
createComposite, determineStateBase, enterBase, getComposite, getContextString, getDialog, getMainPage, initGUI, leaveBase, removeModel, removeWidgetsBase, setDialog, setEventsEnabled, setMainPage, stateChangedBase, stateChangedBaseImpl, stateChangedExtend
 
Methods inherited from class at.spardat.xma.component.ComponentClient
addEventListener, addPropertyChangeListener, createTask, dispose, externalize, freePageModel, getColor, getColor, getContext, getDisplay, getFont, getFontByHeight, getFontByStyle, getImage, getImage, getProperties, getProperty, getRTSession, getSession, internalize, isOutOfSyncWithServer, newRemoteCall, notifyClosed, notifyEvent, notifyPropertyChange, registerImage, removeEventListener, removePropertyChangeListener, rpcFinished, setOutOfSyncWithServer, setProperties, setProperty, showMessage
 
Methods inherited from class at.spardat.xma.component.Component
commit, describe, externalizePageSet, externalizeProperties, getId, getName, getNumPageModels, getPageModel, getPageModels, getPropDes, getSCN, incrementSCN, internalizePageSet, internalizeProperties, isPageModelAlive, isStateless, model2props, props2model, registerPageModel, removePageModel, rollback, setId, setSCN, 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.IComponent
addEventListener, addPropertyChangeListener, dispose, getProperties, getProperty, getRTSession, removeEventListener, removePropertyChangeListener, setProperties, setProperty
 
Methods inherited from interface at.spardat.xma.page.IEmbeddable
determineStateBase, getContextString, getDialog, setDialog, setEventsEnabled, stateChangedBaseImpl, stateChangedExtend
 
Methods inherited from interface at.spardat.xma.boot.component.IXMAControl
createComposite, enterBase, getComposite, initGUI, leaveBase, removeModel, removeWidgetsBase, stateChangedBase
 

Field Detail

mode

protected java.lang.String mode
the mode of the component


selectedCustomerId

protected java.lang.String selectedCustomerId
the id of the selected customer


selectedCustomerFirstName

protected java.lang.String selectedCustomerFirstName
firstname of the selected customer


selectedCustomerLastName

protected java.lang.String selectedCustomerLastName
lastname of the selected customer


CustomerSearchFormClass

public static final short CustomerSearchFormClass
the unique typeId for the page CustomerSearchForm

See Also:
Constant Field Values

CustomerEditFormClass

public static final short CustomerEditFormClass
the unique typeId for the page CustomerEditForm

See Also:
Constant Field Values

Page1Class

public static final short Page1Class
the unique typeId for the page Page1

See Also:
Constant Field Values

Page2Class

public static final short Page2Class
the unique typeId for the page Page2

See Also:
Constant Field Values

Page3Class

public static final short Page3Class
the unique typeId for the page Page3

See Also:
Constant Field Values
Constructor Detail

CustomerEditGen

public CustomerEditGen(at.spardat.xma.session.XMASessionClient session)
Initializes the CustomerEditGen. This method is called by the XMA-Runtime.

Parameters:
session - the XMASession, this CustomerEditGen belongs to.
Method Detail

getShortModelClass

public static java.lang.String getShortModelClass(short typeId)
Gets the short classname for the given typeId of a page in this component. The short classname does not contain the package.

Parameters:
typeId - the unique typeId
Returns:
the short classname

getModelClass

public java.lang.String getModelClass(short typeId)
Gets the full classname for the given typeId of a page in this component.

Specified by:
getModelClass in class at.spardat.xma.component.Component
Parameters:
typeId - the unique typeId
Returns:
the full classname

invoke

public void invoke(org.eclipse.swt.widgets.Composite parentComposite)
Invokes the CustomerEdit. This method is a default implementation, which invokes the first dialog page of the component. Modeled init functions are called by this method.

Specified by:
invoke in interface at.spardat.xma.boot.component.IComponent
Specified by:
invoke in class at.spardat.xma.component.ComponentClient
Parameters:
parentComposite - a composite of the calling page. In most cases it will be a shell. It my be null.

getHelpUri

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

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

getMode

protected java.lang.String getMode()
the mode of the component


setMode

public void setMode(java.lang.String mode)
the mode of the component

Specified by:
setMode in interface ICustomerEdit

getSelectedCustomerId

public java.lang.String getSelectedCustomerId()
the id of the selected customer

Specified by:
getSelectedCustomerId in interface ICustomerEdit

setSelectedCustomerId

protected void setSelectedCustomerId(java.lang.String selectedCustomerId)
the id of the selected customer


getSelectedCustomerFirstName

public java.lang.String getSelectedCustomerFirstName()
firstname of the selected customer

Specified by:
getSelectedCustomerFirstName in interface ICustomerEdit

setSelectedCustomerFirstName

protected void setSelectedCustomerFirstName(java.lang.String selectedCustomerFirstName)
firstname of the selected customer


getSelectedCustomerLastName

public java.lang.String getSelectedCustomerLastName()
lastname of the selected customer

Specified by:
getSelectedCustomerLastName in interface ICustomerEdit

setSelectedCustomerLastName

protected void setSelectedCustomerLastName(java.lang.String selectedCustomerLastName)
lastname of the selected customer


getPropDes

protected at.spardat.xma.component.ComponentProperty[] getPropDes()
Overrides:
getPropDes in class at.spardat.xma.component.Component
Returns:
descriptors of the properties of this component


Copyright © 2010. All Rights Reserved.