|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.jelly.TagSupport | +--org.apache.commons.jelly.tags.swt.OnEventTag
A tag which implements a Listener to allow events to be processed by Jelly scripts
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
OnEventTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
protected int |
getEventType(java.lang.String type)
Parses the given event type String and returns the SWT event type code |
org.eclipse.swt.widgets.Widget |
getParentWidget()
|
java.lang.String |
getType()
Returns the type. |
void |
handleEvent(org.eclipse.swt.widgets.Event event)
|
void |
setType(java.lang.String type)
Sets the type of the event listener to listen for. |
void |
setVar(java.lang.String var)
Sets the name of the variable to use to expose the event object when it is fired. |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OnEventTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.MissingAttributeException, org.apache.commons.jelly.JellyTagException
doTag
in class org.apache.commons.jelly.TagSupport
Tag.doTag(org.apache.commons.jelly.XMLOutput)
public void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent
in interface org.eclipse.swt.widgets.Listener
Listener.handleEvent(org.eclipse.swt.widgets.Event)
public org.eclipse.swt.widgets.Widget getParentWidget()
public void setVar(java.lang.String var)
public java.lang.String getType()
public void setType(java.lang.String type)
type
- The type of the event to listen forprotected int getEventType(java.lang.String type) throws org.apache.commons.jelly.JellyTagException
type
- is the String event type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |