public abstract class SectionView extends BaseSection implements View
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
protected DataModel |
model |
protected String |
modelId |
fields, isDirty, isValidationEnabled, layout, layoutController, sections| Constructor and Description |
|---|
SectionView() |
SectionView(Enum<?> viewEnum,
String viewName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addView(View view)
Add a view as a widget to this section
|
com.google.gwt.user.client.ui.Widget |
asWidget()
Get the attachable widget which represents this view
|
boolean |
beforeHide()
Called by the controller before the view is hidden to allow the view to perform cleanup or request confirmation from
the user, etc.
|
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 |
collectBreadcrumbNames(List<String> names)
Adds a human readable name(s) to the list passed in for use in the breadcrumb
|
String |
collectHistory(String historyStack) |
Controller |
getController()
Returns the controller associated with the view
|
DataModel |
getModel() |
String |
getModelId() |
String |
getName()
Returns the view's name
|
Enum<?> |
getViewEnum()
This method gets view name enumeration
|
void |
init(Enum<?> viewEnum,
String viewName) |
boolean |
isExportButtonActive()
This method needs to be implemented only on views that want the export button to display.
|
void |
onHistoryEvent(String historyStack) |
void |
setController(Controller controller) |
void |
setModelId(String modelId) |
void |
setName(String name) |
void |
setViewEnum(Enum<?> viewEnum) |
void |
showExport(boolean show) |
String |
toString() |
void |
updateMetadata(ModelDefinition modelDefinition) |
void |
updateView()
Update the fields on the screen with the model received back from requestModel on the parent controller
|
void |
updateView(DataModel m)
Force an update of fields on this section with the model passed in
|
add, addField, addSection, addSection, addStyleName, addWidget, clearValidationErrors, clearValidationWarnings, enableField, enableValidation, ensureDirtyFlagPath, getField, getFields, getLayout, getLayoutController, getSection, getSections, getUnnestedFields, isDirty, isValidationEnabled, processValidationResults, processValidationResults, progressiveEnableAndRequireFields, progressiveEnableFields, progressiveRequireFields, removeField, removeField, removeSection, removeSection, removeWidget, removeWidget, resetDirtyFlags, resetFieldInteractionFlags, setFieldHasHadFocusFlags, setHelp, setInstructions, setIsDirty, setLayoutController, setRequired, setSectionId, setStyleName, updateModel, updateWidgetDatagetExportElementSubset, getExportFieldValue, getText, insert, isExportElement, setExportElement, setHTML, setTextadd, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclear, updateModelpublic SectionView()
public SectionView(Enum<?> viewEnum, String viewName)
viewEnum - Enumeration of this view - id used for navigation, history, and showing a viewviewName - Name of this view - what this view is called in the breadcrumbpublic Enum<?> getViewEnum()
getViewEnum in interface Viewpublic void setViewEnum(Enum<?> viewEnum)
public void beforeShow(Callback<Boolean> onReadyCallback)
beforeShow in interface Viewpublic String getModelId()
public void setModelId(String modelId)
public boolean beforeHide()
beforeHide in interface Viewpublic Controller getController()
getController in interface ViewView.getController()public String getName()
getName in interface ViewView.getName()public void setController(Controller controller)
public void updateView()
public void updateView(DataModel m)
m - public com.google.gwt.user.client.ui.Widget asWidget()
ViewasWidget in interface com.google.gwt.user.client.ui.IsWidgetasWidget in interface ViewasWidget in class com.google.gwt.user.client.ui.WidgetView.asWidget()public String collectHistory(String historyStack)
collectHistory in interface HistorySupportHistorySupport.collectHistory(java.lang.String)public void onHistoryEvent(String historyStack)
onHistoryEvent in interface HistorySupportHistorySupport.onHistoryEvent(java.lang.String)public void collectBreadcrumbNames(List<String> names)
BreadcrumbSupportcollectBreadcrumbNames in interface BreadcrumbSupportBreadcrumbSupport.collectBreadcrumbNames(java.util.List)public void updateMetadata(ModelDefinition modelDefinition)
public String toString()
toString in class com.google.gwt.user.client.ui.UIObjectpublic boolean isExportButtonActive()
ViewisExportButtonActive in interface Viewpublic void showExport(boolean show)
showExport in interface ViewCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.