org.kuali.student.common.ui.client.widgets.rules
Class ReqCompEditWidget

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 com.google.gwt.user.client.ui.FlowPanel
                      extended by org.kuali.student.common.ui.client.widgets.rules.ReqCompEditWidget
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, com.google.gwt.user.client.ui.InsertPanel, Iterable<com.google.gwt.user.client.ui.Widget>

public class ReqCompEditWidget
extends com.google.gwt.user.client.ui.FlowPanel


Nested Class Summary
private static class ReqCompEditWidget.ReqCompEditView
           
 
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  boolean addingNewReqComp
           
private  Callback compositionTemplateCallback
           
private  Map<String,String> compositionTemplates
           
private  Map<String,com.google.gwt.user.client.ui.Widget> customWidgets
           
private  Map<String,com.google.gwt.user.client.ui.Widget> customWidgetsNew
           
private  Callback displayCustomWidgetCallback
           
private  ReqComponentInfo editedReqComp
           
private  Callback fieldsMetadataTemplateCallback
           
private  ListItems listItemReqCompTypes
           
private  String newReqCompId
           
private  Callback newReqCompSelectedCallback
           
private  String NO_SELECTION_TEXT
           
private static String REQ_COMP_MODEL_ID
           
private  Callback reqCompConfirmCallback
           
private  com.google.gwt.user.client.ui.FlowPanel ReqCompEditPanel
           
private  BasicLayout reqCompFieldsLayout
           
private  VerticalSectionView reqCompFieldsPanel
           
private  List<ReqComponentTypeInfo> reqCompTypeInfoList
           
private  com.google.gwt.user.client.ui.FlowPanel reqCompTypePanel
           
private  KSDropDown reqCompTypesList
           
private  DataModel ruleFieldsData
           
private  List<String> selectedReqCompFieldTypes
           
private  ReqComponentTypeInfo selectedReqCompType
           
private static int tempReqCompInfoID
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ReqCompEditWidget(String newReqCompId)
           
 
Method Summary
private  void createReqComp(ReqComponentTypeInfo reqCompTypeInfo)
           
private  void displayConfirmButton()
           
 void displayCustomWidget(String fieldType, com.google.gwt.user.client.ui.Widget customWidget)
           
 void displayFieldsEnd(List<Metadata> fieldsMetadataList)
           
 void displayFieldsSection()
           
 void displayFieldsStart(String compositionTemplate)
           
private  void displayReqCompListPanel()
           
private  void finalizeRuleUpdate()
           
private  String getFieldLabel(String fieldType)
           
private  List<String> getFieldSequence()
           
private  String getFieldValue(List<ReqCompFieldInfo> fields, String key)
           
private  void redraw()
           
private  void retrieveValuesFromCustomWidgets(List<ReqCompFieldInfo> editedFields)
           
private  void selectReqCompTypeInList()
           
 void setCustomWidgets(Map<String,com.google.gwt.user.client.ui.Widget> customWidgets)
           
private  void setEnableAddRuleButtons(boolean enable)
           
 void setNewReqCompSelectedCallbackCallback(Callback<ReqComponentInfo> callback)
           
 void setReqCompConfirmButtonClickCallback(Callback<ReqComponentInfoUi> actionButtonClickedReqCompCallback)
           
 void setReqCompList(List<ReqComponentTypeInfo> reqComponentTypeInfoList)
           
 void setRetrieveCompositionTemplateCallback(Callback<ReqComponentInfo> callback)
           
 void setRetrieveCustomWidgetCallback(Callback<String> callback)
           
 void setRetrieveFieldsMetadataCallback(Callback<List<String>> callback)
           
 void setupExistingReqComp(ReqComponentInfo existingReqComp)
           
private  void setupHandlers()
           
 void setupNewReqComp()
           
private  void setupReqCompTypesList()
           
private  void validateAndRetrieveFields()
           
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert
 
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, addStyleName, 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, 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
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

reqCompTypePanel

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

ReqCompEditPanel

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

reqCompTypesList

private KSDropDown reqCompTypesList

reqCompFieldsPanel

