at.spardat.xma.page
Class PageServer

java.lang.Object
  extended byat.spardat.xma.page.Page
      extended byat.spardat.xma.page.PageServer
All Implemented Interfaces:
Descriptive, Synchronization, Transactional

public abstract class PageServer
extends Page

The server side representation of a page (model)


Constructor Summary
PageServer(ComponentServer c, boolean isStateless)
          Constructor
 
Method Summary
 void cleanUpAfterServerEvent()
          A server event has been sucessfully executed.
 void clear()
          Clears all widget model.
 int estimateMemory()
          Estimates the number of bytes this object consumes in memory.
 ComponentServer getComponent()
          Returns the component this page is part of.
 PageServer getParent()
          Returns the parent page or null, if this page has no parent
 void removeChild(PageServer child)
          Removes the given subpage.
 void setChild(PageServer child)
          Sets the given subpage.
 void setParentId(short s)
          Sets the id of the parent page.
 
Methods inherited from class at.spardat.xma.page.Page
changed, commit, describe, display, equalsCS, externalize, getId, getNumWModels, getTypeId, getWModel, getWModels, 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

PageServer

public PageServer(ComponentServer c,
                  boolean isStateless)
Constructor

Parameters:
isStateless - property whether this is a server-stateless component
Method Detail

clear

public void clear()
Clears all widget model. Just for debugging purpose.


getComponent

public ComponentServer getComponent()
Returns the component this page is part of.


getParent

public PageServer getParent()
Returns the parent page or null, if this page has no parent


estimateMemory

public int estimateMemory()
Estimates the number of bytes this object consumes in memory.


cleanUpAfterServerEvent

public void cleanUpAfterServerEvent()
A server event has been sucessfully executed. This method releases all memory in models that may be released.


setParentId

public void setParentId(short s)
Sets the id of the parent page.

This method must not be called from outside the XMA framework.


setChild

public void setChild(PageServer child)
Sets the given subpage. The method automatically chooses the correct member variable to set. This method will be implemented by the generated class.

Parameters:
child - the subpage to set.
Throws:
java.lang.IllegalArgumentException - if no corresponding member exists for the type of the subpage

removeChild

public void removeChild(PageServer child)
Removes the given subpage. The method automatically chooses the correct member variable to clear. This method will be implemented by the generated class.

Parameters:
child - the subpage to set.
Throws:
java.lang.IllegalArgumentException - if no corresponding member exists for the type of the subpage