com.cc.framework.adapter.struts
Class ConcreteControlActionContext

java.lang.Object
  extended bycom.cc.framework.adapter.struts.ActionContextWrapper
      extended bycom.cc.framework.adapter.struts.ConcreteControlActionContext
All Implemented Interfaces:
ActionContext, AjaxRequest, ControlActionContext, ControlRequestContext, HttpContext, RequestContext

public class ConcreteControlActionContext
extends ActionContextWrapper
implements ControlActionContext

encapsulates all parameters which are required if a control action is performed.

Since:
1.0
Version:
$Revision: 1.2 $
Author:
Harald Schulz

Field Summary
private  ControlActionDef action
          The control action
private  Control control
          The control
private  java.lang.String controlName
          The name of the Control
 
Fields inherited from class com.cc.framework.adapter.struts.ActionContextWrapper
 
Constructor Summary
ConcreteControlActionContext(ActionContext ctx, Control control, java.lang.String controlName, ControlActionDef action)
          Constructor for ConcreteControlActionContext
 
Method Summary
 ControlActionDef action()
          Gets the Action Definition
 Control control()
          Returns the control
 java.lang.String getActionMethod()
          Returns the Name of the action handler in the syntax: [Controlname]_on[Action]
 java.lang.String getControlName()
           
 java.lang.String toString()
           
 
Methods inherited from class com.cc.framework.adapter.struts.ActionContextWrapper
addError, addErrors, addGlobalError, addGlobalError, addGlobalError, addGlobalError, addGlobalError, addGlobalMessage, addGlobalMessage, addGlobalMessage, addGlobalMessage, addGlobalMessage, addMenu, addMessages, addPropertyError, addPropertyError, addPropertyError, addPropertyError, addPropertyError, addPropertyMessage, addPropertyMessage, addPropertyMessage, addPropertyMessage, addPropertyMessage, cancelAjaxRequest, consumeStrutsMessages, form, forward, forwardByName, forwardByName, forwardByName, forwardByName, forwardByName, forwardToAction, forwardToAction, forwardToAction, forwardToAction, forwardToInput, forwardToResponse, getAjaxAttribute, getAjaxAttributeNames, getAttribute, getDirtyControls, getErrors, getForward, getLocale, getMenus, getMessages, getNestedContext, getPrincipal, getServletContext, hasErrors, hasMessages, invalidDialogContext, isAjaxCanceled, isAjaxRequest, isHandeled, mapping, markDirty, request, response, session, setAjaxAttribute, setForm, validateForm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.cc.framework.adapter.struts.ActionContext
addError, addErrors, addGlobalError, addGlobalError, addGlobalError, addGlobalError, addGlobalError, addGlobalMessage, addGlobalMessage, addGlobalMessage, addGlobalMessage, addGlobalMessage, addMessages, addPropertyError, addPropertyError, addPropertyError, addPropertyError, addPropertyError, addPropertyMessage, addPropertyMessage, addPropertyMessage, addPropertyMessage, addPropertyMessage, consumeStrutsMessages, form, forward, forwardByName, forwardByName, forwardByName, forwardByName, forwardByName, forwardToAction, forwardToAction, forwardToAction, forwardToAction, forwardToInput, forwardToResponse, getErrors, getForward, getMessages, hasErrors, hasMessages, invalidDialogContext, isHandeled, mapping, setForm, validateForm
 
Methods inherited from interface com.cc.framework.adapter.RequestContext
getLocale, getNestedContext, getPrincipal
 
Methods inherited from interface com.cc.framework.http.HttpContext
getAttribute, getServletContext, request, response, session
 
Methods inherited from interface com.cc.framework.adapter.AjaxRequest
addMenu, cancelAjaxRequest, getAjaxAttribute, getAjaxAttributeNames, getDirtyControls, getMenus, isAjaxCanceled, isAjaxRequest, markDirty, setAjaxAttribute
 

Field Detail

control

private Control control
The control


controlName

private java.lang.String controlName
The name of the Control


action

private ControlActionDef action
The control action

Constructor Detail

ConcreteControlActionContext

public ConcreteControlActionContext(ActionContext ctx,
                                    Control control,
                                    java.lang.String controlName,
                                    ControlActionDef action)
Constructor for ConcreteControlActionContext

Parameters:
ctx - ActionContext
control - Control
controlName - The name of the Control
action - ControlActionDef
Method Detail

control

public Control control()
Description copied from interface: ControlRequestContext
Returns the control

Specified by:
control in interface ControlRequestContext
Returns:
Returns a Control
See Also:
ControlRequestContext.control()

action

public ControlActionDef action()
Description copied from interface: ControlRequestContext
Gets the Action Definition

Specified by:
action in interface ControlRequestContext
Returns:
Returns the meta data of this control action
See Also:
ControlRequestContext.action()

getActionMethod

public java.lang.String getActionMethod()
Description copied from interface: ControlRequestContext
Returns the Name of the action handler in the syntax: [Controlname]_on[Action]

Specified by:
getActionMethod in interface ControlRequestContext
Returns:
String
See Also:
ControlRequestContext.getActionMethod()

getControlName

public java.lang.String getControlName()
Specified by:
getControlName in interface ControlRequestContext
Returns:
returns the original control name
See Also:
ControlRequestContext.getControlName()

toString

public java.lang.String toString()
Overrides:
toString in class ActionContextWrapper
See Also:
Object.toString()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.