org.kuali.student.common.ui.client.widgets
Class KSItemLabel

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.widgets.KSItemLabel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, HasDataValue

public class KSItemLabel
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>, HasDataValue


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
 int instanceId
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSItemLabel(boolean canEdit, boolean hasDetails, DataHelper dataParser)
           
KSItemLabel(boolean canEdit, DataHelper dataParser)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<KSItemLabel> handler)
           
 com.google.gwt.event.shared.HandlerRegistration addShowDetailsHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)
           
 void addValidationErrorMessage(String text, String fieldName)
          Add a validation message to this fields validation panel as defined by setValidationPanel.
 void addValidationWarningMessage(String text, String fieldName)
          Add a validation message to this fields validation panel as defined by setValidationPanel.
 void addValueChangeCallback(Callback<Data.Value> callback)
           
 void clearValidationErrors()
          Clears validation error and highlighting that may exist on this panel
 void clearValidationWarnings()
          Clears validation warnings and highlighting that may exist on this panel
 boolean equals(Object obj)
           
 String getDeletedKey()
           
 String getDisplayText()
           
 String getKey()
           
 Data.Value getValue()
           
 int hashCode()
           
 ValidationResult.ErrorLevel processValidationResult(ValidationResultInfo vr, String fieldName)
          Processes a validation result and adds an appropriate message, if needed
 void removeHighlight()
           
 void setErrorState(boolean error)
          Turn on/off styling for errors on field element
 void setHighlighted(boolean highlighted)
           
 void setValue(Data.Value value)
           
 void setWarnState(boolean warn)
          Turn on/off styling for warnings on field element
 
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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

instanceId

public int instanceId
Constructor Detail

KSItemLabel

public KSItemLabel(boolean canEdit,
                   DataHelper dataParser)

KSItemLabel

public KSItemLabel(boolean canEdit,
                   boolean hasDetails,
                   DataHelper dataParser)
Method Detail

addCloseHandler

public com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<KSItemLabel> handler)
Specified by:
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>

addValueChangeCallback

public void addValueChangeCallback(Callback<Data.Value> callback)
Specified by:
addValueChangeCallback in interface HasDataValue

getValue

public Data.Value getValue()
Specified by:
getValue in interface HasDataValue

setValue

public void setValue(Data.Value value)
Specified by:
setValue in interface HasDataValue

getKey

public String getKey()

getDisplayText

public String getDisplayText()

addShowDetailsHandler

public com.google.gwt.event.shared.HandlerRegistration addShowDetailsHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)

getDeletedKey

public String getDeletedKey()

setHighlighted

public void setHighlighted(boolean highlighted)

removeHighlight

public void removeHighlight()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clearValidationErrors

public void clearValidationErrors()
Clears validation error and highlighting that may exist on this panel


clearValidationWarnings

public void clearValidationWarnings()
Clears validation warnings and highlighting that may exist on this panel


processValidationResult

public ValidationResult.ErrorLevel processValidationResult(ValidationResultInfo vr,
                                                           String fieldName)
Processes a validation result and adds an appropriate message, if needed

Parameters:
vr -
Returns:

addValidationErrorMessage

public void addValidationErrorMessage(String text,
                                      String fieldName)
Add a validation message to this fields validation panel as defined by setValidationPanel.

Parameters:
text -

addValidationWarningMessage

public void addValidationWarningMessage(String text,
                                        String fieldName)
Add a validation message to this fields validation panel as defined by setValidationPanel.

Parameters:
text -

setErrorState

public void setErrorState(boolean error)
Turn on/off styling for errors on field element

Parameters:
error - When true turns on error styling, when false turns off error styling

setWarnState

public void setWarnState(boolean warn)
Turn on/off styling for warnings on field element

Parameters:
warn - When true turns on warning styling, when false turns off warning styling


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