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

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.ValidationMessagePanel
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener

public class ValidationMessagePanel
extends com.google.gwt.user.client.ui.Composite

The validation message panel used for field elements, adds validation errors to a list and styles them appropriately.

Author:
Kuali Student Team

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  VerticalFlowPanel container
           
private  int errorCount
           
private  KSListPanel errorListPanel
           
private  boolean topMargin
           
private  int warnCount
           
private  KSListPanel warnListPanel
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ValidationMessagePanel()
           
ValidationMessagePanel(boolean topMargin)
           
 
Method Summary
 void addErrorMessage(KSLabel message)
           
 void addWarnMessage(com.google.gwt.user.client.ui.Widget message)
           
 void clearErrors()
           
 void clearWarnings()
           
 int getMessageCount()
           
 boolean hasWarnings()
           
 
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
addDomHandler, addHandler, 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, 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
 

Field Detail

container

private VerticalFlowPanel container

errorListPanel

private KSListPanel errorListPanel

warnListPanel

private KSListPanel warnListPanel

warnCount

private int warnCount

errorCount

private int errorCount

topMargin

private boolean topMargin
Constructor Detail

ValidationMessagePanel

public ValidationMessagePanel()

ValidationMessagePanel

public ValidationMessagePanel(boolean topMargin)
Method Detail

addErrorMessage

public void addErrorMessage(KSLabel message)

addWarnMessage

public void addWarnMessage(com.google.gwt.user.client.ui.Widget message)

hasWarnings

public boolean hasWarnings()

clearErrors

public void clearErrors()

clearWarnings

public void clearWarnings()

getMessageCount

public int getMessageCount()


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