public class KSItemLabel extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>, HasDataValue
Modifier and Type | Field and Description |
---|---|
int |
instanceId |
Constructor and Description |
---|
KSItemLabel(boolean canEdit,
boolean hasDetails,
DataHelper dataParser) |
KSItemLabel(boolean canEdit,
DataHelper dataParser) |
Modifier and Type | Method and Description |
---|---|
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
|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
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
public int instanceId
public KSItemLabel(boolean canEdit, DataHelper dataParser)
public KSItemLabel(boolean canEdit, boolean hasDetails, DataHelper dataParser)
public com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<KSItemLabel> handler)
addCloseHandler
in interface com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>
public void addValueChangeCallback(Callback<Data.Value> callback)
addValueChangeCallback
in interface HasDataValue
public Data.Value getValue()
getValue
in interface HasDataValue
public void setValue(Data.Value value)
setValue
in interface HasDataValue
public String getDisplayText()
public com.google.gwt.event.shared.HandlerRegistration addShowDetailsHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)
public String getDeletedKey()
public void setHighlighted(boolean highlighted)
public void removeHighlight()
public void clearValidationErrors()
public void clearValidationWarnings()
public ValidationResult.ErrorLevel processValidationResult(ValidationResultInfo vr, String fieldName)
vr
- public void addValidationErrorMessage(String text, String fieldName)
text
- public void addValidationWarningMessage(String text, String fieldName)
text
- public void setErrorState(boolean error)
error
- When true turns on error styling, when false turns off error stylingpublic void setWarnState(boolean warn)
warn
- When true turns on warning styling, when false turns off warning stylingCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.