adapforms.runtime.events
Class EventUtils

java.lang.Object
  extended by adapforms.runtime.events.EventUtils

public class EventUtils
extends java.lang.Object

Provides short-hand tools for handling framework events.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Nested Class Summary
static interface EventUtils.HookInvoker
          Item capable of invoking an event on a supplied FormHook.
 
Constructor Summary
EventUtils()
           
 
Method Summary
static void invokeHooks(FormInstance instance, FormPath path, EventUtils.HookInvoker invoker)
          Invoke the relevant event(s) on all subscribing hooks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventUtils

public EventUtils()
Method Detail

invokeHooks

public static void invokeHooks(FormInstance instance,
                               FormPath path,
                               EventUtils.HookInvoker invoker)
Invoke the relevant event(s) on all subscribing hooks.

Parameters:
instance - Form instance from which the event originates
path - Path to element which has subscribers
invoker - The actual event invoker