|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.HybridServerPages.BasePage
public class BasePage
Derive page state classes ("*_PS.java") from this class
Field Summary | |
---|---|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpSession |
session
|
Constructor Summary | |
---|---|
BasePage()
|
Method Summary | |
---|---|
protected boolean |
$a()
Do not touch |
protected void |
$accept(int code,
java.lang.String msg,
java.lang.Object more,
BaseComponent source)
Override this method to get signals from sub-components. |
protected void |
$ajax(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method to process Ajax request at the page level |
protected int[] |
$DR()
Do not touch |
protected int |
$get_$DR2(int index)
Do not touch |
protected int |
$get_$SH2(int index)
Do not touch |
protected int |
$get_$SI2(int index)
Do not touch |
protected int |
$get_$SL2(int index)
Do not touch |
protected int |
$get_$SR2(int index)
Do not touch |
protected BaseApplication |
$getAS()
Access to Application State instance |
protected java.lang.String |
$getPageId()
Do not touch |
protected java.lang.String |
$getParam(java.lang.String name,
java.lang.String previous_value)
Access to page-related HTTP request parameters |
protected void |
$handle(java.lang.String h1,
java.lang.String h2)
Override this method to process HTTP request |
protected int[] |
$I()
Do not touch |
protected boolean |
$isLoaded()
Do not touch |
protected int[] |
$R()
Do not touch |
protected void |
$render(java.io.PrintWriter $)
Do not touch |
protected void |
$set_$DR2(int[] arg)
Do not touch |
protected void |
$set_$SH2(int[] arg)
Do not touch |
protected void |
$set_$SI2(int[] arg)
Do not touch |
protected void |
$set_$SL2(int[] arg)
Do not touch |
protected void |
$set_$SR2(int[] arg)
Do not touch |
protected void |
$setBadParam(java.lang.String name,
java.lang.String msg)
Marks the parameter as bad |
protected void |
$setLoaded()
Do not touch |
protected boolean |
$setNextPage(java.lang.String pn)
Sets the next page to be shown. |
protected void |
$setReturn()
This is for support of the back button |
protected int[] |
$SH()
Do not touch |
protected int[] |
$SI()
Do not touch |
protected int[] |
$SL()
Do not touch |
protected int[] |
$SR()
Do not touch |
protected java.lang.String |
badParam(java.lang.String name,
java.lang.String id)
returns message if the parameter did not pass validation |
protected BaseComponent |
getComponent(java.lang.String id)
Access to current component from widget, call it as getComponent($#) |
protected java.lang.String |
getPageName()
Returns fully qualified name of the currently processed page presentation class |
protected java.lang.String |
getShortPageName()
Returns the short name of the current page |
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.HttpSession session
Constructor Detail |
---|
public BasePage()
Method Detail |
---|
protected java.lang.String $getPageId()
protected int[] $R()
protected int[] $I()
protected int[] $SI()
protected int[] $SL()
protected int[] $SR()
protected int[] $DR()
protected int[] $SH()
protected void $set_$SI2(int[] arg)
protected void $set_$SL2(int[] arg)
protected void $set_$SR2(int[] arg)
protected void $set_$DR2(int[] arg)
protected void $set_$SH2(int[] arg)
protected int $get_$SI2(int index)
protected int $get_$SL2(int index)
protected int $get_$SR2(int index)
protected int $get_$DR2(int index)
protected int $get_$SH2(int index)
protected boolean $isLoaded()
protected void $setLoaded()
protected void $render(java.io.PrintWriter $)
protected boolean $a()
protected void $ajax(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- standardresponse
- standardprotected void $accept(int code, java.lang.String msg, java.lang.Object more, BaseComponent source)
code
- some valuemsg
- some messagemore
- some additional datasource
- the component that fired the signalprotected void $handle(java.lang.String h1, java.lang.String h2)
h1
- 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 BaseApplication $getAS()
protected java.lang.String getPageName()
protected java.lang.String getShortPageName()
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 controlprotected final java.lang.String $getParam(java.lang.String name, java.lang.String previous_value)
name
- component-scope name of the parameterprevious_value
- returned if no such parameter in
the current HTTP request. null is OK
protected final BaseComponent getComponent(java.lang.String id)
id
- id of the component
protected final boolean $setNextPage(java.lang.String pn)
pn
- name of the page a.k.a. full class name of the page
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |