|
||||||||||
| 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.sencha.gxt.widget.core.client.Component
com.sencha.gxt.widget.core.client.form.FileUploadField
public class FileUploadField
A file upload field. When using this field, the containing form panel's
encoding must be set to MULTIPART using
FormPanel.setEncoding(Encoding). In addition, the method should be
set to POST using FormPanel.setMethod(Method)
| Nested Class Summary | |
|---|---|
static interface |
FileUploadField.FileUploadFieldAppearance
|
static interface |
FileUploadField.FileUploadFieldMessages
|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor |
|---|
Editor.Ignore, Editor.Path |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
FileUploadField()
Creates a new file upload field. |
|
FileUploadField(FileUploadField.FileUploadFieldAppearance appearance)
Creates a new file upload field. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addChangeHandler(ChangeHandler handler)
|
void |
clear()
Clears the value from the field. |
void |
clearInvalid()
Clear any invalid styles / messages for this field. |
FileUploadField.FileUploadFieldMessages |
getMessages()
Returns the file upload field messages. |
java.lang.String |
getName()
|
java.lang.String |
getValue()
|
boolean |
isAllowBlank()
Returns the field's allow blank state. |
boolean |
isReadOnly()
Returns the read only state. |
boolean |
isValid()
Returns whether or not the field value is currently valid. |
boolean |
isValid(boolean preventMark)
Returns whether or not the field value is currently valid. |
void |
onBrowserEvent(Event event)
|
void |
reset()
Resets the current field value to the originally loaded value and clears any validation messages. |
void |
setAllowBlank(boolean allowBlank)
Sets whether a field is valid when its value length = 0 (default to true). |
void |
setMessages(FileUploadField.FileUploadFieldMessages messages)
Sets the file upload field messages. |
void |
setName(java.lang.String name)
|
void |
setReadOnly(boolean readonly)
Sets the field's read only state. |
void |
setValue(java.lang.String value)
|
boolean |
validate(boolean preventMark)
Validates the field value. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, getLayoutData, getParent, isAttached, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, removeStyleName, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.user.client.ui.IsWidget |
|---|
asWidget |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
public FileUploadField()
public FileUploadField(FileUploadField.FileUploadFieldAppearance appearance)
appearance - the appearance| Method Detail |
|---|
public HandlerRegistration addChangeHandler(ChangeHandler handler)
addChangeHandler in interface HasChangeHandlerspublic void clear()
IsField
clear in interface IsField<java.lang.String>public void clearInvalid()
IsField
clearInvalid in interface IsField<java.lang.String>public FileUploadField.FileUploadFieldMessages getMessages()
public java.lang.String getName()
getName in interface HasNamepublic java.lang.String getValue()
getValue in interface TakesValue<java.lang.String>public boolean isAllowBlank()
public boolean isReadOnly()
public boolean isValid()
public boolean isValid(boolean preventMark)
IsField
isValid in interface IsField<java.lang.String>preventMark - true for silent validation (no invalid event and field
is not marked invalid)
public void onBrowserEvent(Event event)
onBrowserEvent in interface EventListeneronBrowserEvent in class Componentpublic void reset()
IsField
reset in interface IsField<java.lang.String>public void setAllowBlank(boolean allowBlank)
allowBlank - true to allow blanks, false otherwisepublic void setMessages(FileUploadField.FileUploadFieldMessages messages)
messages - the messagespublic void setName(java.lang.String name)
setName in interface HasNamepublic void setReadOnly(boolean readonly)
readonly - the read only statepublic void setValue(java.lang.String value)
setValue in interface TakesValue<java.lang.String>public boolean validate(boolean preventMark)
IsField
validate in interface IsField<java.lang.String>preventMark - true to not mark the field valid and fire invalid event
when invalid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||