SEdit
Class MethodCallCommand

java.lang.Object
  extended bySEdit.Command
      extended bySEdit.MethodCallCommand
All Implemented Interfaces:
Executable

public class MethodCallCommand
extends Command

The description of an action that might be requested on a whole structure or on a single element (node or arrow). Usually defined in the formalism file


Field Summary
protected  String method
           
protected  Object obj
           
protected  Object parameters
           
 
Fields inherited from class SEdit.Command
action, desc, icon
 
Constructor Summary
MethodCallCommand(Object target, String methodname)
           
MethodCallCommand(Object target, String methodname, Object params)
           
MethodCallCommand(String methodname)
           
 
Method Summary
 void execute()
          This method executes the command.
 String getMethodName()
           
 Object getParameters()
          Get the value of parameters.
 Object getTarget()
          Get the value of target.
 void setParameters(Object v)
          Set the value of parameters.
 void setTarget(Object v)
          Set the value of target.
 String toString()
           
 
Methods inherited from class SEdit.Command
getAction, getDescription, getIcon, hasDescription, hasIcon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

protected String method

parameters

protected Object parameters

obj

protected Object obj
Constructor Detail

MethodCallCommand

public MethodCallCommand(String methodname)

MethodCallCommand

public MethodCallCommand(Object target,
                         String methodname)

MethodCallCommand

public MethodCallCommand(Object target,
                         String methodname,
                         Object params)
Method Detail

getTarget

public Object getTarget()
Get the value of target.

Returns:
Value of target.

setTarget

public void setTarget(Object v)
Set the value of target.

Parameters:
v - Value to assign to target.

getParameters

public Object getParameters()
Get the value of parameters.

Returns:
Value of parameters.

setParameters

public void setParameters(Object v)
Set the value of parameters.

Parameters:
v - Value to assign to parameters.

getMethodName

public String getMethodName()

toString

public String toString()
Overrides:
toString in class Command

execute

public void execute()
Description copied from interface: Executable
This method executes the command.

Specified by:
execute in interface Executable
Overrides:
execute in class Command


Copyright © J. Ferber, O. Gutknecht All Rights Reserved.