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, updateWidgetData
getExportElementSubset, getExportFieldValue, getText, insert, isExportElement, setExportElement, setHTML, setText
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, updateModel
public 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 View
public void setViewEnum(Enum<?> viewEnum)
public void beforeShow(Callback<Boolean> onReadyCallback)
beforeShow
in interface View
public String getModelId()
public void setModelId(String modelId)
public boolean beforeHide()
beforeHide
in interface View
public Controller getController()
getController
in interface View
View.getController()
public String getName()
getName
in interface View
View.getName()
public void setController(Controller controller)
public void updateView()
public void updateView(DataModel m)
m
- public com.google.gwt.user.client.ui.Widget asWidget()
View
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
asWidget
in interface View
asWidget
in class com.google.gwt.user.client.ui.Widget
View.asWidget()
public String collectHistory(String historyStack)
collectHistory
in interface HistorySupport
HistorySupport.collectHistory(java.lang.String)
public void onHistoryEvent(String historyStack)
onHistoryEvent
in interface HistorySupport
HistorySupport.onHistoryEvent(java.lang.String)
public void collectBreadcrumbNames(List<String> names)
BreadcrumbSupport
collectBreadcrumbNames
in interface BreadcrumbSupport
BreadcrumbSupport.collectBreadcrumbNames(java.util.List)
public void updateMetadata(ModelDefinition modelDefinition)
public String toString()
toString
in class com.google.gwt.user.client.ui.UIObject
public boolean isExportButtonActive()
View
isExportButtonActive
in interface View
public void showExport(boolean show)
showExport
in interface View
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.