fi.hut.tml.xsmiles.mlfc.xbl2
Class ScriptHandler

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xbl2.ScriptHandler

public class ScriptHandler
extends java.lang.Object

Class for handling scripts. Scripts are added to ScriptHandler with an XBLHandler parameter which includes information about

Author:
Juho Vuohelainen

Nested Class Summary
 class ScriptHandler.EventHandler
          Inner class for listening events.
 
Constructor Summary
ScriptHandler()
           
 
Method Summary
 void addHandler(XBLHandler xh)
          Takes an XBLHandler object and sets its event listener.
 java.util.LinkedList getHandlers(XSmilesElementImpl element)
          Returns all handlers associated with an element in a LinkedList.
 void removeEventHandlers()
          This method removes all the event handlers from the bound elements for the binding that owns this ScriptHandler.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScriptHandler

public ScriptHandler()
Method Detail

addHandler

public void addHandler(XBLHandler xh)
Takes an XBLHandler object and sets its event listener.

Parameters:
xh - XBLHandler object that contains the script and its associated event and element.

getHandlers

public java.util.LinkedList getHandlers(XSmilesElementImpl element)
Returns all handlers associated with an element in a LinkedList. The returned XBLHandlers are NOT clones of originals and modifying them will affect the behaviour of the application.

Parameters:
element - XSmilesElementImpl element whose handlers are to be returned
Returns:
LinkedList of XBLHandlers

removeEventHandlers

public void removeEventHandlers()
This method removes all the event handlers from the bound elements for the binding that owns this ScriptHandler.


toString

public java.lang.String toString()


X-Smiles 1.2