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

Class sunsoft.jws.visual.rt.type.OpFilter

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

public class OpFilter
extends Converter
implements Cloneable
Stores the conditions under which an operation should be activated. The parameters stored here are compared with the fields in events and messages to determine a match. This class also simultaneously acts as its own converter.
See Also:
Op, Message, Event

Variable Index

 o clickCount
Event filter on clickCount.
 o EVENT
The operation should match against an event.
 o filterType
Filter type, either EVENT or MESSAGE.
 o id
Event filter on id.
 o key
Event filter on key.
 o LEFT_MOUSE
 o MESSAGE
The operation should match against a message.
 o MIDDLE_MOUSE
 o modifiers
Event filter on modifiers.
 o name
Message filter on name.
 o RIGHT_MOUSE
 o target
AttributeManager object that should be the target of a matching event or message.
 o targetName
Message filter on target name.
 o targetRef
Target reference (left in for compatibility reasons.)
 o type
Message filter on type.

Constructor Index

 o OpFilter()
Constructs a new instance.
 o OpFilter(AttributeManager, int)
Constructs a new instance that filters on an event.
 o OpFilter(AttributeManager, int, int, int, int)
Constructs a new instance that filters on an event.
 o OpFilter(AttributeManager, String)
Constructs a new instance that filters on a message.
 o OpFilter(AttributeManager, String, String, String)
Constructs a new instance that filters on a message.

Method Index

 o clone()
Returns a new copy of this filter.
 o convertFromString(String)
Returns a new instance of the type this converter converts, as specified by the string given.
 o convertFromString(String, OpFilter)
 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 EVENT
  public final static int EVENT
The operation should match against an event.
 o MESSAGE
  public final static int MESSAGE
The operation should match against a message.
 o LEFT_MOUSE
  public final static int LEFT_MOUSE
 o MIDDLE_MOUSE
  public final static int MIDDLE_MOUSE
 o RIGHT_MOUSE
  public final static int RIGHT_MOUSE
 o filterType
  public int filterType
Filter type, either EVENT or MESSAGE.
 o target
  public AttributeManager target
AttributeManager object that should be the target of a matching event or message.
 o targetRef
  public AMRef targetRef
Target reference (left in for compatibility reasons.)
 o name
  public String name
Message filter on name.
See Also:
name
 o type
  public String type
Message filter on type.
See Also:
type
 o targetName
  public String targetName
Message filter on target name.
See Also:
targetName
 o id
  public int id
Event filter on id.
See Also:
id
 o key
  public int key
Event filter on key.
See Also:
key
 o modifiers
  public int modifiers
Event filter on modifiers.
See Also:
modifiers
 o clickCount
  public int clickCount
Event filter on clickCount.
See Also:
clickCount

Constructors

 o OpFilter
  public OpFilter()
Constructs a new instance.
 o OpFilter
  public OpFilter(AttributeManager target,
                  String name)
Constructs a new instance that filters on a message.
 o OpFilter
  public OpFilter(AttributeManager target,
                  String name,
                  String type,
                  String targetName)
Constructs a new instance that filters on a message.
 o OpFilter
  public OpFilter(AttributeManager target,
                  int id)
Constructs a new instance that filters on an event.
 o OpFilter
  public OpFilter(AttributeManager target,
                  int id,
                  int key,
                  int modifiers,
                  int clickCount)
Constructs a new instance that filters on an event.

Methods

 o clone
  public Object clone()
Returns a new copy of this filter.
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,
                                OpFilter f)
 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