|
||||||||||
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.Panel com.google.gwt.user.client.ui.ComplexPanel org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection org.kuali.student.common.ui.client.configurable.mvc.views.SectionView
public abstract class SectionView
A view implementation of a section. A section view is used to add sections as views to a controller.
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 |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel |
---|
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget |
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets |
---|
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget |
Field Summary | |
---|---|
protected DataModel |
model
|
protected String |
modelId
|
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection |
---|
fields, isDirty, isValidationEnabled, layout, layoutController, sections |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
SectionView()
|
|
SectionView(Enum<?> viewEnum,
String viewName)
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection |
---|
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 |
Methods inherited from class org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel |
---|
getExportElementSubset, getExportFieldValue, getText, insert, isExportElement, setExportElement, setHTML, setText |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
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 |
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.mvc.View |
---|
clear, updateModel |
Field Detail |
---|
protected String modelId
protected DataModel model
Constructor Detail |
---|
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 breadcrumbMethod Detail |
---|
public void init(Enum<?> viewEnum, String viewName)
public 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 setName(String name)
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 addView(View view)
view
- public DataModel getModel()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |