net.sf.ecl.datepicker.util
Class WidgetHelper

java.lang.Object
  extended by net.sf.ecl.datepicker.util.WidgetHelper

public final class WidgetHelper
extends Object

The utility class that provides miscellaneous Widgetoperations.


Method Summary
static void hook(Widget widget, int[] events, Listener listener)
          Hooks the given widget to listen events of the given types.
static void hook(Widget widget, int event, Listener listener)
          Hooks the given widget to listen event of the given type.
static boolean isVisualized(Widget widget)
           
static void unhook(Widget widget, int[] events, Listener listener)
          Unhooks the given widget for the given event types.
static void unhook(Widget widget, int event, Listener listener)
          Unhooks the given widget for the given event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hook

public static void hook(Widget widget,
                        int event,
                        Listener listener)
Hooks the given widget to listen event of the given type. The widget will be automatically unhooked when disposed.

Parameters:
widget - the widget
event - the event type
listener - the event listener

hook

public static void hook(Widget widget,
                        int[] events,
                        Listener listener)
Hooks the given widget to listen events of the given types. The widget will be automatically unhooked when disposed.

Parameters:
widget - the widget
events - the event types
listener - the event listener

isVisualized

public static boolean isVisualized(Widget widget)
Parameters:
widget -
Returns:

unhook

public static void unhook(Widget widget,
                          int event,
                          Listener listener)
Unhooks the given widget for the given event type.

Parameters:
widget - the widget
event - the event type
listener - the event listener

unhook

public static void unhook(Widget widget,
                          int[] events,
                          Listener listener)
Unhooks the given widget for the given event types.

Parameters:
widget - the widget
events - the event types
listener - the event listener