|
||||||||||
| 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.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.FileUploaderWidget
public class FileUploaderWidget
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.
| Nested Class Summary |
|---|
| 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 | |
|---|---|
|
FileUploaderWidget()
constructs the class FileUploaderWidget |
protected |
FileUploaderWidget(FileUploader control)
constructs the class FileUploaderWidget |
|
FileUploaderWidget(String id)
constructs the class FileUploaderWidget |
| Method Summary | |
|---|---|
void |
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. |
void |
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. |
FileUploader |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setEnabled(boolean value)
Setter for property enabledDefault value is: true |
void |
setName(String value)
Setter for property name |
void |
setUploadOnChange(boolean value)
Setter for property uploadOnChangeDefault value is: false |
void |
setUploadUrl(String value)
Setter for property uploadUrlDefault value is: '' |
void |
setValue(String value)
Setter for property valueDefault value is: '' |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
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.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| 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, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileUploaderWidget()
FileUploaderWidget
public FileUploaderWidget(String id)
FileUploaderWidget
id - id of the FileUploaderWidgetprotected FileUploaderWidget(FileUploader control)
FileUploaderWidget
control - reference to an existing FileUploader| Method Detail |
|---|
public FileUploader getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getValue()
value
Value of the path for file upload.
public void setValue(String value)
value''
value - Stringpublic boolean isEnabled()
enabled
Disabled controls have different colors, depending on customer settings.
public void setEnabled(boolean value)
enabledtrue
value - booleanpublic boolean isVisible()
visible
Invisible controls are not rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic String getUploadUrl()
uploadUrl
Used when URL address is on a remote server.
public void setUploadUrl(String value)
uploadUrl''
value - Stringpublic String getName()
name
Unique control name for identification on the server side after sending data to the server.
public void setName(String value)
name
value - Stringpublic String getWidth()
width
Specifies the displayed control width.
public void setWidth(String value)
width''
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic 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 void setUploadOnChange(boolean value)
uploadOnChangefalse
value - booleanpublic void 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 EventListenerpublic void 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 EventListenerpublic void upload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||