Class DecisionTreeSelectCallBack
- java.lang.Object
-
- com.aquima.interactions.framework.container.dtree.DecisionTreeSelectCallBack
-
- All Implemented Interfaces:
ICallbackFunction
,Serializable
public class DecisionTreeSelectCallBack extends Object implements ICallbackFunction
Callback handler which registers a chosen decisiontree on the session for usage by a decisiontree runner.- Since:
- 5.1
- Author:
- F. van der Meer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DecisionTreeSelectCallBack(String treeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
void
handle(IElement pressedButton, IContainerEventContext context)
The handle method will be invoked after an event has occurred on the page.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
DecisionTreeSelectCallBack
protected DecisionTreeSelectCallBack(String treeName)
-
-
Method Detail
-
handle
public void handle(IElement pressedButton, IContainerEventContext context) throws Exception
Description copied from interface:ICallbackFunction
The handle method will be invoked after an event has occurred on the page. This callback function may choose to throw an exception when processing should stop due to an error, which will result in the flow being aborted and the last page to be shown again (for validation error messages or generic error messages set an error in the request scope) Use element.isFired() to check if the element caused the current event.- Specified by:
handle
in interfaceICallbackFunction
- Parameters:
pressedButton
- The element for which the callback function was registered.context
- The current context which will be equal to to context at the moment of registration.- Throws:
Exception
- This exception type may be thrown to indicate that the processing should stop due to an error.
-
-