multivalent.std.lens
Class SignalLens
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.std.lens.Lens
multivalent.std.lens.SignalLens
- All Implemented Interfaces:
- ContextListener
- public class SignalLens
- extends Lens
Scriptable lens for effects that just need a signal set.
- Version:
- $Revision: 1.2 $ $Date: 2003/06/02 05:52:10 $
- See Also:
SignalSpan
Method Summary |
boolean |
appearance(Context cx,
boolean all)
Effect: Context attributes and signals. |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Creates corresponding VFrame, and sets title and bounds, which are available for subclasses to tweak, |
ESISNode |
save()
Build up save data as ESIS tree, then write that out. |
Methods inherited from class multivalent.Behavior |
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, putPreference, redo, restoreChildren, semanticEventBefore, setName, toString, undo |
Methods inherited from class multivalent.VObject |
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ATTR_SIGNAL
public static final java.lang.String ATTR_SIGNAL
- See Also:
- Constant Field Values
ATTR_VALUE
public static final java.lang.String ATTR_VALUE
- See Also:
- Constant Field Values
signal
public java.lang.String signal
value
public java.lang.String value
SignalLens
public SignalLens()
appearance
public boolean appearance(Context cx,
boolean all)
- Description copied from class:
Lens
- Effect: Context attributes and signals.
- Specified by:
appearance
in interface ContextListener
- Overrides:
appearance
in class Lens
all
- all attributes or exclude those that are not inherited
- Returns:
- false so it composes with other lenses
- See Also:
ContextListener
,
SignalLens
save
public ESISNode save()
- Description copied from class:
Behavior
- Build up save data as ESIS tree, then write that out. Makes node with GI = behavior name, same attributes, and possibly some children.
Attributes are cloned, so if you want to stuff attributes from state, do that before
super.save()
.
Always have Behavior.ATTR_BEHAVIOR
from save (short) classname.
- Overrides:
save
in class Lens
restore
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
- Description copied from class:
Lens
- Creates corresponding VFrame, and sets title and bounds, which are available for subclasses to tweak,
- Overrides:
restore
in class Lens