public class InputFile extends Input
Input.Type
Constructor and Description |
---|
InputFile() |
Modifier and Type | Method and Description |
---|---|
void |
drawAttributes() |
java.lang.String |
getContentType()
Specifies the content type of uploaded file.
|
long |
getFileSize()
Specifies the file size of uploaded file.
|
java.lang.Integer |
getSize()
Specifies the width of an input field
|
java.io.File |
getStoreLocation()
Specifies the store location of uploaded file.
|
protected Input.Type |
getType()
Specifies the type of an input element.
|
InputFile |
setContentType(java.lang.String contentType)
Set content type of uploaded file
|
InputFile |
setFileSize(long fileSize)
Set size of uploaded file in bytes
|
InputFile |
setSize(java.lang.Integer size)
Set "size" property and if element was draw call script at browser.
|
InputFile |
setStoreLocation(java.io.File storeLocation)
Set file handle to uploaded file
|
assignValue, getName, getPlaceholder, getValue, isDisabled, isReadOnly, setDisabled, setName, setPlaceholder, setReadOnly, setValue
add, addAllDropTargets, addDropTarget, addListener, addStyleClass, alert, assignText, callBack, callBack, callScript, clearDropTargets, clearElements, clearElements, confirm, confirm, drawAttribute, findElement, findParent, findViewElements, fireEvent, fireEvent, fireEventOnView, fireEventOnView, firePropertyChange, focus, getApplication, getBundle, getBundleObject, getCustomDragMove, getDir, getDragDropEventsOptions, getDropTargets, getElements, getElements, getEventListeners, getId, getLang, getParent, getStyle, getStyleClass, getTabIndex, getText, getTitle, insert, isChildrenSetChanged, isContenteditable, isDraggable, isDrawn, isEscapeText, isListening, isListening, isListening, print, prompt, prompt, remove, remove, removeAttribute, removeDropTarget, removeListener, removeListener, removeParent, removeStyleClass, replace, replaceStyleClass, retrieveListeners, retrieveListeners, setChangeChildrenSet, setContenteditable, setCustomDragMove, setDir, setDragDropEventsOptions, setDraggable, setDrawn, setEscapeText, setLang, setParent, setStyle, setStyleClass, setTabIndex, setText, setTitle, transformTagName
@InitializeAttributes public void drawAttributes()
drawAttributes
in class Input
protected Input.Type getType()
Input
public java.lang.String getContentType()
public java.io.File getStoreLocation()
public long getFileSize()
public InputFile setContentType(java.lang.String contentType)
contentType
- the contentType to setpublic InputFile setStoreLocation(java.io.File storeLocation)
storeLocation
- the storeLocation to setpublic InputFile setFileSize(long fileSize)
fileSize
- the fileSize to setpublic java.lang.Integer getSize()
public InputFile setSize(java.lang.Integer size)
size
- the size to set. If is null call removeAttribute of element at
browser. If not null call set "size" property of element at
browser.