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, viewTypecontext, NO_OP_CALLBACK, parentControllerexportTemplateName| 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, updateModelFromViewaddApplicationEventHandler, 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, showViewgetWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, 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, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddStartViewPopup, addView, setDefaultView, showViewcollectHistory, onHistoryEventprotected 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()
ContentNavLayoutControllerremoveMenuNavigation in interface ContentNavLayoutControllerpublic void setContentTitle(String title)
setContentTitle in interface DocumentLayoutControllerpublic void addContentWidget(com.google.gwt.user.client.ui.Widget w)
addContentWidget in interface DocumentLayoutControllerpublic 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 DocumentLayoutControllerpublic void setContentWarning(String info)
public void showPrint(boolean show)
public void showExport(boolean show)
showExport in interface ViewshowExport in class LayoutControllerpublic void addCommonButton(String parentMenu, KSButton button)
ContentNavLayoutControllerpublic void addCommonButton(String parentMenu, KSButton button, List<Enum<?>> excludedViews)
ContentNavLayoutControllerpublic void showNextViewOnMenu()
public void addButtonForView(Enum<?> viewType, KSButton button)
ContentNavLayoutControlleraddButtonForView in interface ContentNavLayoutControllerpublic void addTopButtonForView(Enum<?> viewType, KSButton button)
protected void hideView(View view)
ControllerhideView in class Controllerprotected void renderView(View view)
ControllerrenderView in class Controllerpublic void addMenu(String title)
addMenu in interface ContentNavLayoutControllerpublic void addStartMenuItem(String parentMenu, View view)
public void revealMenuItems()
public void addMenuItem(String parentMenu, View view)
addMenuItem in interface ContentNavLayoutControllerpublic void addSpecialMenuItem(View view, String description)
addSpecialMenuItem in interface ContentNavLayoutControllerpublic void updateModel()
updateModel in interface ViewupdateModel in class LayoutControllerView.updateModel()public List<ExportElement> getExportElementsFromView()
ReportExportgetExportElementsFromView in interface ReportExportgetExportElementsFromView in class Controllerpublic void addStyleName(String style)
addStyleName in class com.google.gwt.user.client.ui.UIObjectCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.