|
|||||||||
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.extjs.gxt.ui.client.widget.form.TextField |
---|
emptyStyle, impl, input, validator |
Fields inherited from class com.extjs.gxt.ui.client.widget.form.Field |
---|
autoValidate, emptyText, errorIcon, fieldStyle, focusStyle, focusValue, forceInvalidText, hasFocus, images, invalidStyle, messages, name, originalValue, preventMark, propertyEditor, readOnly, readOnlyFieldStyle, validationDelay, validationTask, value |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
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 | |
---|---|
protected void |
afterRender()
Called after the component has been rendered and is attached for the first time. |
protected void |
createFileInput()
|
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
java.lang.String |
getAccept()
A comma-separated list of content types that a server processing this form will handle correctly. |
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. |
protected El |
getFocusEl()
|
protected El |
getInputEl()
Provides support for wrapping the actual input element. |
FileUploadField.FileUploadFieldMessages |
getMessages()
Returns the field's messages. |
java.lang.String |
getName()
Returns the name attribute of the field if available. |
protected El |
getStyleEl()
|
protected void |
onBlur(ComponentEvent ce)
|
void |
onBrowserEvent(com.google.gwt.user.client.Event event)
Components delegate event handling to Component.onComponentEvent(ComponentEvent) . |
protected void |
onChange(ComponentEvent ce)
|
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
protected void |
onDetach()
|
protected void |
onFocus(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
onResize(int width,
int height)
Called after the component is resized, this method is empty by default but can be implemented by any subclass that needs to perform custom logic after a resize occurs. |
void |
reset()
Resets the current field value to the originally loaded value and clears any validation messages. |
void |
setAccept(java.lang.String accept)
A comma-separated list of content types that a server processing this form will handle correctly. |
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 |
---|
adjustInputSize, applyEmptyText, getAllowBlank, getCursorPos, getMaxLength, getMinLength, getRegex, getSelectedText, getSelectionLength, getSelectOnFocus, getValidator, isPassword, removeEmptyText, select, selectAll, setAllowBlank, setAriaState, setCursorPos, setEmptyText, setMaxLength, setMinLength, setPassword, setRegex, setSelectionRange, setSelectOnFocus, setValidator, setValue, validateValue |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onUnload, 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 |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileUploadField()
Method Detail |
---|
public java.lang.String getAccept()
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 onBrowserEvent(com.google.gwt.user.client.Event event)
Component
Component.onComponentEvent(ComponentEvent)
. Subclasses should not override.
onBrowserEvent
in interface com.google.gwt.user.client.EventListener
onBrowserEvent
in class Component
event
- the dom eventpublic void onComponentEvent(ComponentEvent ce)
Component
Component.onBrowserEvent(com.google.gwt.user.client.Event)
method
should not be overridden or modified.
onComponentEvent
in class TextField<java.lang.String>
ce
- the base eventpublic void reset()
Field
reset
in class Field<java.lang.String>
public void setAccept(java.lang.String accept)
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 stateprotected void afterRender()
Component
afterRender
in class Field<java.lang.String>
protected void createFileInput()
protected void doAttachChildren()
doAttachChildren
in class Component
protected void doDetachChildren()
doDetachChildren
in class Field<java.lang.String>
protected El getFocusEl()
getFocusEl
in class TextField<java.lang.String>
protected El getInputEl()
Field
getInputEl
in class TextField<java.lang.String>
protected El getStyleEl()
getStyleEl
in class TextField<java.lang.String>
protected void onBlur(ComponentEvent ce)
onBlur
in class TextField<java.lang.String>
protected void onChange(ComponentEvent ce)
protected void onDetach()
onDetach
in class Field<java.lang.String>
protected void onFocus(ComponentEvent ce)
onFocus
in class TextField<java.lang.String>
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class TextField<java.lang.String>
target
- the target elementindex
- the insert locationprotected void onResize(int width, int height)
BoxComponent
onResize
in class TextField<java.lang.String>
width
- the widthheight
- the height
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |