org.apache.commons.jelly.tags.swing
Class WindowListenerTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.swing.WindowListenerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class WindowListenerTag
extends org.apache.commons.jelly.TagSupport

Creates a WindowListener which is attached to its parent window control which will invoke named Jelly scripts as window events are fired, or will invoke its body if there is no script specified for the named event type.

Version:
$Revision: 155420 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
WindowListenerTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
protected  void invokeScript(org.apache.commons.jelly.XMLOutput output, java.awt.event.WindowEvent event, org.apache.commons.jelly.Script script)
           
 void setActivated(org.apache.commons.jelly.Script activated)
          Sets the Script to be executed when the window is activated.
 void setClosed(org.apache.commons.jelly.Script closed)
          Sets the Script to be executed when the window is closed.
 void setClosing(org.apache.commons.jelly.Script closing)
          Sets the Script to be executed when the window is closing.
 void setDeactivated(org.apache.commons.jelly.Script deactivated)
          Sets the Script to be executed when the window is deactivated.
 void setDeiconified(org.apache.commons.jelly.Script deiconified)
          Sets the Script to be executed when the window is deiconified.
 void setIconified(org.apache.commons.jelly.Script iconified)
          Sets the Script to be executed when the window is iconified.
 void setOpened(org.apache.commons.jelly.Script opened)
          Sets the Script to be executed when the window is opened.
 void setVar(java.lang.String var)
          Sets the name of the variable to use to expose the Event object
 
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

WindowListenerTag

public WindowListenerTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException

setVar

public void setVar(java.lang.String var)
Sets the name of the variable to use to expose the Event object


setActivated

public void setActivated(org.apache.commons.jelly.Script activated)
Sets the Script to be executed when the window is activated.


setClosed

public void setClosed(org.apache.commons.jelly.Script closed)
Sets the Script to be executed when the window is closed.


setClosing

public void setClosing(org.apache.commons.jelly.Script closing)
Sets the Script to be executed when the window is closing.


setDeactivated

public void setDeactivated(org.apache.commons.jelly.Script deactivated)
Sets the Script to be executed when the window is deactivated.


setDeiconified

public void setDeiconified(org.apache.commons.jelly.Script deiconified)
Sets the Script to be executed when the window is deiconified.


setIconified

public void setIconified(org.apache.commons.jelly.Script iconified)
Sets the Script to be executed when the window is iconified.


setOpened

public void setOpened(org.apache.commons.jelly.Script opened)
Sets the Script to be executed when the window is opened.


invokeScript

protected void invokeScript(org.apache.commons.jelly.XMLOutput output,
                            java.awt.event.WindowEvent event,
                            org.apache.commons.jelly.Script script)


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.