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

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.order.client.OrderGen
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, IOrder
Direct Known Subclasses:
Order

public abstract class OrderGen
extends at.spardat.xma.component.EmbeddableComponent
implements IOrder

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

Author:
build

Field Summary
static short OrderEditFormClass
          the unique typeId for the page OrderEditForm
static short OrderSearchFormClass
          the unique typeId for the page OrderSearchForm
static short Page1Class
          the unique typeId for the page Page1
static short Page2Class
          the unique typeId for the page Page2
 
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.order.client.IOrder
COMPONENT_NAME
 
Constructor Summary
OrderGen(at.spardat.xma.session.XMASessionClient session)
          Initializes the OrderGen.
 
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
 java.lang.String getModelClass(short typeId)
          Gets the full classname for the given typeId of a page in this component.
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 Order.
 
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, 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

OrderSearchFormClass

public static final short OrderSearchFormClass
the unique typeId for the page OrderSearchForm

See Also:
Constant Field Values

OrderEditFormClass

public static final short OrderEditFormClass
the unique typeId for the page OrderEditForm

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
Constructor Detail

OrderGen

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

Parameters:
session - the XMASession, this OrderGen 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 Order. 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


Copyright © 2010. All Rights Reserved.