|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.FileUploader
public class FileUploader
The class FileUploader is the GWT wrapper
for the Phoenix control: sap.ui.commons.FileUploader.
The framework generates an input field and a button with text "Browse ...". The API supports features such as on change uploads (the upload starts immediately after a file has been selected), file uploads with explicit calls, adjustable control sizes, text display after uploads, or tooltips containing complete file paths.
| Constructor Summary | |
|---|---|
protected |
FileUploader()
constructs the class FileUploaderhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
FileUploader |
attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the value of the file path has been changed. |
static FileUploader |
create()
creates a new instance of the class FileUploader |
static FileUploader |
create(String idOrConfig)
creates a new instance of the class FileUploader |
static FileUploader |
create(String id,
String config)
creates a new instance of the class FileUploader |
FileUploader |
detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the value of the file path has been changed. |
String |
getName()
Getter for property name
Unique control name for identification on the server side after sending data to the server. |
String |
getUploadUrl()
Getter for property uploadUrl
Used when URL address is on a remote server. |
String |
getValue()
Getter for property value
Value of the path for file upload. |
String |
getWidth()
Getter for property width
Specifies the displayed control width. |
boolean |
isEnabled()
Getter for property enabled
Disabled controls have different colors, depending on customer settings. |
boolean |
isUploadOnChange()
Getter for property uploadOnChange
If set to "true", the upload immediately starts after file selection. |
boolean |
isVisible()
Getter for property visible
Invisible controls are not rendered. |
FileUploader |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
FileUploader |
setName(String value)
Setter for property name |
FileUploader |
setUploadOnChange(boolean value)
Setter for property uploadOnChangeDefault value is: false |
FileUploader |
setUploadUrl(String value)
Setter for property uploadUrlDefault value is: '' |
FileUploader |
setValue(String value)
Setter for property valueDefault value is: '' |
FileUploader |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
FileUploader |
setWidth(String value)
Setter for property widthDefault value is: '' |
void |
upload()
Begins the upload as defined by uploadUrl. |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected FileUploader()
FileUploaderJavaScriptObject restriction
| Method Detail |
|---|
public static FileUploader create()
FileUploader
public static FileUploader create(String idOrConfig)
FileUploader
id - id of the FileUploader or configuration JSON string
public static FileUploader create(String id,
String config)
FileUploader
id - id of the FileUploaderconfig - configuration JSON stringpublic final String getValue()
value
Value of the path for file upload.
public final FileUploader setValue(String value)
value''
value - String
this to allow method chainingpublic final boolean isEnabled()
enabled
Disabled controls have different colors, depending on customer settings.
public final FileUploader setEnabled(boolean value)
enabledtrue
value - boolean
this to allow method chainingpublic final boolean isVisible()
visible
Invisible controls are not rendered.
public final FileUploader setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getUploadUrl()
uploadUrl
Used when URL address is on a remote server.
public final FileUploader setUploadUrl(String value)
uploadUrl''
value - String
this to allow method chainingpublic final String getName()
name
Unique control name for identification on the server side after sending data to the server.
public final FileUploader setName(String value)
name
value - String
this to allow method chainingpublic final String getWidth()
width
Specifies the displayed control width.
public final FileUploader setWidth(String value)
width''
value - String
this to allow method chainingpublic final boolean isUploadOnChange()
uploadOnChange
If set to "true", the upload immediately starts after file selection. With the default setting, the upload needs to be explicitely triggered.
public final FileUploader setUploadOnChange(boolean value)
uploadOnChangefalse
value - boolean
this to allow method chainingpublic final FileUploader attachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the value of the file path has been changed.
listener - reference to the EventListener
this to allow method chainingpublic final FileUploader detachChangeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the value of the file path has been changed.
listener - reference to the EventListener
this to allow method chainingpublic final void upload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||