Class sunsoft.jws.visual.rt.type.OpAction
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sunsoft.jws.visual.rt.type.OpAction

java.lang.Object
   |
   +----sunsoft.jws.visual.rt.type.Converter
           |
           +----sunsoft.jws.visual.rt.type.OpAction

public class OpAction
extends Converter
implements Cloneable
Stores the action that should be triggered in an operation whose filter has matched an event or message. This class also simultaneously acts as its own converter.
See Also:
Op

Variable Index

 o actionDetail
Action detail, used by the action editor to keep track of simple actions.
 o actionType
Action type, ATTRIBUTE, MESSAGE, or CODE.
 o ARG
Used when setting the action target, specifies that the target should be whatever is in the arg variable of the message or event.
 o ATTRIBUTE
Action is to set an attribute.
 o code
The code associate with the action, in string form.
 o CODE
Action is to execute some code.
 o CONSTANT
Used when setting the action target, specifies that the target is permanently set (i.e.
 o EXIT
 o HIDE
 o MESSAGE
Action is to send a message.
 o name
Message or Attribute name.
 o SHOW
 o target
Action target, used when targetSource == CONSTANT.
 o TARGET
Used when setting the action target, specifies that the target should be the same as the target of the event or message that triggered this operation.
 o targetName
Message target name, used when the action is to send a message.
 o targetSource
Specifies how the target or the action is determined, is either CONSTANT, TARGET, or ARG.
 o type
Message type, used when the action is to send a message.
 o value
Message arg or Attribute value, used when valueSource == CONSTANT.
 o valueSource
Where is the arg/value from for setting an attribute, is either CONSTANT, TARGET, or ARG.

Constructor Index

 o OpAction()
Constructs an instance where targetSource and valueSource are CONSTANT.
 o OpAction(int, AMRef, String, Object)
Constructs an instance where targetSource and valueSource are CONSTANT.

Method Index

 o clone()
Returns a new copy of this action.
 o convertFromString(String)
Returns a new instance of the type this converter converts, as specified by the string given.
 o convertFromString(String, OpAction)
 o convertToString(Object, StringBuffer)
Places a string representation of an instance of the type this converter converts into a string buffer.
 o genInitCode(StringBuffer, String)
Appends the initialization code for this operation filter into the buffer given.
 o viewableAsString()
Returns true if this type should be displayed in an editor.

Variables

 o ATTRIBUTE
  public final static int ATTRIBUTE
Action is to set an attribute.
 o MESSAGE
  public final static int MESSAGE
Action is to send a message.
 o CODE
  public final static int CODE
Action is to execute some code.
 o SHOW
  public final static int SHOW
 o HIDE
  public final static int HIDE
 o EXIT
  public final static int EXIT
 o CONSTANT
  public final static int CONSTANT
Used when setting the action target, specifies that the target is permanently set (i.e. always use what is stored in this objects target memeber.
See Also:
target
 o TARGET
  public final static int TARGET
Used when setting the action target, specifies that the target should be the same as the target of the event or message that triggered this operation.
 o ARG
  public final static int ARG
Used when setting the action target, specifies that the target should be whatever is in the arg variable of the message or event.
 o actionType
  public int actionType
Action type, ATTRIBUTE, MESSAGE, or CODE.
 o actionDetail
  public int actionDetail
Action detail, used by the action editor to keep track of simple actions.
 o target
  public AMRef target
Action target, used when targetSource == CONSTANT.
 o targetSource
  public int targetSource
Specifies how the target or the action is determined, is either CONSTANT, TARGET, or ARG.
 o name
  public String name
Message or Attribute name.
 o value
  public Object value
Message arg or Attribute value, used when valueSource == CONSTANT.
 o valueSource
  public int valueSource
Where is the arg/value from for setting an attribute, is either CONSTANT, TARGET, or ARG.
 o type
  public String type
Message type, used when the action is to send a message.
 o targetName
  public String targetName
Message target name, used when the action is to send a message.
 o code
  public String code
The code associate with the action, in string form.

Constructors

 o OpAction
  public OpAction()
Constructs an instance where targetSource and valueSource are CONSTANT.
 o OpAction
  public OpAction(int actionType,
                  AMRef target,
                  String name,
                  Object value)
Constructs an instance where targetSource and valueSource are CONSTANT.

Methods

 o clone
  public Object clone()
Returns a new copy of this action.
Overrides:
clone in class Object
 o genInitCode
  public void genInitCode(StringBuffer buf,
                          String varname)
Appends the initialization code for this operation filter into the buffer given.
Parameters:
varname - variable name of the operation filter
buf - buffer onto which the code should be appended
 o convertToString
  public void convertToString(Object obj,
                              StringBuffer buf)
Places a string representation of an instance of the type this converter converts into a string buffer.
Overrides:
convertToString in class Converter
 o convertFromString
  public Object convertFromString(String s)
Returns a new instance of the type this converter converts, as specified by the string given.
Overrides:
convertFromString in class Converter
 o convertFromString
  public void convertFromString(String s,
                                OpAction a)
 o viewableAsString
  public boolean viewableAsString()
Returns true if this type should be displayed in an editor. For the attribute editor, a return value of false means that the the textfield will be hidden.
Returns:
false
Overrides:
viewableAsString in class Converter

All Packages  Class Hierarchy  This Package  Previous  Next  Index