|
|||||||||
| 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<D>
com.extjs.gxt.ui.client.widget.form.TextField<java.lang.String>
com.extjs.gxt.ui.client.widget.form.FileUploadField
public class FileUploadField
A file upload filed. When using this field, the containing form panel's
encoding must be set to MULTIPART using @link
FormPanel.setEncoding(Encoding). In addition, the method should be
set to POST using
FormPanel.setMethod(com.extjs.gxt.ui.client.widget.form.FormPanel.Method)
.
| Nested Class Summary | |
|---|---|
class |
FileUploadField.FileUploadFieldMessages
|
| Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.TextField |
|---|
TextField.TextFieldMessages |
| 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 | |
|---|---|
FileUploadField()
Creates a new file upload field. |
|
| Method Summary | |
|---|---|
com.google.gwt.user.client.ui.AbstractImagePrototype |
getButtonIconStyle()
Returns the button icon class. |
int |
getButtonOffset()
Returns the button offset. |
com.google.gwt.dom.client.InputElement |
getFileInput()
Returns the file input element. |
FileUploadField.FileUploadFieldMessages |
getMessages()
Returns the field's messages. |
java.lang.String |
getName()
Returns the name attribute of the field if available. |
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
void |
reset()
Resets the current field value to the originally loaded value and clears any validation messages. |
void |
setButtonIcon(com.google.gwt.user.client.ui.AbstractImagePrototype buttonIconStyle)
Sets the button icon class. |
void |
setButtonOffset(int buttonOffset)
Sets the number of pixels between the input element and the browser button (defaults to 3). |
void |
setName(java.lang.String name)
Sets the field's HTML name attribute. |
void |
setReadOnly(boolean readOnly)
Sets the field's read only state. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.form.TextField |
|---|
getAllowBlank, getCursorPos, getMaxLength, getMinLength, getRegex, getSelectedText, getSelectionLength, getSelectOnFocus, getValidator, isPassword, select, selectAll, setAllowBlank, setCursorPos, setEmptyText, setMaxLength, setMinLength, setPassword, setRegex, setSelectionRange, setSelectOnFocus, setValidator, setValue |
| 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 FileUploadField()
| Method Detail |
|---|
public com.google.gwt.user.client.ui.AbstractImagePrototype getButtonIconStyle()
public int getButtonOffset()
public com.google.gwt.dom.client.InputElement getFileInput()
public FileUploadField.FileUploadFieldMessages getMessages()
Field
getMessages in class TextField<java.lang.String>public java.lang.String getName()
Field
getName in class Field<java.lang.String>public void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class Field<java.lang.String>ce - the base eventpublic void reset()
Field
reset in class Field<java.lang.String>public void setButtonIcon(com.google.gwt.user.client.ui.AbstractImagePrototype buttonIconStyle)
buttonIconStyle - the button icon stylepublic void setButtonOffset(int buttonOffset)
public void setName(java.lang.String name)
Field
setName in class Field<java.lang.String>name - the namepublic void setReadOnly(boolean readOnly)
Field
setReadOnly in class Field<java.lang.String>readOnly - the read only state
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||