com.cc.framework.ui.control
Class ControlMethodInvocation

java.lang.Object
  extended bycom.cc.framework.ui.control.ControlMethodInvocation

public class ControlMethodInvocation
extends java.lang.Object

Die Klasse stellt die Informationen über den Aufruf einer Kontrollelement Aktion zur Verfügung. Eine Kontrollelement Aktion wird immer durch die folgenden Attribute bestimmt:

Version:
$Revision: 1.19 $
Author:
Gernot Schulz

Field Summary
private  java.lang.String action
          Action to process
private  java.lang.String ctrl
          Control Name
private  java.lang.String[] param
          Additional action Parameters e.g. browse.do?
 
Constructor Summary
ControlMethodInvocation(java.lang.String ctrl, java.lang.String action, java.lang.String[] params)
          Constructor for ControlMethodInvocation
 
Method Summary
 java.lang.String getAction()
          Returns the name of the Action to be performed
 java.lang.String getControlName()
          Returns the name of the control
static ControlMethodInvocation getFromForm(RequestContext ctx)
          Checks if a action of a form was generated within a form.
static ControlMethodInvocation getFromHyperlink(RequestContext ctx)
          Checks if the event of of the control was triggered by a hyperlink.
 java.lang.String[] getParams()
          Returns an Array with the additional Parameters
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ctrl

private java.lang.String ctrl
Control Name


action

private java.lang.String action
Action to process


param

private java.lang.String[] param
Additional action Parameters e.g. browse.do?id={0}

Constructor Detail

ControlMethodInvocation

public ControlMethodInvocation(java.lang.String ctrl,
                               java.lang.String action,
                               java.lang.String[] params)
Constructor for ControlMethodInvocation

Parameters:
ctrl - Name of the Control
action - Action to process
params - Action parameters
Method Detail

getFromHyperlink

public static ControlMethodInvocation getFromHyperlink(RequestContext ctx)
Checks if the event of of the control was triggered by a hyperlink. This is the default.

Parameters:
ctx - ActionContext
Returns:
ControlMethodInvocation

getFromForm

public static ControlMethodInvocation getFromForm(RequestContext ctx)
Checks if a action of a form was generated within a form. Syntax: "ctrla=[controlname]=[Aktionsname]=[Parameter 1]=...=[Parameter n].x" or "ctrla=[controlname]=[Aktionsname]=[Parameter 1]=...=[Parameter n].y"

Parameters:
ctx - ActionContext
Returns:
ControlMethodInvocation

getControlName

public java.lang.String getControlName()
Returns the name of the control

Returns:
The name of the control

getAction

public java.lang.String getAction()
Returns the name of the Action to be performed

Returns:
String

getParams

public java.lang.String[] getParams()
Returns an Array with the additional Parameters

Returns:
String

toString

public java.lang.String toString()
See Also:
Object.toString()


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