|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.lum.common.client.widgets.SwitchSection
public class SwitchSection
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 |
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 | |
---|---|
private List<Section> |
deleted
|
private List<String> |
deletionParentKeys
|
private ConfirmationDialog |
dialog
|
private List<String> |
lastSelection
|
private KSSelectItemWidgetAbstract |
selectableWidget
|
private boolean |
showConfirmation
|
private HashMap<String,Section> |
swapSectionMap
|
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 | |
---|---|
SwitchSection(KSSelectItemWidgetAbstract selectableWidget)
Constructor for SwapSection, note that the SelectableWidget passed in is not added to the UI but is instead used as reference to show different sections. |
|
SwitchSection(KSSelectItemWidgetAbstract selectableWidget,
ConfirmationDialog dialog)
|
Method Summary | |
---|---|
String |
addSection(Section section)
Adds a section to this section's layout. |
String |
addSection(Section section,
String swapKey)
|
String |
addSection(String key,
Section section)
Same as addSection except with an option user defined key (for retrieval of the section if necessary). |
String |
addSection(String key,
Section section,
String swapKey)
|
void |
enableConfirmation(boolean enable)
|
private void |
handleSelection()
This is handled differently than handleUserSelection because it is assumed that the client is setting the correct values into the widgets, therefore no need to delete sections (also reduces chance of actually deleting data before it is even shown) |
private void |
handleUserSelection()
|
private void |
init(KSSelectItemWidgetAbstract selectableWidget)
|
private void |
removeSwappableSection(String key)
|
private void |
showSwappableSection(String key)
|
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection |
---|
add, addField, 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, clear, disown, doAttachChildren, doDetachChildren, orphan, remove |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, 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, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private HashMap<String,Section> swapSectionMap
private KSSelectItemWidgetAbstract selectableWidget
private List<Section> deleted
private ConfirmationDialog dialog
private boolean showConfirmation
private List<String> lastSelection
private List<String> deletionParentKeys
Constructor Detail |
---|
public SwitchSection(KSSelectItemWidgetAbstract selectableWidget)
selectableWidget
- public SwitchSection(KSSelectItemWidgetAbstract selectableWidget, ConfirmationDialog dialog)
Method Detail |
---|
private void init(KSSelectItemWidgetAbstract selectableWidget)
private void handleUserSelection()
private void handleSelection()
private void showSwappableSection(String key)
private void removeSwappableSection(String key)
public void enableConfirmation(boolean enable)
public String addSection(Section section, String swapKey)
public String addSection(String key, Section section, String swapKey)
public String addSection(Section section)
BaseSection
addSection
in interface Section
addSection
in class BaseSection
Section.addSection(org.kuali.student.common.ui.client.configurable.mvc.sections.Section)
public String addSection(String key, Section section)
BaseSection
addSection
in interface Section
addSection
in class BaseSection
Section.addSection(java.lang.String, org.kuali.student.common.ui.client.configurable.mvc.sections.Section)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |