public class MenuSectionController extends LayoutController implements ContentNavLayoutController
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.user.client.ui.VerticalPanel |
leftPanel |
protected KSBlockMenuImpl |
menu |
protected Map<String,List<View>> |
menuViewMap |
protected com.google.gwt.user.client.ui.FlowPanel |
rightPanel |
protected List<KSMenuItemData> |
topLevelMenuItems |
protected Map<Enum<?>,KSMenuItemData> |
viewMenuItemMap |
defaultView, name, startPopupView, startViewWindow, viewEnumMap, viewMap, viewType
context, NO_OP_CALLBACK, parentController
exportTemplateName
Constructor and Description |
---|
MenuSectionController() |
Modifier and Type | Method and Description |
---|---|
void |
addButtonForView(Enum<?> viewType,
KSButton button)
Adds a button specific to a particular view
|
void |
addCommonButton(String parentMenu,
KSButton button)
Adds a button which will appear on every view underneath the scope of the
parent menu item
|
void |
addCommonButton(String parentMenu,
KSButton button,
List<Enum<?>> excludedViews)
Adds a button which will appear on every view underneath the scope of the of the parent
menu item EXCEPT not in the views specified in excludedViews
|
void |
addContentWidget(com.google.gwt.user.client.ui.Widget w) |
void |
addInfoWidget(com.google.gwt.user.client.ui.Widget w) |
void |
addMenu(String title) |
void |
addMenuItem(String parentMenu,
View view)
Adds a view whose view name will appear as a link on the menu, the view will be shown when this item is clicked.
|
void |
addSpecialMenuItem(View view,
String description)
This adds a special item that is a top level menu item to the menu, this will appear directly below other
menus that are currently added to the menu.
|
void |
addStartMenuItem(String parentMenu,
View view)
Adds a view whose view the menu at first.
|
void |
addStyleName(String style) |
void |
addTopButtonForView(Enum<?> viewType,
KSButton button) |
List<ExportElement> |
getExportElementsFromView()
This method returns array of ExportElements which represent the elements on the view that must be exported
|
protected void |
hideView(View view)
Must be implemented by the subclass to hide the view.
|
void |
removeMenuNavigation()
Removes the navigation from the ui
|
protected void |
renderView(View view)
Must be implemented by the subclass to render the view.
|
void |
revealMenuItems() |
void |
setContentInfo(String info) |
void |
setContentTitle(String title) |
void |
setContentWarning(String info) |
void |
setSideBarWidget(com.google.gwt.user.client.ui.Widget w) |
void |
showExport(boolean show) |
void |
showNextViewOnMenu() |
void |
showPrint(boolean show) |
void |
updateModel()
This version of updateModel only traverses views that can be accessed through its menu.
|
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, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView
addApplicationEventHandler, collectHistory, doReportExport, findController, fireApplicationEvent, fireNavigationEvent, getCurrentView, getCurrentViewEnum, getDefaultModelId, getExportDataModel, getExportTemplateName, getHistoryToken, getParentController, getView, getViewContext, onHistoryEvent, registerModel, requestModel, requestModel, requestModel, resetCurrentView, setCurrentViewEnum, setDefaultModelId, setParentController, setViewContext, showView, 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, 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
addStartViewPopup, addView, setDefaultView, showView
collectHistory, onHistoryEvent
protected KSBlockMenuImpl menu
protected List<KSMenuItemData> topLevelMenuItems
protected Map<String,List<View>> menuViewMap
protected Map<Enum<?>,KSMenuItemData> viewMenuItemMap
protected com.google.gwt.user.client.ui.FlowPanel rightPanel
protected com.google.gwt.user.client.ui.VerticalPanel leftPanel
public MenuSectionController()
public void removeMenuNavigation()
ContentNavLayoutController
removeMenuNavigation
in interface ContentNavLayoutController
public void setContentTitle(String title)
setContentTitle
in interface DocumentLayoutController
public void addContentWidget(com.google.gwt.user.client.ui.Widget w)
addContentWidget
in interface DocumentLayoutController
public void addInfoWidget(com.google.gwt.user.client.ui.Widget w)
public void setSideBarWidget(com.google.gwt.user.client.ui.Widget w)
public void setContentInfo(String info)
setContentInfo
in interface DocumentLayoutController
public void setContentWarning(String info)
public void showPrint(boolean show)
public void showExport(boolean show)
showExport
in interface View
showExport
in class LayoutController
public void addCommonButton(String parentMenu, KSButton button)
ContentNavLayoutController
public void addCommonButton(String parentMenu, KSButton button, List<Enum<?>> excludedViews)
ContentNavLayoutController
public void showNextViewOnMenu()
public void addButtonForView(Enum<?> viewType, KSButton button)
ContentNavLayoutController
addButtonForView
in interface ContentNavLayoutController
public void addTopButtonForView(Enum<?> viewType, KSButton button)
protected void hideView(View view)
Controller
hideView
in class Controller
protected void renderView(View view)
Controller
renderView
in class Controller
public void addMenu(String title)
addMenu
in interface ContentNavLayoutController
public void addStartMenuItem(String parentMenu, View view)
public void revealMenuItems()
public void addMenuItem(String parentMenu, View view)
addMenuItem
in interface ContentNavLayoutController
public void addSpecialMenuItem(View view, String description)
addSpecialMenuItem
in interface ContentNavLayoutController
public void updateModel()
updateModel
in interface View
updateModel
in class LayoutController
View.updateModel()
public List<ExportElement> getExportElementsFromView()
ReportExport
getExportElementsFromView
in interface ReportExport
getExportElementsFromView
in class Controller
public void addStyleName(String style)
addStyleName
in class com.google.gwt.user.client.ui.UIObject
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.