|
||||||||||
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 |
Field Summary | |
---|---|
protected DataModel |
model
|
protected String |
modelId
|
private Enum<?> |
viewEnum
|
private String |
viewName
|
private List<View> |
views
|
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(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 |
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)
|
String |
toString()
|
void |
updateMetadata(ModelDefinition modelDefinition)
|
private void |
updateMetadata(ModelDefinition modelDefinition,
Section topSection)
|
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, enableValidation, ensureDirtyFlagPath, getField, getFields, getLayout, getLayoutController, getSection, getSections, getUnnestedFields, isDirty, isValidationEnabled, processValidationResults, processValidationResults, removeField, removeField, removeSection, removeSection, removeWidget, removeWidget, resetDirtyFlags, resetFieldInteractionFlags, setFieldHasHadFocusFlags, setHelp, setInstructions, setIsDirty, setLayoutController, setRequired, setStyleName, updateModel, updateWidgetData |
Methods inherited from class org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel |
---|
insert, setHTML, setText |
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel |
---|
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove, remove |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, 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, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, 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
private Enum<?> viewEnum
private String viewName
private List<View> views
Constructor Detail |
---|
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 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 View
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)
private void updateMetadata(ModelDefinition modelDefinition, Section topSection)
public String toString()
toString
in class com.google.gwt.user.client.ui.UIObject
public boolean isExportButtonActive()
View
isExportButtonActive
in interface View
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |