org.kuali.student.lum.lu.ui.course.client.requirements
Class CourseRequirementsSummaryView
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
org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView
org.kuali.student.lum.lu.ui.course.client.requirements.CourseRequirementsSummaryView
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, HasLayoutController, Section, BreadcrumbSupport, HistorySupport, View, ReportExportWidget
public class CourseRequirementsSummaryView
- extends VerticalSectionView
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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
Method Summary |
protected SubrulePreviewWidget |
addCourseRequisite(SpanPanel requirementsPanel,
StatementTreeViewInfo rule)
|
protected void |
addRulePreviewWidgetHandlers(SpanPanel requirementsPanel,
SubrulePreviewWidget subRuleWidget,
String stmtTypeId,
Integer internalProgReqID)
|
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. |
protected void |
displayRequirementSectionForGivenType(SpanPanel requirementsPanel,
StatementTypeInfo stmtTypeInfo,
boolean firstSubHeader)
|
void |
displayRules()
|
private static void |
findCluSetIds(StatementTreeViewInfo rule,
Set<String> list)
|
static String |
generateStatementTreeId()
|
static Map<String,com.google.gwt.user.client.ui.Widget> |
getCluSetWidgetList(StatementTreeViewInfo rule)
|
void |
init(CourseRequirementsViewController parentController,
Enum<?> viewEnum,
String name,
String modelId,
CourseRequirementsDataModel rulesData,
boolean isReadOnly,
boolean showSaveButtons)
|
boolean |
isDirty()
Returns true if this this section is considered dirty (the user may have entered data into this
section) |
static boolean |
isTopStatement(StatementTypeInfo stmtInfo)
|
void |
revertRuleChanges()
|
private void |
setupSaveCancelButtons()
|
void |
storeRules(boolean storeRules,
Callback<Boolean> callback)
|
protected void |
updateRequirementWidgets(StatementTreeViewInfo rule)
|
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.views.SectionView |
addView, asWidget, beforeHide, collectBreadcrumbNames, collectHistory, getController, getModel, getModelId, getName, getViewEnum, init, isExportButtonActive, onHistoryEvent, setController, setModelId, setName, setViewEnum, showExport, toString, updateMetadata, updateView, updateView |
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, 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 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, 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 |
cluSetRetriever
private static CluSetRetriever cluSetRetriever
layout
protected com.google.gwt.user.client.ui.FlowPanel layout
actionCancelButtons
protected ActionCancelGroup actionCancelButtons
addButtonsList
protected Map<String,com.google.gwt.user.client.ui.Widget> addButtonsList
parentController
protected CourseRequirementsViewController parentController
rules
protected CourseRequirementsDataModel rules
isReadOnly
protected boolean isReadOnly
showSaveButtons
protected boolean showSaveButtons
tempProgReqInfoID
private static int tempProgReqInfoID
NEW_STMT_TREE_ID
public static final String NEW_STMT_TREE_ID
- See Also:
- Constant Field Values
NEW_REQ_COMP_ID
public static final String NEW_REQ_COMP_ID
- See Also:
- Constant Field Values
perCourseRequisiteTypePanel
protected Map<String,SpanPanel> perCourseRequisiteTypePanel
CourseRequirementsSummaryView
public CourseRequirementsSummaryView()
CourseRequirementsSummaryView
public CourseRequirementsSummaryView(CourseRequirementsViewController parentController,
Enum<?> viewEnum,
String name,
String modelId,
CourseRequirementsDataModel rulesData,
boolean isReadOnly,
boolean showSaveButtons)
init
public void init(CourseRequirementsViewController parentController,
Enum<?> viewEnum,
String name,
String modelId,
CourseRequirementsDataModel rulesData,
boolean isReadOnly,
boolean showSaveButtons)
isDirty
public boolean isDirty()
- Description copied from class:
BaseSection
- Returns true if this this section is considered dirty (the user may have entered data into this
section)
- Specified by:
isDirty
in interface Section
- Overrides:
isDirty
in class BaseSection
- See Also:
Section.isDirty()
beforeShow
public void beforeShow(Callback<Boolean> onReadyCallback)
- Description copied from class:
SectionView
- Called by controller before the view is displayed to allow lazy initialization or any other preparatory work to be
done.
In SectionView, the section is cleared of all validation errors, the model is requested from its parent
controller, the widgets are updated with the latest data, and beforeShow is called on all of its potential child
views.
- Specified by:
beforeShow
in interface View
- Overrides:
beforeShow
in class SectionView
revertRuleChanges
public void revertRuleChanges()
updateRequirementWidgets
protected void updateRequirementWidgets(StatementTreeViewInfo rule)
displayRules
public void displayRules()
displayRequirementSectionForGivenType
protected void displayRequirementSectionForGivenType(SpanPanel requirementsPanel,
StatementTypeInfo stmtTypeInfo,
boolean firstSubHeader)
addCourseRequisite
protected SubrulePreviewWidget addCourseRequisite(SpanPanel requirementsPanel,
StatementTreeViewInfo rule)
addRulePreviewWidgetHandlers
protected void addRulePreviewWidgetHandlers(SpanPanel requirementsPanel,
SubrulePreviewWidget subRuleWidget,
String stmtTypeId,
Integer internalProgReqID)
isTopStatement
public static boolean isTopStatement(StatementTypeInfo stmtInfo)
getCluSetWidgetList
public static Map<String,com.google.gwt.user.client.ui.Widget> getCluSetWidgetList(StatementTreeViewInfo rule)
findCluSetIds
private static void findCluSetIds(StatementTreeViewInfo rule,
Set<String> list)
setupSaveCancelButtons
private void setupSaveCancelButtons()
storeRules
public void storeRules(boolean storeRules,
Callback<Boolean> callback)
generateStatementTreeId
public static String generateStatementTreeId()
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.