org.kuali.student.lum.lu.ui.tools.client.configuration
Class ClusetView

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.tools.client.configuration.ClusetView
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 ClusetView
extends VerticalSectionView


Nested Class Summary
static class ClusetView.CluSetsManagementViews
           
static class ClusetView.Picker
           
 
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  com.google.gwt.user.client.ui.SimplePanel cluSetDisplay
           
protected  CluSetEditorWidget cluSetEditor
           
protected  CluSetManagementRpcServiceAsync cluSetManagementRpcServiceAsync
           
protected  CluSetRetriever cluSetRetriever
           
protected  String cluSetType
           
protected  DataModelDefinition modelDefinition
           
protected  DataModelDefinition searchDefinition
           
protected  String selectedCluSetId
           
protected  KSLabel titleLabel
           
protected  ClusetView.CluSetsManagementViews viewEnum
           
 
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, layout, layoutController, sections
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ClusetView()
           
ClusetView(Enum<?> viewEnum, String name, String modelId)
           
ClusetView(Enum<?> viewEnum, String name, String modelId, boolean showTitle)
           
ClusetView(Enum<?> viewEnum, String name, String modelId, com.google.gwt.user.client.ui.Widget titleWidget)
           
 
Method Summary
protected  FieldDescriptor addField(Section section, String fieldKey, MessageKeyInfo messageKey, com.google.gwt.user.client.ui.Widget widget, String parentPath)
           
protected  void addFields(VerticalSection defineCluSet, String contextName)
           
 void afterModelIsLoaded(DataModel cluSetModel)
           
 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  MessageKeyInfo generateMessageInfo(String labelKey)
           
protected  SummaryTableFieldRow getFieldRow(String fieldKey, MessageKeyInfo messageKey)
           
protected  SummaryTableFieldRow getFieldRow(String fieldKey, MessageKeyInfo messageKey, boolean optional)
           
protected  SummaryTableFieldRow getFieldRow(String fieldKey, MessageKeyInfo messageKey, com.google.gwt.user.client.ui.Widget widget, com.google.gwt.user.client.ui.Widget widget2, String parentPath, ModelWidgetBinding<?> binding, boolean optional)
           
protected  SectionTitle getH3Title(String labelKey)
           
 String getSelectedCluSetId()
           
 void init(ClusetView.CluSetsManagementViews clusetViewEnum, String name, String clusetMgtModel, boolean showTitle, Callback<Boolean> onReady)
           
 void init(ClusetView.CluSetsManagementViews clusetViewEnum, String name, String modelId, Callback<Boolean> onReady)
           
protected static VerticalSection initSection(SectionTitle title, boolean withDivider)
           
 void onHistoryEvent(String historyStack)
           
 void setController(Controller controller)
           
 void setSelectedCluSetId(String selectedCluSetId)
           
protected  void setupCreateEditClusetView()
           
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.views.VerticalSectionView
clear, init, 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, init, isExportButtonActive, 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, 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, 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
 

Field Detail

cluSetManagementRpcServiceAsync

protected CluSetManagementRpcServiceAsync cluSetManagementRpcServiceAsync

cluSetRetriever

protected CluSetRetriever cluSetRetriever

modelDefinition

protected DataModelDefinition modelDefinition

searchDefinition

protected DataModelDefinition searchDefinition

selectedCluSetId

protected String selectedCluSetId

viewEnum

protected ClusetView.CluSetsManagementViews viewEnum

cluSetDisplay

protected com.google.gwt.user.client.ui.SimplePanel cluSetDisplay

cluSetEditor

protected CluSetEditorWidget cluSetEditor

cluSetType

protected String cluSetType

titleLabel

protected KSLabel titleLabel
Constructor Detail

ClusetView

public ClusetView()

ClusetView

public ClusetView(Enum<?> viewEnum,
                  String name,
                  String modelId,
                  boolean showTitle)

ClusetView

public ClusetView(Enum<?> viewEnum,
                  String name,
                  String modelId,
                  com.google.gwt.user.client.ui.Widget titleWidget)

ClusetView

public ClusetView(Enum<?> viewEnum,
                  String name,
                  String modelId)
Method Detail

afterModelIsLoaded

public void afterModelIsLoaded(DataModel cluSetModel)

init

public void init(ClusetView.CluSetsManagementViews clusetViewEnum,
                 String name,
                 String modelId,
                 Callback<Boolean> onReady)

init

public void init(ClusetView.CluSetsManagementViews clusetViewEnum,
                 String name,
                 String clusetMgtModel,
                 boolean showTitle,
                 Callback<Boolean> onReady)

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

onHistoryEvent

public void onHistoryEvent(String historyStack)
Specified by:
onHistoryEvent in interface HistorySupport
Overrides:
onHistoryEvent in class SectionView
See Also:
HistorySupport.onHistoryEvent(java.lang.String)

getFieldRow

protected SummaryTableFieldRow getFieldRow(String fieldKey,
                                           MessageKeyInfo messageKey)

getFieldRow

protected SummaryTableFieldRow getFieldRow(String fieldKey,
                                           MessageKeyInfo messageKey,
                                           boolean optional)

getFieldRow

protected SummaryTableFieldRow getFieldRow(String fieldKey,
                                           MessageKeyInfo messageKey,
                                           com.google.gwt.user.client.ui.Widget widget,
                                           com.google.gwt.user.client.ui.Widget widget2,
                                           String parentPath,
                                           ModelWidgetBinding<?> binding,
                                           boolean optional)

getSelectedCluSetId

public String getSelectedCluSetId()

setSelectedCluSetId

public void setSelectedCluSetId(String selectedCluSetId)

setupCreateEditClusetView

protected void setupCreateEditClusetView()

addFields

protected void addFields(VerticalSection defineCluSet,
                         String contextName)

initSection

protected static VerticalSection initSection(SectionTitle title,
                                             boolean withDivider)

getH3Title

protected SectionTitle getH3Title(String labelKey)

generateMessageInfo

protected MessageKeyInfo generateMessageInfo(String labelKey)

addField

protected FieldDescriptor addField(Section section,
                                   String fieldKey,
                                   MessageKeyInfo messageKey,
                                   com.google.gwt.user.client.ui.Widget widget,
                                   String parentPath)

setController

public void setController(Controller controller)
Overrides:
setController in class SectionView


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.