|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.portlet.GenericPortlet
org.apache.portals.bridges.common.GenericServletPortlet
org.apache.jetspeed.demo.simple.PickANumberPortlet
public class PickANumberPortlet
This class only exists to maintain the Help and View page names. As soon as the container/engine will retain the preferences this class can be replaced by configuring portlet preferences.
Field Summary | |
---|---|
private static javax.portlet.PortletMode |
ABOUT_MODE
|
private static String |
DEFAULT_ABOUT_PAGE
Default about page when preference does not exist |
private static String |
DEFAULT_ACTION_PAGE
Default action page when preference does not exist |
private static String |
DEFAULT_CUSTOM_PAGE
Default custom page when preference does not exist |
private static String |
DEFAULT_EDIT_DEFAULTS_PAGE
Default edit_defaults page when preference does not exist |
private static String |
DEFAULT_EDIT_PAGE
Default edit page when preference does not exist |
private static String |
DEFAULT_HELP_PAGE
Default help page when preference does not exist |
private static String |
DEFAULT_VIEW_PAGE
Default help page when preference does not exist |
private static javax.portlet.PortletMode |
EDIT_DEFAULTS_MODE
|
private static String |
GUESS_COUNT_NAME
Attribute name of Guess Count |
private static String |
GUESS_PARAMETER_NAME
Paramter name of current guess |
private static String |
LAST_GUESS_NAME
Attribute name of the last guess |
private static javax.portlet.PortletMode |
PRINT_MODE
|
private static String |
TARGET_VALUE_NAME
Attribute name of Target Value |
private static String |
TOP_RANGE_NAME
Attribute name of Top Range Value (in Edit Mode) |
Fields inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
---|
PARAM_ACTION_PAGE, PARAM_ALLOW_PREFERENCES, PARAM_CUSTOM_PAGE, PARAM_EDIT_PAGE, PARAM_HELP_PAGE, PARAM_MAX_PAGE, PARAM_VIEW_PAGE |
Constructor Summary | |
---|---|
PickANumberPortlet()
Set default page values when class is created |
Method Summary | |
---|---|
protected void |
doDispatch(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
void |
doView(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response)
|
private long |
getHighRange(javax.portlet.PortletRequest request)
|
private boolean |
isEditAction(javax.portlet.ActionRequest request)
|
void |
processAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse actionResponse)
Increment attributes in different scopes |
private void |
savePreferences(javax.portlet.PortletRequest request)
|
Methods inherited from class org.apache.portals.bridges.common.GenericServletPortlet |
---|
doCustom, doEdit, doHelp, getDefaultActionPage, getDefaultCustomPage, getDefaultEditPage, getDefaultHelpPage, getDefaultViewPage, init, processPreferencesAction, setDefaultActionPage, setDefaultCustomPage, setDefaultEditPage, setDefaultHelpPage, setDefaultViewPage |
Methods inherited from class javax.portlet.GenericPortlet |
---|
destroy, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getResourceBundle, getTitle, init, render |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final javax.portlet.PortletMode ABOUT_MODE
private static final javax.portlet.PortletMode EDIT_DEFAULTS_MODE
private static final javax.portlet.PortletMode PRINT_MODE
private static final String DEFAULT_ACTION_PAGE
GenericServletPortlet.processAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse)
private static final String DEFAULT_CUSTOM_PAGE
GenericServletPortlet.doCustom(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
private static final String DEFAULT_EDIT_PAGE
GenericServletPortlet.doEdit(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
,
Constant Field Valuesprivate static final String DEFAULT_HELP_PAGE
GenericServletPortlet.doHelp(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
,
Constant Field Valuesprivate static final String DEFAULT_VIEW_PAGE
GenericServletPortlet.doView(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
,
Constant Field Valuesprivate static final String DEFAULT_ABOUT_PAGE
private static final String DEFAULT_EDIT_DEFAULTS_PAGE
private static final String GUESS_COUNT_NAME
private static final String GUESS_PARAMETER_NAME
private static final String LAST_GUESS_NAME
private static final String TARGET_VALUE_NAME
private static final String TOP_RANGE_NAME
Constructor Detail |
---|
public PickANumberPortlet()
Method Detail |
---|
protected void doDispatch(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doDispatch
in class javax.portlet.GenericPortlet
javax.portlet.PortletException
IOException
public void doView(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws javax.portlet.PortletException, IOException
doView
in class org.apache.portals.bridges.common.GenericServletPortlet
javax.portlet.PortletException
IOException
public void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse actionResponse) throws javax.portlet.PortletException, IOException
processAction
in interface javax.portlet.Portlet
processAction
in class org.apache.portals.bridges.common.GenericServletPortlet
javax.portlet.PortletException
IOException
javax.portlet.GenericPortlet#processActions
private long getHighRange(javax.portlet.PortletRequest request)
private boolean isEditAction(javax.portlet.ActionRequest request)
private void savePreferences(javax.portlet.PortletRequest request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |