|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.HybridServerPages.Base_PS0
com.HybridServerPages.Base_PS
public class Base_PS
Derive page state classes from this class
| Field Summary | |
|---|---|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
protected javax.servlet.http.HttpSession |
session
|
| Constructor Summary | |
|---|---|
protected |
Base_PS()
|
| Method Summary | |
|---|---|
protected void |
$accept(int code,
java.lang.String msg,
java.lang.Object more,
Base_WS source)
Override this method to get signals from sub-components. |
protected void |
$badActionCode()
Call it if h1 part of HJ_Action is not recognized |
protected Base_AS |
$getAS()
Access to Application State instance |
protected Base_PS |
$getPageInstance(java.lang.String pn)
Access to state instance of any page by name |
protected java.lang.String |
$getParam(java.lang.String name,
java.lang.String prev)
Access to page-related HTTP request parameters |
protected void |
$handlePage(java.lang.String h1,
java.lang.String h2)
Override this method to process HTTP request |
protected void |
$postDraw()
Override this metod to do something right after sending the HTTP response |
protected void |
$preDraw()
Override this metod to do something right before sending the HTTP response |
protected void |
$setBadParam(java.lang.String name,
java.lang.String msg)
Marks the parameter as bad |
protected boolean |
$setNextPage(java.lang.String pn)
Sets the next page to be shown. |
protected void |
$setReturn()
Sets the next page equal to the page you came here from. |
protected java.lang.String |
badParam(java.lang.String name,
java.lang.String id)
returns message if the parameter did not pass validation |
protected Base_WS |
getComponent(java.lang.String id)
Access to current component from widget, call it as getComponent($#) |
protected java.lang.String |
getPageName()
Name of the currently processed page |
| Methods inherited from class com.HybridServerPages.Base_PS0 |
|---|
$a, $accept, $DR, $get_$DR2, $get_$SH2, $get_$SI2, $get_$SL2, $get_$SR2, $getBadParams, $getFrom, $getObj, $getPageId, $I, $isLoaded, $R, $render, $set_$DR2, $set_$SH2, $set_$SI2, $set_$SL2, $set_$SR2, $setFrom, $setLoaded, $SH, $SI, $SL, $SR |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.http.HttpSession session
| Constructor Detail |
|---|
protected Base_PS()
| Method Detail |
|---|
protected void $accept(int code,
java.lang.String msg,
java.lang.Object more,
Base_WS source)
code - some valuemsg - some messagemore - some additional datasource - the component that fired the signalprotected final Base_PS $getPageInstance(java.lang.String pn)
pn - name of the page in the form of a Java class name
protected void $preDraw()
$preDraw in class com.HybridServerPages.Base_PS0protected void $postDraw()
$postDraw in class com.HybridServerPages.Base_PS0
protected void $handlePage(java.lang.String h1,
java.lang.String h2)
$handlePage in class com.HybridServerPages.Base_PS0h1 - first (name) part (before ':') of HJ_Action HTTP parameterh2 - second (value) part of HJ_Action HTTP parameter
Note: Using the HJ_Action is optional as HTTP request is always availableprotected final void $badActionCode()
protected final Base_AS $getAS()
protected java.lang.String getPageName()
getPageName in class com.HybridServerPages.Base_PS0protected final boolean $setNextPage(java.lang.String pn)
$setNextPage in class com.HybridServerPages.Base_PS0pn - name of the page a.k.a. full class name of the page
protected final void $setReturn()
protected final java.lang.String badParam(java.lang.String name,
java.lang.String id)
name - of the parameterid - id of component
protected final void $setBadParam(java.lang.String name,
java.lang.String msg)
name - of the parameter that did not pass validationmsg - message to be shown at the control
protected final java.lang.String $getParam(java.lang.String name,
java.lang.String prev)
name - component-scope name of the parameterprev - value returned if no such parameter in
the current HTTP request. null is OK
protected final Base_WS getComponent(java.lang.String id)
id - id of the component
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||