org.kuali.student.lum.lu.ui.course.client.requirements
Class CourseRequirementsSummaryView

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel
                      extended by org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection
                          extended by org.kuali.student.common.ui.client.configurable.mvc.views.SectionView
                              extended by org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView
                                  extended by org.kuali.student.lum.lu.ui.course.client.requirements.CourseRequirementsSummaryView
All Implemented Interfaces:
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.IndexedPanel, Iterable<com.google.gwt.user.client.ui.Widget>, HasLayoutController, Section, BreadcrumbSupport, HistorySupport, View

public class CourseRequirementsSummaryView
extends VerticalSectionView


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
private  ActionCancelGroup actionCancelButtons
           
private  Map<String,com.google.gwt.user.client.ui.Widget> addButtonsList
           
private static CluSetRetriever cluSetRetriever
           
private  boolean isReadOnly
           
private  com.google.gwt.user.client.ui.FlowPanel layout
           
static String NEW_REQ_COMP_ID
           
static String NEW_STMT_TREE_ID
           
private  CourseRequirementsViewController parentController
           
private  Map<String,SpanPanel> perCourseRequisiteTypePanel
           
private  CourseRequirementsDataModel rules
           
private static int tempProgReqInfoID
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.views.SectionView
model, modelId
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection
fields, isDirty, isValidationEnabled, layoutController, sections
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
CourseRequirementsSummaryView(CourseRequirementsViewController parentController, Enum<?> viewEnum, String name, String modelId, CourseRequirementsDataModel rulesData, boolean isReadOnly)
           
 
Method Summary
private  SubrulePreviewWidget addCourseRequisite(SpanPanel requirementsPanel, StatementTreeViewInfo rule)
           
private  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.
private  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)
           
 boolean isDirty()
           
static boolean isTopStatement(StatementTypeInfo stmtInfo)
           
 void revertRuleChanges()
           
private  void setupSaveCancelButtons()
           
 void storeRules(boolean storeRules, Callback<Boolean> callback)
           
private  void updateRequirementWidgets(StatementTreeViewInfo rule)
           
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView
clear, setSectionTitle, updateModel
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.views.SectionView
addView, asWidget, beforeHide, collectBreadcrumbNames, collectHistory, getController, getModel, getModelId, getName, getViewEnum, onHistoryEvent, setController, setModelId, setName, setViewEnum, updateMetadata, updateView, updateView
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection
add, addField, addSection, addSection, addStyleName, addWidget, clearValidation, enableValidation, ensureDirtyFlagPath, getField, getFields, getLayout, getLayoutController, getSection, getSections, getUnnestedFields, isValidationEnabled, processValidationResults, processValidationResults, removeField, removeField, removeSection, removeSection, removeWidget, removeWidget, resetDirtyFlags, resetFieldInteractionFlags, setFieldHasHadFocusFlags, setHelp, setInstructions, setIsDirty, setLayoutController, 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, 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, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cluSetRetriever

private static CluSetRetriever cluSetRetriever

layout

private com.google.gwt.user.client.ui.FlowPanel layout

actionCancelButtons

private ActionCancelGroup actionCancelButtons

addButtonsList

private Map<String,com.google.gwt.user.client.ui.Widget> addButtonsList

parentController

private CourseRequirementsViewController parentController

rules

private CourseRequirementsDataModel rules

isReadOnly

private boolean isReadOnly

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

private Map<String,SpanPanel> perCourseRequisiteTypePanel
Constructor Detail

CourseRequirementsSummaryView

public CourseRequirementsSummaryView(CourseRequirementsViewController parentController,
                                     Enum<?> viewEnum,
                                     String name,
                                     String modelId,
                                     CourseRequirementsDataModel rulesData,
                                     boolean isReadOnly)
Method Detail

isDirty

public boolean isDirty()
Specified by:
isDirty in interface Section
Overrides:
isDirty in class BaseSection

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.

Specified by:
beforeShow in interface View
Overrides:
beforeShow in class SectionView

revertRuleChanges

public void revertRuleChanges()

updateRequirementWidgets

private void updateRequirementWidgets(StatementTreeViewInfo rule)

displayRules

public void displayRules()

displayRequirementSectionForGivenType

private void displayRequirementSectionForGivenType(SpanPanel requirementsPanel,
                                                   StatementTypeInfo stmtTypeInfo,
                                                   boolean firstSubHeader)

addCourseRequisite

private SubrulePreviewWidget addCourseRequisite(SpanPanel requirementsPanel,
                                                StatementTreeViewInfo rule)

addRulePreviewWidgetHandlers

private 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 © 2010 The Kuali Foundation. All rights reserved.