org.kuali.student.common.ui.client.configurable.mvc.sections
Class RequiredContainer

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.Composite
              extended by org.kuali.student.common.ui.client.configurable.mvc.sections.WarnContainer
                  extended by org.kuali.student.common.ui.client.configurable.mvc.sections.RequiredContainer
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.IsWidget

public class RequiredContainer
extends WarnContainer

This class creates a toggle that is used to hide or show all non-required fields.

Author:
SW Genis

Nested Class Summary
 class RequiredContainer.ShowAllLink
           
 
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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
RequiredContainer()
           
 
Method Summary
 void addCallback(Callback<Boolean> callback)
           
 com.google.gwt.user.client.ui.Composite createShowAllLink(com.google.gwt.event.dom.client.ClickHandler handler)
           
 List<Callback<Boolean>> getCallbacks()
           
 Section getMainSection()
           
 boolean isShowAll()
           
 boolean processInnerSection(Section section, boolean showAll)
          This method loop through all the fields and sections on a section and sets the visibility accordingly.
 void processMainSection()
          This method loop through all the sections on the main section, process them accordingly and sets the "Show All" link to visible if there is no components displayed on the section and visa versa.
 void registerExclusion(FieldDescriptor descriptor)
           
 void setMainSection(Section mainSection)
           
 void setShowAll(boolean showAll)
           
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.WarnContainer
add, addWarnWidget, addWarnWidgetBlock, clearWarnLayout, showWarningLayout
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, 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, setStyleDependentName, setStyleName, 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
 

Constructor Detail

RequiredContainer

public RequiredContainer()
Method Detail

isShowAll

public boolean isShowAll()

setShowAll

public void setShowAll(boolean showAll)

getMainSection

public Section getMainSection()

setMainSection

public void setMainSection(Section mainSection)

addCallback

public void addCallback(Callback<Boolean> callback)

getCallbacks

public List<Callback<Boolean>> getCallbacks()

registerExclusion

public void registerExclusion(FieldDescriptor descriptor)

processMainSection

public void processMainSection()
This method loop through all the sections on the main section, process them accordingly and sets the "Show All" link to visible if there is no components displayed on the section and visa versa.


processInnerSection

public boolean processInnerSection(Section section,
                                   boolean showAll)
This method loop through all the fields and sections on a section and sets the visibility accordingly.

Parameters:
section -
showAll -
Returns:

createShowAllLink

public com.google.gwt.user.client.ui.Composite createShowAllLink(com.google.gwt.event.dom.client.ClickHandler handler)


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