org.sandev.ui.util
Class ActionDispatcher

java.lang.Object
  extended byorg.sandev.ui.util.ActionDispatcher

public class ActionDispatcher
extends java.lang.Object

Utility class for dispatching actions based on their name.


Field Summary
static java.lang.Class[] ACTIONSIG
          The standard method signature for an action handler.
static java.lang.Class[] ACTIVESIG
          The standard method signature for an activity test method.
 
Constructor Summary
ActionDispatcher()
           
 
Method Summary
static org.sandev.basics.util.UIFormContext reflectiveActionCall(java.lang.String actionName, org.sandev.basics.util.UIFormContext uifc, org.sandev.basics.util.UserWorkLog uwl, org.sandev.basics.util.UIFormOwner owner, java.lang.Object handler)
          Call the specified action reflectively.
static boolean reflectiveActionTest(java.lang.String actionName, boolean defaultVal, org.sandev.basics.util.UIFormContext uifc, org.sandev.basics.util.UIFormOwner owner, java.lang.Object handler)
          Call the specified action test reflectively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTIVESIG

public static final java.lang.Class[] ACTIVESIG
The standard method signature for an activity test method.


ACTIONSIG

public static final java.lang.Class[] ACTIONSIG
The standard method signature for an action handler.

Constructor Detail

ActionDispatcher

public ActionDispatcher()
Method Detail

reflectiveActionTest

public static boolean reflectiveActionTest(java.lang.String actionName,
                                           boolean defaultVal,
                                           org.sandev.basics.util.UIFormContext uifc,
                                           org.sandev.basics.util.UIFormOwner owner,
                                           java.lang.Object handler)
Call the specified action test reflectively. If no activity test method is found then return the default. If any other error occurs then log it and return false.


reflectiveActionCall

public static org.sandev.basics.util.UIFormContext reflectiveActionCall(java.lang.String actionName,
                                                                        org.sandev.basics.util.UIFormContext uifc,
                                                                        org.sandev.basics.util.UserWorkLog uwl,
                                                                        org.sandev.basics.util.UIFormOwner owner,
                                                                        java.lang.Object handler)
                                                                 throws org.sandev.basics.util.UIFormManagerException
Call the specified action reflectively. Throw if the action is not found.

Throws:
org.sandev.basics.util.UIFormManagerException