|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.HybridServerPages.Base_WS0
com.HybridServerPages.Base_WS
public class Base_WS
Derive widget 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 | |
|---|---|
Base_WS()
|
|
| 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 java.lang.String |
$getParam(java.lang.String name,
java.lang.String prev)
Access to component-related HTTP request parameters |
protected void |
$handleWidget(java.lang.String h1,
java.lang.String h2)
If the actual submission is unrelated to current component then empty strings are passed to both parameters. |
protected void |
$resend()
Resends the last accepted message (code,msg,more,source) upwards |
protected void |
$send(int code,
java.lang.String msg,
java.lang.Object more)
Override this method to get signals from sub-components. |
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 This is a support for back button |
java.lang.String |
getUniqueId()
Returns unique ID of the component state instance |
java.lang.String |
getWidgetName()
Name of the widget asoociated with this current component |
| Methods inherited from class com.HybridServerPages.Base_WS0 |
|---|
accept, getFullId, getShortName |
| 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 |
|---|
public Base_WS()
| Method Detail |
|---|
public java.lang.String getWidgetName()
getWidgetName in class com.HybridServerPages.Base_WS0public java.lang.String getUniqueId()
protected final void $send(int code,
java.lang.String msg,
java.lang.Object more)
code - some valuemsg - some messagemore - some additional dataprotected final void $resend()
protected void $accept(int code,
java.lang.String msg,
java.lang.Object more,
Base_WS source)
$accept in class com.HybridServerPages.Base_WS0code - some valuemsg - some messagemore - some additional datasource - the component that fired the signal
protected void $handleWidget(java.lang.String h1,
java.lang.String h2)
$handleWidget in class com.HybridServerPages.Base_WS0h1 - first (name) part (before ':') of HJ_Action HTTP parameterh2 - second (value) part of HJ_Action HTTP parameter String $getParam(String name)
This method is called for every component with respect to their seniority
AND before $handlePage.protected final boolean $setNextPage(java.lang.String pn)
pn - name of the page a.k.a. full class name of the page
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
protected final void $setReturn()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||