iaaf.web
Class PageTemplet

java.lang.Object
  |
  +--iaaf.web.PageTemplet
Direct Known Subclasses:
AdminPageTemplet, AnalyserTemplet, OperatorPageTemplet, SuperUserPageTemplet

public abstract class PageTemplet
extends java.lang.Object

Title: PageTemplet.java Description: parent class of SuperUserPageTemplet, AdminPageTemplet, OperatorPageTemplet and AnalyserTemplet prepare a templet of html file. The portion of templet draw as following
|------------------------------------------------------------|
| | Title |
|----------|-------------------------------------------------|
| Main menu |
|------------------------------------------------------------|
| sub menu | |
| | Content |
| | |
|------------------------------------------------------------|
Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:
Weiqing Mao

Field Summary
static int ADMINISTRATOR
           
static int SUPERUSER
           
static int USER
           
 
Constructor Summary
PageTemplet()
           
 
Method Summary
abstract  java.lang.String getTemplet()
          abstract method for getting the string represents this templet
 void setContent(java.lang.String content)
          set the content of the page
 void setJS(java.lang.String js)
          set the javascript
 void setLogo(java.lang.String logo)
          set the logo of the page
abstract  void setMmenu(int pageState)
          set main menu according to the stage
 void setMmenu(java.lang.String mainmenu)
          set main menu
 void setName(java.lang.String name)
          set the browser title
 void setSmenu(java.lang.String submenu)
          set sub menu
 void setSmenu(java.lang.String[] submenu, int selectedIndex)
          set sub menu
 void setTitle(java.lang.String title)
          set the title of page
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER

public static int USER

ADMINISTRATOR

public static int ADMINISTRATOR

SUPERUSER

public static int SUPERUSER
Constructor Detail

PageTemplet

public PageTemplet()
Method Detail

getTemplet

public abstract java.lang.String getTemplet()
abstract method for getting the string represents this templet

setMmenu

public abstract void setMmenu(int pageState)
set main menu according to the stage
Parameters:
pageState - stage of the page

setMmenu

public void setMmenu(java.lang.String mainmenu)
set main menu
Parameters:
mainmenu - String that represents the portion of main menu

setSmenu

public void setSmenu(java.lang.String submenu)
set sub menu
Parameters:
submenu - String array of caption of sub menu
selectedIndex - want which one to be selected

setContent

public void setContent(java.lang.String content)
set the content of the page
Parameters:
content - String that represents the portion of content

setName

public void setName(java.lang.String name)
set the browser title
Parameters:
name - String want to set on the browser title

setTitle

public void setTitle(java.lang.String title)
set the title of page
Parameters:
title - title of the page

setJS

public void setJS(java.lang.String js)
set the javascript
Parameters:
js - String represents the portion of javascript

setLogo

public void setLogo(java.lang.String logo)
set the logo of the page
Parameters:
logo - String represents the portion of logo

setSmenu

public void setSmenu(java.lang.String[] submenu,
                     int selectedIndex)
set sub menu
Parameters:
submenu - String array of caption of sub menu
selectedIndex - want which one to be selected