|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.page.DynPage
Base class for pages. This class does some rudimentary event handling by invoking appropriate methods.
Copyright 2004 SAP AG
| Field Summary | |
protected Document |
document
|
protected Form |
form
|
protected String |
forward
|
protected String |
title
|
| Constructor Summary | |
DynPage()
creates a new DynPage. |
|
| Method Summary | |
abstract void |
doInitialization()
initialize your DynPage. |
void |
doOutput(com.sapportals.htmlb.page.PageProcessor processor)
actually do your output. |
abstract void |
doProcessAfterInput()
Process any user input. |
abstract void |
doProcessBeforeOutput()
preprocess your output. |
void |
doProcessCurrentEvent(Event theEvent)
processes the current event by invoking a method with an appropriate name and signature. |
void |
doSetupOutput()
sets up the output for this DynPage. |
ClassLoader |
getClassLoader()
Get the actual classloader object. |
Component |
getComponentByName(String name)
|
Component[] |
getComponents()
gets an array of all components from the last submitted form or null if there were no components |
Document |
getDocument()
returns the Document object of the page |
Form |
getForm()
gets the Form to be used in this DynPage. |
String |
getForward()
|
IPageContext |
getPageContext()
gets the IPageContext of the current request. |
protected Object |
getRequest()
|
protected Object |
getResponse()
|
String |
getTitle()
|
void |
setClassLoader(ClassLoader classLoader)
Set the classloader to use. |
void |
setComponents(Component[] components)
Deprecated. |
void |
setForm(Form form)
sets the Form to be used in this DynPage. |
void |
setForward(String url)
set forward url e.g. |
void |
setPageContext(IPageContext pageContext)
Set the IPageContext of the current request. |
void |
setRequest(Object request)
Sets the request object. |
void |
setResponse(Object response)
Set the response object. |
void |
setTitle(String title)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Document document
protected Form form
protected String title
protected String forward
| Constructor Detail |
public DynPage()
| Method Detail |
public void doSetupOutput()
throws PageException
You may want to override this method if you do not process output directly, e.g. if you use JSPs to render the output in which case you might setup your data beans.
PageException
public abstract void doInitialization()
throws PageException
PageException
public abstract void doProcessAfterInput()
throws PageException
PageException
public void doProcessCurrentEvent(Event theEvent)
throws PageException
'appropriate' means that we look for a method with the name of the event action and a single Event parameter. If no such method exists we try to prefix the event action with 'on' and capitalize the first letter. E.g. if the event action is 'submit' we first try to invoke a method
public void submit(Event event) {}
if no such method exists, we try to invoke
public void onSubmit(Event event) {}
If there is no such method either a PageException is thrown.
Subclasses may override this method to install their own event handling.
theEvent - the current event from the PageContext
PageException
public abstract void doProcessBeforeOutput()
throws PageException
PageException
public void doOutput(com.sapportals.htmlb.page.PageProcessor processor)
throws PageException
PageExceptionpublic void setForm(Form form)
form - the Form to be usedpublic Form getForm()
public void setRequest(Object request)
protected Object getRequest()
public void setResponse(Object response)
protected Object getResponse()
public IPageContext getPageContext()
public void setPageContext(IPageContext pageContext)
public Component[] getComponents()
public void setComponents(Component[] components)
public Component getComponentByName(String name)
public void setTitle(String title)
public String getTitle()
public Document getDocument()
public void setForward(String url)
public String getForward()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||