org.kuali.student.common.ui.client.widgets
Class KSItemLabel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
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 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 |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
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 interface com.google.gwt.event.shared.HasHandlers |
fireEvent |
instanceId
public int instanceId
KSItemLabel
public KSItemLabel(boolean canEdit,
DataHelper dataParser)
KSItemLabel
public KSItemLabel(boolean canEdit,
boolean hasDetails,
DataHelper dataParser)
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.