private VerticalSectionView reqCompFieldsPanel

actionCancelButtons

private ActionCancelGroup actionCancelButtons

NO_SELECTION_TEXT

private final String NO_SELECTION_TEXT
See Also:
Constant Field Values

reqCompTypeInfoList

private List<ReqComponentTypeInfo> reqCompTypeInfoList

listItemReqCompTypes

private ListItems listItemReqCompTypes

compositionTemplates

private Map<String,String> compositionTemplates

editedReqComp

private ReqComponentInfo editedReqComp

selectedReqCompType

private ReqComponentTypeInfo selectedReqCompType

selectedReqCompFieldTypes

private List<String> selectedReqCompFieldTypes

addingNewReqComp

private boolean addingNewReqComp

ruleFieldsData

private DataModel ruleFieldsData

reqCompFieldsLayout

private BasicLayout reqCompFieldsLayout

customWidgets

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

customWidgetsNew

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

reqCompConfirmCallback

private Callback reqCompConfirmCallback

newReqCompSelectedCallback

private Callback newReqCompSelectedCallback

fieldsMetadataTemplateCallback

private Callback fieldsMetadataTemplateCallback

compositionTemplateCallback

private Callback compositionTemplateCallback

displayCustomWidgetCallback

private Callback displayCustomWidgetCallback

newReqCompId

private String newReqCompId

tempReqCompInfoID

private static int tempReqCompInfoID

REQ_COMP_MODEL_ID

private static final String REQ_COMP_MODEL_ID
See Also:
Constant Field Values
Constructor Detail

ReqCompEditWidget

public ReqCompEditWidget(String newReqCompId)
Method Detail

setupHandlers

private void setupHandlers()

validateAndRetrieveFields

private void validateAndRetrieveFields()

retrieveValuesFromCustomWidgets

private void retrieveValuesFromCustomWidgets(List<ReqCompFieldInfo> editedFields)

finalizeRuleUpdate

private void finalizeRuleUpdate()

setupNewReqComp

public void setupNewReqComp()

createReqComp

private void createReqComp(ReqComponentTypeInfo reqCompTypeInfo)

setupExistingReqComp

public void setupExistingReqComp(ReqComponentInfo existingReqComp)

redraw

private void redraw()

displayFieldsSection

public void displayFieldsSection()

displayFieldsStart

public void displayFieldsStart(String compositionTemplate)

displayFieldsEnd

public void displayFieldsEnd(List<Metadata> fieldsMetadataList)

displayCustomWidget

public void displayCustomWidget(String fieldType,
                                com.google.gwt.user.client.ui.Widget customWidget)

getFieldLabel

private String getFieldLabel(String fieldType)

getFieldSequence

private List<String> getFieldSequence()

getFieldValue

private String getFieldValue(List<ReqCompFieldInfo> fields,
                             String key)

displayConfirmButton

private void displayConfirmButton()

displayReqCompListPanel

private void displayReqCompListPanel()

selectReqCompTypeInList

private void selectReqCompTypeInList()

setupReqCompTypesList

private void setupReqCompTypesList()

setEnableAddRuleButtons

private void setEnableAddRuleButtons(boolean enable)

setReqCompList

public void setReqCompList(List<ReqComponentTypeInfo> reqComponentTypeInfoList)

setCustomWidgets

public void setCustomWidgets(Map<String,com.google.gwt.user.client.ui.Widget> customWidgets)

setReqCompConfirmButtonClickCallback

public void setReqCompConfirmButtonClickCallback(Callback<ReqComponentInfoUi> actionButtonClickedReqCompCallback)

setRetrieveCompositionTemplateCallback

public void setRetrieveCompositionTemplateCallback(Callback<ReqComponentInfo> callback)

setRetrieveFieldsMetadataCallback

public void setRetrieveFieldsMetadataCallback(Callback<List<String>> callback)

setNewReqCompSelectedCallbackCallback

public void setNewReqCompSelectedCallbackCallback(Callback<ReqComponentInfo> callback)

setRetrieveCustomWidgetCallback

public void setRetrieveCustomWidgetCallback(Callback<String> callback)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.