org.kuali.student.common.ui.client.mvc
Class DelegatingViewComposite

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.kuali.student.common.ui.client.mvc.ViewComposite
                  extended by org.kuali.student.common.ui.client.mvc.DelegatingViewComposite
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, BreadcrumbSupport, HistorySupport, View, RequiresAuthorization

public class DelegatingViewComposite
extends ViewComposite
implements RequiresAuthorization

This is a simple view composite that delegates all view operations to nested controller. Use of this view allows you to nest controllers in the view hierarchy.

Author:
Kuali Student Team

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
(package private)  Controller childController
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
DelegatingViewComposite(Controller parentController, Controller childController, Enum<?> viewType)
           
 
Method Summary
 boolean beforeHide()
          Delegates beforeHide to the nested controllers current view
 void beforeShow(Callback<Boolean> onReadyCallback)
          Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be done.
 void checkAuthorization(PermissionType permissionType, AuthorizationCallback callback)
           
 void clear()
          Used to clear view
 void collectBreadcrumbNames(List<String> names)
           
 String collectHistory(String historyStack)
           
 Controller getChildController()
           
 boolean isAuthorizationRequired()
           
 void onHistoryEvent(String historyStack)
           
 void setAuthorizationRequired(boolean required)
           
 void setChildController(Controller controller)
           
 
Methods inherited from class org.kuali.student.common.ui.client.mvc.ViewComposite
asWidget, getController, getName, getViewEnum, updateModel
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

childController

Controller childController
Constructor Detail

DelegatingViewComposite

public DelegatingViewComposite(Controller parentController,
                               Controller childController,
                               Enum<?> viewType)
Parameters:
controller -
name -
Method Detail

beforeHide

public boolean beforeHide()
Delegates beforeHide to the nested controllers current view

Specified by:
beforeHide in interface View
Overrides:
beforeHide in class ViewComposite
Returns:
true if the view can be hidden, or false to cancel the action.
See Also:
View.beforeHide()

beforeShow

public void beforeShow(Callback<Boolean> onReadyCallback)
Description copied from class: ViewComposite
Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be done.

Specified by:
beforeShow in interface View
Overrides:
beforeShow in class ViewComposite
See Also:
org.kuali.student.common.ui.client.mvc.View#beforeShow()

getChildController

public Controller getChildController()

setChildController

public void setChildController(Controller controller)

collectHistory

public String collectHistory(String historyStack)
Specified by:
collectHistory in interface HistorySupport
Overrides:
collectHistory in class ViewComposite

onHistoryEvent

public void onHistoryEvent(String historyStack)
Specified by:
onHistoryEvent in interface HistorySupport
Overrides:
onHistoryEvent in class ViewComposite

clear

public void clear()
Description copied from class: ViewComposite
Used to clear view

Specified by:
clear in interface View
Overrides:
clear in class ViewComposite
See Also:
View.clear()

checkAuthorization

public void checkAuthorization(PermissionType permissionType,
                               AuthorizationCallback callback)
Specified by:
checkAuthorization in interface RequiresAuthorization

isAuthorizationRequired

public boolean isAuthorizationRequired()
Specified by:
isAuthorizationRequired in interface RequiresAuthorization

setAuthorizationRequired

public void setAuthorizationRequired(boolean required)
Specified by:
setAuthorizationRequired in interface RequiresAuthorization

collectBreadcrumbNames

public void collectBreadcrumbNames(List<String> names)
Specified by:
collectBreadcrumbNames in interface BreadcrumbSupport
Overrides:
collectBreadcrumbNames in class ViewComposite


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.