org.kuali.student.common.ui.client.configurable.mvc.layouts
Class MenuEditableSectionController

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.Controller
                  extended by org.kuali.student.common.ui.client.configurable.mvc.LayoutController
                      extended by org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
                          extended by org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuEditableSectionController
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ContentNavLayoutController, DocumentLayoutController, ViewLayoutController, BreadcrumbSupport, HistorySupport, View
Direct Known Subclasses:
CourseProposalController

public class MenuEditableSectionController
extends MenuSectionController


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
private  Callback<Boolean> editLinkCallback
           
private  List<KSButton> editLinks
           
private  boolean editMode
           
private  Map<Enum<?>,Enum<?>> editToReadOnlyMap
           
private  boolean isEditable
           
private  Map<Enum<?>,Enum<?>> readOnlyToEditMap
           
private  List<View> readOnlyViews
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
menuViewMap, viewMenuItemMap
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
defaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
 
Fields inherited from class org.kuali.student.common.ui.client.mvc.Controller
context, NO_OP_CALLBACK, parentController
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MenuEditableSectionController(String controllerId)
           
 
Method Summary
 void addCommonEditButton(String parentMenu, KSButton button)
           
 void addMenuItem(String parentMenu, View readOnlyView, View editView)
           
 void attachEditLink(View v)
           
private  void createEditLink(View v)
           
private  void detachEditLinks()
           
 KSButton generateEditLink(View v)
           
 void setEditable(boolean editable)
           
 void setEditMode(boolean editMode)
           
<V extends Enum<?>>
void
showView(V viewType, Callback<Boolean> onReadyCallback)
          Directs the controller to display the specified view.
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.layouts.MenuSectionController
addButtonForView, addCommonButton, addCommonButton, addContentWidget, addMenu, addMenuItem, addSpecialMenuItem, addStartMenuItem, hideView, removeMenuNavigation, renderView, revealMenuItems, setContentInfo, setContentTitle, setContentWarning, setSideBarWidget, showNextViewOnMenu, showPrint, updateModel
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController
addStartViewPopup, addView, asWidget, beforeHide, beforeShow, beforeViewChange, checkForErrors, clear, collectBreadcrumbNames, findParentLayout, getController, getDefaultView, getName, getStartPopup, getStartPopupView, getView, getViewEnum, getViewEnumValue, getViewsEnum, isStartViewShowing, isValid, isValid, setController, setDefaultView, setName, setViewEnum, showDefaultView, showFirstView, showStartPopup, updateModelFromCurrentView, updateModelFromView
 
Methods inherited from class org.kuali.student.common.ui.client.mvc.Controller
addApplicationEventHandler, clearViewContext, collectHistory, findController, fireApplicationEvent, fireNavEvents, fireNavigationEvent, getControllerId, getCurrentView, getCurrentViewEnum, getDefaultModelId, getHistoryToken, getParentController, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, showView
 
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
 
Methods inherited from interface org.kuali.student.common.ui.client.configurable.mvc.layouts.ViewLayoutController
addStartViewPopup, addView, setDefaultView, showView
 
Methods inherited from interface org.kuali.student.common.ui.client.mvc.history.HistorySupport
collectHistory, onHistoryEvent
 

Field Detail

editMode

private boolean editMode

isEditable

private boolean isEditable

readOnlyToEditMap

private Map<Enum<?>,Enum<?>> readOnlyToEditMap

editToReadOnlyMap

private Map<Enum<?>,Enum<?>> editToReadOnlyMap

readOnlyViews

private List<View> readOnlyViews

editLinks

private List<KSButton> editLinks

editLinkCallback

private Callback<Boolean> editLinkCallback
Constructor Detail

MenuEditableSectionController

public MenuEditableSectionController(String controllerId)
Method Detail

addMenuItem

public void addMenuItem(String parentMenu,
                        View readOnlyView,
                        View editView)

attachEditLink

public void attachEditLink(View v)

generateEditLink

public KSButton generateEditLink(View v)

createEditLink

private void createEditLink(View v)

detachEditLinks

private void detachEditLinks()

showView

public <V extends Enum<?>> void showView(V viewType,
                                         Callback<Boolean> onReadyCallback)
Description copied from class: Controller
Directs the controller to display the specified view. The parameter must be an enum value, based on an enum defined in the controller implementation. For example, a "Search" controller might have an enumeration of: 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.

Overrides:
showView in class Controller
Type Parameters:
V - view enum type
Parameters:
viewType - enum value representing the view to show
onReadyCallback - the callback to invoke when the method has completed execution

setEditable

public void setEditable(boolean editable)

setEditMode

public void setEditMode(boolean editMode)

addCommonEditButton

public void addCommonEditButton(String parentMenu,
                                KSButton button)


Copyright © 2010 The Kuali Foundation. All rights reserved.