|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.filetransfer.UploadSelect
public class UploadSelect
A component that allows users to upload files to the application from remote clients.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_DISABLED_SEND_TEXT
|
static java.lang.String |
PROPERTY_DISPLAY_SEND_BUTTON
|
static java.lang.String |
PROPERTY_ENABLED_SEND_TEXT
|
static java.lang.String |
PROPERTY_HEIGHT
|
static java.lang.String |
PROPERTY_WIDTH
|
static java.lang.String |
UPLOAD_LISTENER_CHANGED_PROPERTY
|
| Constructor Summary | |
|---|---|
UploadSelect()
Creates an upload selector. |
|
| Method Summary | |
|---|---|
void |
addUploadListener(UploadListener l)
Adds an UploadListener to be notified of file uploads. |
void |
fileUpload(java.io.InputStream in,
int size,
java.lang.String contentType,
java.lang.String filename)
Notifies the upload listener that a file has been uploaded. |
java.lang.String |
getDisabledSendButtonText()
Returns text displayed in "Send" button when it is disabled. |
java.lang.String |
getEnabledSendButtonText()
Returns text displayed in "Send" button when it is enabled. |
Extent |
getHeight()
Returns the height of the upload select component. |
UploadListener |
getUploadListener()
Returns the upload listener that will process file uploads when they occur. |
Extent |
getWidth()
Returns the width of the upload select component. |
boolean |
isSendButtonDisplayed()
Returns whether the "Send" button should be displayed. |
void |
removeUploadListener(UploadListener l)
Removes a (the) UploadListener from this
UploadSelect. |
void |
setDisabledSendButtonText(java.lang.String string)
Sets the text displayed in the "Send" button when it is disabled. |
void |
setEnabledSendButtonText(java.lang.String string)
Sets the text displayed in the "Send" button when it is enabled. |
void |
setHeight(Extent newValue)
Sets the height of the upload select component. |
void |
setSendButtonDisplayed(boolean b)
Sets whether the "Send" button should be displayed when the component is rendered. |
void |
setUploadListener(UploadListener newValue)
Sets the upload listener that will process file uploads when they occur. |
void |
setWidth(Extent newValue)
Sets the width of the upload select component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_HEIGHT
public static final java.lang.String PROPERTY_WIDTH
public static final java.lang.String PROPERTY_ENABLED_SEND_TEXT
public static final java.lang.String PROPERTY_DISABLED_SEND_TEXT
public static final java.lang.String PROPERTY_DISPLAY_SEND_BUTTON
public static final java.lang.String UPLOAD_LISTENER_CHANGED_PROPERTY
| Constructor Detail |
|---|
public UploadSelect()
| Method Detail |
|---|
public void addUploadListener(UploadListener l)
throws java.util.TooManyListenersException
UploadListener to be notified of file uploads.
This listener is unicast, only one may be added.
l - The listener to add.
java.util.TooManyListenersException
public void fileUpload(java.io.InputStream in,
int size,
java.lang.String contentType,
java.lang.String filename)
in - The inputstream containing the file.size - The length of the input stream.contentType - The content type of the uploaded file.filename - The name of the file, as specified by the client
uploading it.public Extent getHeight()
public java.lang.String getDisabledSendButtonText()
public java.lang.String getEnabledSendButtonText()
public UploadListener getUploadListener()
public Extent getWidth()
public void removeUploadListener(UploadListener l)
UploadListener from this
UploadSelect.
l - The listener to remove.public void setHeight(Extent newValue)
newValue - The new height value.public void setUploadListener(UploadListener newValue)
newValue - The UploadListener that will process file
uploads.public void setWidth(Extent newValue)
newValue - The new width value.public void setDisabledSendButtonText(java.lang.String string)
string - text for the disabled buttonpublic void setEnabledSendButtonText(java.lang.String string)
string - text for the enabled buttonpublic boolean isSendButtonDisplayed()
public void setSendButtonDisplayed(boolean b)
b - hint that the "Send" button should or should not be
displayed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||