AccessKeyConditionpublic final class AccessKeyCondition extends EventBaseCondition A AccessKeyCondition generates a TimeInstance
everytime the associated key event occurs with the expected
accessKey value. |
Fields Summary |
---|
char | accessKeyThe key code which triggers the condition. |
Constructors Summary |
---|
public AccessKeyCondition(TimedElementSupport timedElement, boolean isBegin, long offset, char accessKey)
super(timedElement,
isBegin,
null,
timedElement.animationElement.ownerDocument,
SVGConstants.SVG_KEYDOWN_EVENT_TYPE,
offset);
this.accessKey = accessKey;
|
Methods Summary |
---|
public void | handleEvent(org.w3c.dom.events.Event evt)Implementation of the EventListener interface.
This is a simple filtered version of the handleEvent implementation
in EventBaseCondition .
if (((ModelEvent) evt).keyChar == accessKey) {
super.handleEvent(evt);
}
| protected java.lang.String | toStringTrait()Converts this AccessKeyCondition to a String trait.
StringBuffer sb = new StringBuffer();
sb.append("accessKey(");
sb.append(accessKey);
sb.append(')");
if (offset != 0) {
if (offset > 0) {
sb.append('+");
}
sb.append(offset / 1000f);
sb.append('s");
}
return sb.toString();
|
|