|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.user.client.ui.UIObject com.google.gwt.user.client.ui.Widget com.google.gwt.user.client.ui.Composite org.kuali.student.common.ui.client.mvc.Controller org.kuali.student.common.ui.client.configurable.mvc.LayoutController org.kuali.student.common.ui.client.configurable.mvc.layouts.TabMenuController
public class TabMenuController
A layout controller which provides tabs for the views added through the addTab method. If the user clicks on a tab the view is swapped.
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 | |
---|---|
protected KSDocumentHeader |
header
|
protected com.google.gwt.user.client.ui.FlowPanel |
layout
|
protected KSTabPanel |
tabPanel
|
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 |
Fields inherited from interface org.kuali.student.common.ui.client.reporting.ReportExport |
---|
exportTemplateName |
Constructor Summary | |
---|---|
TabMenuController(String controllerId)
|
Method Summary | |
---|---|
void |
addContentWidget(com.google.gwt.user.client.ui.Widget w)
|
void |
addTab(View view,
String tabName)
|
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. |
protected void |
renderView(View view)
Must be implemented by the subclass to render the view. |
void |
setBasicTitle(String titleText)
Do not use in combination with setContentTitle |
void |
setContentInfo(String info)
|
void |
setContentTitle(String title)
|
void |
setContentWarning(String info)
|
void |
showDefaultView(Callback<Boolean> onReadyCallback)
Shows the default view. |
void |
showExport(boolean show)
|
void |
showPrint(boolean show)
|
void |
updateModel()
This version of updateModel only updates from the currentView (since only one view is shown/accessed at a time). |
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.LayoutController |
---|
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, showFirstView, showStartPopup, showWarnings, updateModelFromCurrentView, updateModelFromView |
Methods inherited from class org.kuali.student.common.ui.client.mvc.Controller |
---|
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 |
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 |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, 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, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, 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 |
---|
showView |
Methods inherited from interface org.kuali.student.common.ui.client.mvc.history.HistorySupport |
---|
collectHistory, onHistoryEvent |
Field Detail |
---|
protected KSTabPanel tabPanel
protected com.google.gwt.user.client.ui.FlowPanel layout
protected KSDocumentHeader header
Constructor Detail |
---|
public TabMenuController(String controllerId)
Method Detail |
---|
public void setBasicTitle(String titleText)
public void setContentTitle(String title)
public void addContentWidget(com.google.gwt.user.client.ui.Widget w)
public void setContentInfo(String info)
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 updateModel()
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 void showDefaultView(Callback<Boolean> onReadyCallback)
Controller
showDefaultView
in class LayoutController
public void addTab(View view, String tabName)
public List<ExportElement> getExportElementsFromView()
ReportExport
getExportElementsFromView
in interface ReportExport
getExportElementsFromView
in class Controller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |