jbpm-form-modeler-request-dispatcher 6.0.0.CR4-Pre1

org.jbpm.formModeler.service.bb.mvc.components.handling
Class BeanHandler

java.lang.Object
  extended by org.jbpm.formModeler.service.bb.mvc.components.handling.BeanHandler
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RedirectionHandler, UIBeanHandler

public abstract class BeanHandler
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
BeanHandler()
           
 
Method Summary
 void actionVoid(CommandRequest request)
           
 void addFieldError(FactoryURL property, Exception e, Object propertyValue)
           
protected  void afterInvokeAction(CommandRequest request, String action)
           
protected  void beforeInvokeAction(CommandRequest request, String action)
           
protected  void calculateActionShortcuts()
           
 void clearFieldErrors()
           
 String getActionForShortcut(String shortcut)
          Get the action name for a given shortcut.
 String getActionName(String actionName)
          Get the action name for given action name.
 String getBeanName()
           
 Map<String,String> getExtraActionParams()
           
 List getFieldErrors()
           
 CommandResponse handle(CommandRequest request, String action)
           
 boolean hasError(String fieldName)
           
 boolean isEnabledForActionHandling()
           
 boolean isEnableDoubleClickControl()
           
 boolean isUseActionShortcuts()
           
 void setEnabledForActionHandling(boolean enabledForActionHandling)
           
 void setEnableDoubleClickControl(boolean enableDoubleClickControl)
           
 void setUseActionShortcuts(boolean useActionShortcuts)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanHandler

public BeanHandler()
Method Detail

getBeanName

public String getBeanName()

isUseActionShortcuts

public boolean isUseActionShortcuts()

setUseActionShortcuts

public void setUseActionShortcuts(boolean useActionShortcuts)

isEnableDoubleClickControl

public boolean isEnableDoubleClickControl()

setEnableDoubleClickControl

public void setEnableDoubleClickControl(boolean enableDoubleClickControl)

isEnabledForActionHandling

public boolean isEnabledForActionHandling()

setEnabledForActionHandling

public void setEnabledForActionHandling(boolean enabledForActionHandling)

start

@PostConstruct
public void start()
           throws Exception
Throws:
Exception

calculateActionShortcuts

protected void calculateActionShortcuts()

getActionName

public String getActionName(String actionName)
Get the action name for given action name. If there is a shortcut, it will be returned, otherwise, the same name applies.

Parameters:
actionName - action name
Returns:
the action name for given action name

getActionForShortcut

public String getActionForShortcut(String shortcut)
Get the action name for a given shortcut.

Parameters:
shortcut - the possible shortcut whose action name is to be obtained.
Returns:
the action name for the given shortcut if found, or the shortcut itself if not.

handle

public CommandResponse handle(CommandRequest request,
                              String action)
                       throws Exception
Throws:
Exception

beforeInvokeAction

protected void beforeInvokeAction(CommandRequest request,
                                  String action)
                           throws Exception
Throws:
Exception

afterInvokeAction

protected void afterInvokeAction(CommandRequest request,
                                 String action)
                          throws Exception
Throws:
Exception

addFieldError

public void addFieldError(FactoryURL property,
                          Exception e,
                          Object propertyValue)

clearFieldErrors

public void clearFieldErrors()

getFieldErrors

public List getFieldErrors()

hasError

public boolean hasError(String fieldName)

actionVoid

public void actionVoid(CommandRequest request)

getExtraActionParams

public Map<String,String> getExtraActionParams()

jbpm-form-modeler-request-dispatcher 6.0.0.CR4-Pre1

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.