|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.form.Field<java.lang.Object>
com.extjs.gxt.ui.client.widget.form.LabelField
public class LabelField
Displays static text.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field |
|---|
Field.FieldImages, Field.FieldMessages |
| 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 | |
|---|---|
LabelField()
Creates a new label field. |
|
LabelField(java.lang.String text)
Creates a new label field. |
|
| Method Summary | |
|---|---|
java.lang.String |
getText()
Returns the field's text. |
java.lang.Object |
getValue()
Returns the typed value of the field. |
boolean |
isValid(boolean silent)
Returns whether or not the field value is currently valid. |
void |
markInvalid(java.lang.String msg)
Marks this field as invalid. |
void |
setText(java.lang.String text)
Sets the lable's text. |
void |
setValue(java.lang.Object value)
Sets a data value into the field and validates it. |
boolean |
validate(boolean silent)
Validates the field value. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
|---|
getBounds, getHeight, getHeight, getPosition, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, isAutoHeight, isAutoWidth, isDeferHeight, isShim, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LabelField()
public LabelField(java.lang.String text)
text - the label text| Method Detail |
|---|
public java.lang.String getText()
public java.lang.Object getValue()
Field
getValue in class Field<java.lang.Object>public boolean isValid(boolean silent)
Field
isValid in class Field<java.lang.Object>silent - true for silent validation (no invalid event and field
is not marked invalid)
true if the value is valid, otherwise
falsepublic void markInvalid(java.lang.String msg)
FieldField.forceInvalid(String)
markInvalid in class Field<java.lang.Object>msg - the validation messagepublic void setText(java.lang.String text)
text - the text as HTMLpublic void setValue(java.lang.Object value)
FieldField.setRawValue(java.lang.String).
setValue in class Field<java.lang.Object>value - the value to setpublic boolean validate(boolean silent)
Field
validate in class Field<java.lang.Object>silent - true to not mark the field valid and fire invalid event
when invalid
true if valid, otherwise false
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||