java.lang.Object
org.scopemvc.controller.basic.BasicController
samples.filefind.SearchResultsController
- All Implemented Interfaces:
- org.scopemvc.core.Controller
- public class SearchResultsController
- extends org.scopemvc.controller.basic.BasicController
Model is passed into ctor. Expected to be a List of
FileProperties.
- Version:
- $Revision: 1.2 $ $Date: 2002/01/12 09:35:41 $
| Methods inherited from class org.scopemvc.controller.basic.BasicController |
addChild, bindModelToView, getChildren, getModel, getParent, getTopParent, getView, handleControl, handleControlException, hideView, hideView, passControlToParent, removeChild, setModel, setModelAndView, setParent, setView, showError, showView, showView, shutdown, startup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLOSE_RESULTS_ID
public static final java.lang.String CLOSE_RESULTS_ID
- See Also:
- Constant Field Values
SearchResultsController
public SearchResultsController(java.util.List inFileProperties)
doHandleControl
protected void doHandleControl(org.scopemvc.core.Control inControl)
throws org.scopemvc.core.ControlException
- Description copied from class:
org.scopemvc.controller.basic.BasicController
Override this to recognise Controls that this Controller can
handle. Any unhandled Controls are passed up the
chain of responsibility to parent Controllers.
protected void doHandleControl(Control inControl) throws ControlException {
if (inControl.matchesID(FOO_CONTROL_ID)) {
doFoo(inControl.getParameter());
} else if (inControl.matchesID(BAR_CONTROL_ID)) {
doBar(inControl.getParameter());
}
}
If something goes wrong when running some presentation logic,
throw a ControlException
which results in a call to BasicController.handleControlException(org.scopemvc.core.ControlException)>BasicController.handleControlException(org.scopemvc.core.ControlException) 55 ).
doCloseResults
private void doCloseResults()
throws org.scopemvc.core.ControlException