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
-
actionDetail
- Action detail, used by the action editor to keep track of simple actions.
-
actionType
- Action type, ATTRIBUTE, MESSAGE, or CODE.
-
ARG
- Used when setting the action target, specifies that the target should
be whatever is in the arg variable of the message or event.
-
ATTRIBUTE
- Action is to set an attribute.
-
code
- The code associate with the action, in string form.
-
CODE
- Action is to execute some code.
-
CONSTANT
- Used when setting the action target, specifies that the target is
permanently set (i.e.
-
EXIT
-
-
HIDE
-
-
MESSAGE
- Action is to send a message.
-
name
- Message or Attribute name.
-
SHOW
-
-
target
- Action target, used when targetSource == CONSTANT.
-
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.
-
targetName
- Message target name, used when the action is to send a message.
-
targetSource
- Specifies how the target or the action is determined, is either
CONSTANT, TARGET, or ARG.
-
type
- Message type, used when the action is to send a message.
-
value
- Message arg or Attribute value, used when valueSource == CONSTANT.
-
valueSource
- Where is the arg/value from for setting an attribute,
is either CONSTANT, TARGET, or ARG.
-
OpAction()
- Constructs an instance where targetSource and valueSource are CONSTANT.
-
OpAction(int, AMRef, String, Object)
- Constructs an instance where targetSource and valueSource are CONSTANT.
-
clone()
- Returns a new copy of this action.
-
convertFromString(String)
- Returns a new instance of the type this converter converts, as
specified by the string given.
-
convertFromString(String, OpAction)
-
-
convertToString(Object, StringBuffer)
- Places a string representation of an instance of the type this
converter converts into a string buffer.
-
genInitCode(StringBuffer, String)
- Appends the initialization code for this operation filter into
the buffer given.
-
viewableAsString()
- Returns true if this type should be displayed in an editor.
ATTRIBUTE
public final static int ATTRIBUTE
- Action is to set an attribute.
MESSAGE
public final static int MESSAGE
- Action is to send a message.
CODE
public final static int CODE
- Action is to execute some code.
SHOW
public final static int SHOW
HIDE
public final static int HIDE
EXIT
public final static int EXIT
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
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.
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.
actionType
public int actionType
- Action type, ATTRIBUTE, MESSAGE, or CODE.
actionDetail
public int actionDetail
- Action detail, used by the action editor to keep track of simple actions.
target
public AMRef target
- Action target, used when targetSource == CONSTANT.
targetSource
public int targetSource
- Specifies how the target or the action is determined, is either
CONSTANT, TARGET, or ARG.
name
public String name
- Message or Attribute name.
value
public Object value
- Message arg or Attribute value, used when valueSource == CONSTANT.
valueSource
public int valueSource
- Where is the arg/value from for setting an attribute,
is either CONSTANT, TARGET, or ARG.
type
public String type
- Message type, used when the action is to send a message.
targetName
public String targetName
- Message target name, used when the action is to send a message.
code
public String code
- The code associate with the action, in string form.
OpAction
public OpAction()
- Constructs an instance where targetSource and valueSource are CONSTANT.
OpAction
public OpAction(int actionType,
AMRef target,
String name,
Object value)
- Constructs an instance where targetSource and valueSource are CONSTANT.
clone
public Object clone()
- Returns a new copy of this action.
- Overrides:
- clone in class Object
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
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
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
convertFromString
public void convertFromString(String s,
OpAction a)
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