public class HomeController extends LayoutController
HomeView
Modifier and Type | Class and Description |
---|---|
static class |
HomeController.HomeViews |
name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
context, NO_OP_CALLBACK, parentController
exportTemplateName
Constructor and Description |
---|
HomeController() |
HomeController(Controller controller,
String name,
Enum<?> viewType) |
Modifier and Type | Method and Description |
---|---|
protected void |
hideView(View view)
Must be implemented by the subclass to hide the view.
|
void |
init(Controller controller,
String name,
Enum<?> viewType) |
protected void |
renderView(View view)
Must be implemented by the subclass to render the view.
|
<V extends Enum<?>> |
showView(V viewType,
Callback<Boolean> onReadyCallback)
Directs the controller to display the specified view.
|
void |
updateModel()
Updates the model with information from this view.
|
addStartViewPopup, addView, asWidget, beforeHide, beforeShow, beforeViewChange, checkForErrors, clear, clearAllWarnings, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, isExportButtonActive, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showDefaultView, showExport, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView
addApplicationEventHandler, collectHistory, doReportExport, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getExportDataModel, getExportElementsFromView, getExportTemplateName, getHistoryToken, getParentController, getView, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, showView
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
showView
collectHistory, onHistoryEvent
public HomeController()
public HomeController(Controller controller, String name, Enum<?> viewType)
public void init(Controller controller, String name, Enum<?> viewType)
public void updateModel()
View
updateModel
in interface View
updateModel
in class LayoutController
View.updateModel()
protected void hideView(View view)
Controller
hideView
in class Controller
protected void renderView(View view)
Controller
renderView
in class Controller
public <V extends Enum<?>> void showView(V viewType, Callback<Boolean> onReadyCallback)
Controller
public enum SearchViews {
SIMPLE_SEARCH,
ADVANCED_SEARCH,
SEARCH_RESULTS
}
The implementing class must define a getView(V viewType) method that will cast the generic enum to the view
specific enum.showView
in class Controller
V
- view enum typeviewType
- enum value representing the view to showonReadyCallback
- the callback to invoke when the method has completed executionCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.