otie.component
Class PageComponent

java.lang.Object
  extended byotie.component.PageComponent
Direct Known Subclasses:
AdminComponent, CommitTable, CreateTableComponent, ErrorFile, ImageContainer, LoginComponent, LogoutComponent, MeasurementDataComponent, ProjectComponent, SearchEngineComponent, TabResolver, WorkHours

public abstract class PageComponent
extends java.lang.Object


Field Summary
protected  PageManager pMan
          A PageManager object that can be used to access, e.g., a JDBCWrapper or a SessionManager.
protected  XMLFile xFile
          A XMLFile that is used for writing the contents.
 
Constructor Summary
PageComponent()
          An empty constructor to support all Java reflect API operations.
 
Method Summary
protected abstract  void generateContent()
          An abstract method for generating the content of a page.
 XMLFile getContent(PageManager pManager)
          The main method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xFile

protected XMLFile xFile
A XMLFile that is used for writing the contents.


pMan

protected PageManager pMan
A PageManager object that can be used to access, e.g., a JDBCWrapper or a SessionManager.

Constructor Detail

PageComponent

public PageComponent()
An empty constructor to support all Java reflect API operations.

Method Detail

generateContent

protected abstract void generateContent()
An abstract method for generating the content of a page. Override this method to produce new components.


getContent

public XMLFile getContent(PageManager pManager)
The main method. Each time a pageComponent is used, the getContent() method is used. Tbe getContent() method calls the abstract generateContent method that can be used to provide user-defined content.

Parameters:
pManager - PageManager
Returns:
XMLFile