|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.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 |
ACTIVE_CHANGED_PROPERTY
|
static java.lang.String |
DISABLED_SEND_TEXT_CHANGED_PROPERTY
|
static java.lang.String |
DISPLAY_SEND_CHANGED_PROPERTY
|
static java.lang.String |
ENABLED_SEND_TEXT_CHANGED_PROPERTY
|
static int |
ERROR_SIZELIMIT_EXCEEDED
|
static int |
ERROR_UNKNOWN_REASON
|
static java.lang.String |
HEIGHT_CHANGED_PROPERTY
|
static java.lang.String |
WIDTH_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. |
int |
getHeight()
Returns the height of the upload select component. |
UploadListener |
getUploadListener()
Returns the upload listener that will process file uploads when they occur. |
int |
getWidth()
Returns the width of the upload select component. |
boolean |
isActive()
Returns whether the file upload field is active. |
boolean |
isRequired()
|
boolean |
isSendButtonDisplayed()
Returns whether the "Send" button should be displayed. |
boolean |
isShowFullPath()
|
void |
removeUploadListener(UploadListener l)
Removes a (the) UploadListener from this
UploadSelect . |
void |
setActive(boolean newValue)
Sets whether the file upload field is active. |
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(int newValue)
Sets the height of the upload select component. |
void |
setRequired(boolean required)
|
void |
setSendButtonDisplayed(boolean b)
Sets whether the "Send" button should be displayed when the component is rendered. |
void |
setShowFullPath(boolean showFullPath)
|
void |
setUploadListener(UploadListener newValue)
Sets the upload listener that will process file uploads when they occur. |
void |
setWidth(int 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 ENABLED_SEND_TEXT_CHANGED_PROPERTY
public static final java.lang.String DISABLED_SEND_TEXT_CHANGED_PROPERTY
public static final java.lang.String DISPLAY_SEND_CHANGED_PROPERTY
public static final java.lang.String ACTIVE_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_CHANGED_PROPERTY
public static final java.lang.String WIDTH_CHANGED_PROPERTY
public static final int ERROR_SIZELIMIT_EXCEEDED
public static final int ERROR_UNKNOWN_REASON
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 int getHeight()
public java.lang.String getDisabledSendButtonText()
public java.lang.String getEnabledSendButtonText()
public UploadListener getUploadListener()
public int getWidth()
public boolean isActive()
public void removeUploadListener(UploadListener l)
UploadListener
from this
UploadSelect
.
l
- The listener to remove.public void setActive(boolean newValue)
newValue
- The new active state.public void setHeight(int newValue)
newValue
- The new height value.public void setUploadListener(UploadListener newValue)
newValue
- The UploadListener
that will process file
uploads.public void setWidth(int 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
displayedpublic boolean isShowFullPath()
public void setShowFullPath(boolean showFullPath)
public boolean isRequired()
public void setRequired(boolean required)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |