org.scrashmeow.ojb.console.ui.action
Class ObjectEditorAction

java.lang.Object
  |
  +--org.apache.struts.action.Action
        |
        +--org.apache.struts.actions.DispatchAction
              |
              +--org.apache.struts.actions.LookupDispatchAction
                    |
                    +--org.scrashmeow.ojb.console.framework.OjbcLookupDispatchAction
                          |
                          +--org.scrashmeow.ojb.console.framework.ViewerAction
                                |
                                +--org.scrashmeow.ojb.console.ui.action.ObjectEditorAction
All Implemented Interfaces:
ApplicationServiceAware, CancelActionAware, java.io.Serializable, ViewerActionAware
Direct Known Subclasses:
NestedObjectEditorAction

public class ObjectEditorAction
extends ViewerAction
implements CancelActionAware

Author:
Alexander_Bibighaus To change this generated comment edit the template variable "typecomment": Window>Preferences>Java>Templates. To enable and disable the creation of type comments go to Window>Preferences>Java>Code Generation.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.actions.LookupDispatchAction
keyMethodMap, localeMap
 
Fields inherited from class org.apache.struts.actions.DispatchAction
clazz, log, messages, methods, types
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Fields inherited from interface org.scrashmeow.ojb.console.framework.dispatch.CancelActionAware
CANCEL_KEY, CANCEL_METHOD
 
Fields inherited from interface org.scrashmeow.ojb.console.framework.dispatch.ViewerActionAware
DISPLAY_KEY, DISPLAY_METHOD
 
Constructor Summary
ObjectEditorAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Method cancel @add-javadoc!!!
 org.apache.struts.action.ActionForward commit(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Method commit @add-javadoc!!!
protected  void commitUserObject(ObjectEditorForm form, HttpServletRequest request, java.lang.Object inst)
          Method commitUserObject @add-javadoc!!!
 org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Method display @add-javadoc!!!
protected  org.apache.ojb.broker.metadata.ClassDescriptor findClassDescriptor(ObjectEditorContext cxt)
          Method findClassDescriptor @add-javadoc!!!
protected  Widget findWidgetForHandling(ObjectEditorForm form)
          Method findWidgetForHandling @add-javadoc!!!
 org.apache.struts.action.ActionForward getCancelForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Method getCancelForward @add-javadoc!!!
 org.apache.struts.action.ActionForward getCommitForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Method getCommitForward @add-javadoc!!!
 org.apache.struts.action.ActionForward getDisplayForward(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request)
          Method getDisplayForward @add-javadoc!!!
protected  java.util.Map getKeyMethodMap()
           
protected  Widget[] getWidgets(ObjectEditorForm myForm)
          Method getWidgets @add-javadoc!!!
 org.apache.struts.action.ActionForward handleWidget(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          Method handleWidget @add-javadoc!!!
protected  ObjectEditorContext lookupEditorContext(ObjectEditorForm form, HttpServletRequest request)
          Method lookupEditorContext @add-javadoc!!!
protected  void populateInstanceValues(org.apache.ojb.broker.metadata.ClassDescriptor cld, ObjectEditorForm myForm, java.lang.Object inst)
          Method populateInstanceValues @add-javadoc!!!
protected  void populateWidgets(ObjectEditorForm form, HttpServletRequest request, java.lang.Object inst)
          Method populateWidgets @add-javadoc!!!
protected  void removeEditorContext(ObjectEditorForm form, HttpServletRequest request)
          Method removeEditorContext @add-javadoc!!!
 
Methods inherited from class org.scrashmeow.ojb.console.framework.ViewerAction
unspecified
 
Methods inherited from class org.scrashmeow.ojb.console.framework.OjbcLookupDispatchAction
createBreadcrumbs, execute, findRedirectingForward, getApplicationService, initializeUserSession
 
Methods inherited from class org.apache.struts.actions.LookupDispatchAction
execute
 
Methods inherited from class org.apache.struts.actions.DispatchAction
dispatchMethod, getMethod, unspecified
 
Methods inherited from class org.apache.struts.action.Action
execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEditorAction

public ObjectEditorAction()
Method Detail

display

public org.apache.struts.action.ActionForward display(org.apache.struts.action.ActionMapping mapping,
                                                      org.apache.struts.action.ActionForm form,
                                                      HttpServletRequest request,
                                                      HttpServletResponse response)
                                               throws java.lang.Exception
Method display @add-javadoc!!!

Specified by:
display in interface ViewerActionAware
Overrides:
display in class ViewerAction
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!
See Also:
org.scrashmeow.ojb.console.framework.ViewerActionAware#display(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse)

lookupEditorContext

protected ObjectEditorContext lookupEditorContext(ObjectEditorForm form,
                                                  HttpServletRequest request)
                                           throws ServiceException
Method lookupEditorContext @add-javadoc!!!

Parameters:
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

removeEditorContext

protected void removeEditorContext(ObjectEditorForm form,
                                   HttpServletRequest request)
                            throws ServiceException
Method removeEditorContext @add-javadoc!!!

Parameters:
form - @add-javadoc!!!
request - @add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

commitUserObject

protected void commitUserObject(ObjectEditorForm form,
                                HttpServletRequest request,
                                java.lang.Object inst)
                         throws ServiceException
Method commitUserObject @add-javadoc!!!

Parameters:
form - @add-javadoc!!!
request - @add-javadoc!!!
inst - @add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

populateWidgets

protected void populateWidgets(ObjectEditorForm form,
                               HttpServletRequest request,
                               java.lang.Object inst)
                        throws ServiceException
Method populateWidgets @add-javadoc!!!

Parameters:
form - @add-javadoc!!!
request - @add-javadoc!!!
inst - @add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

handleWidget

public org.apache.struts.action.ActionForward handleWidget(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response)
                                                    throws java.lang.Exception
Method handleWidget @add-javadoc!!!

Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!

findWidgetForHandling

protected Widget findWidgetForHandling(ObjectEditorForm form)
Method findWidgetForHandling @add-javadoc!!!

Parameters:
form - @add-javadoc!!!
Returns:
@add-javadoc!!!

commit

public org.apache.struts.action.ActionForward commit(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws java.lang.Exception
Method commit @add-javadoc!!!

Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!

getCommitForward

public org.apache.struts.action.ActionForward getCommitForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws ServiceException
Method getCommitForward @add-javadoc!!!

Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

getCancelForward

public org.apache.struts.action.ActionForward getCancelForward(org.apache.struts.action.ActionMapping mapping,
                                                               org.apache.struts.action.ActionForm form,
                                                               HttpServletRequest request)
                                                        throws ServiceException
Method getCancelForward @add-javadoc!!!

Specified by:
getCancelForward in interface CancelActionAware
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

getDisplayForward

public org.apache.struts.action.ActionForward getDisplayForward(org.apache.struts.action.ActionMapping mapping,
                                                                org.apache.struts.action.ActionForm form,
                                                                HttpServletRequest request)
                                                         throws ServiceException
Method getDisplayForward @add-javadoc!!!

Specified by:
getDisplayForward in interface ViewerActionAware
Overrides:
getDisplayForward in class ViewerAction
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!
See Also:
ViewerActionAware.getDisplayForward(ActionMapping, ActionForm, HttpServletRequest)

cancel

public org.apache.struts.action.ActionForward cancel(org.apache.struts.action.ActionMapping mapping,
                                                     org.apache.struts.action.ActionForm form,
                                                     HttpServletRequest request,
                                                     HttpServletResponse response)
                                              throws java.lang.Exception
Method cancel @add-javadoc!!!

Specified by:
cancel in interface CancelActionAware
Parameters:
mapping - @add-javadoc!!!
form - @add-javadoc!!!
request - @add-javadoc!!!
response - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
java.lang.Exception - @add-javadoc!!!

findClassDescriptor

protected org.apache.ojb.broker.metadata.ClassDescriptor findClassDescriptor(ObjectEditorContext cxt)
                                                                      throws ServiceException
Method findClassDescriptor @add-javadoc!!!

Parameters:
cxt - @add-javadoc!!!
Returns:
@add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

getWidgets

protected Widget[] getWidgets(ObjectEditorForm myForm)
Method getWidgets @add-javadoc!!!

Parameters:
myForm - @add-javadoc!!!
Returns:
@add-javadoc!!!

populateInstanceValues

protected void populateInstanceValues(org.apache.ojb.broker.metadata.ClassDescriptor cld,
                                      ObjectEditorForm myForm,
                                      java.lang.Object inst)
                               throws ServiceException
Method populateInstanceValues @add-javadoc!!!

Parameters:
cld - @add-javadoc!!!
myForm - @add-javadoc!!!
inst - @add-javadoc!!!
Throws:
ServiceException - @add-javadoc!!!

getKeyMethodMap

protected java.util.Map getKeyMethodMap()
Overrides:
getKeyMethodMap in class ViewerAction
Returns:
@add-javadoc!!!
See Also:
LookupDispatchAction.getKeyMethodMap()


Copyright © 2003 Alexander Bibighaus et al. All Rights Reserved.