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