|
|
Package com.dassault_systemes.catjdialog |
Class CATUploadButton
|
Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catjdialog.CATCallbackSource | +-com.dassault_systemes.catjdialog.CATDialog | +-com.dassault_systemes.catjdialog.CATButton | +-com.dassault_systemes.catjdialog.CATUploadButton
Class Location |
Class Description |
public class CATUploadButton
The upload button graphical component.
<uploadbut_path>.Title
entry.
You may also set it programmatically using setTitle()
.
<uploadbut_path>.Tooltip
entry.
You may also set it programmatically using setTooltip()
.
All Implemented Interfaces: CATIUploader
Field Summary |
Constructor Summary |
CATUploadButton(CATDialog iDialog, String iName) |
Method Summary |
void | setTarget(String iFileName) |
String | getTarget() |
void | setAcceptedExtensions(String[] iAcceptedExt) |
String[] | getAcceptedExtensions() |
void | setTargetStream(OutputStream iStream) |
OutputStream | getTargetStream() |
String | getSource() |
CATNotification | getUploadNotification() |
Field Detail |
Constructor Detail |
CATUploadButton(CATDialog iDialog, String iName)Creates an upload button with the specified parent and name.
iParent
iName
Method Detail |
void setTarget(String iFileName)Sets the upload target filename.
iFileName
String getTarget()Returns the upload target filename.
void setAcceptedExtensions(String[] iAcceptedExt)Sets the accepted file extensions.
The upload form will refuse to load a with with an extension that is not in the list.
A null value unsets extension filtering.
iAcceptedExt
null
value unsets the extension check.String[] getAcceptedExtensions()Returns the accepted file extensions (may be null).
void setTargetStream(OutputStream iStream)Sets the upload target stream.
If not set, the file is saved locally in the filename specified with
the setTarget()
method.
iStream
OutputStream getTargetStream()Returns the upload target stream.
String getSource()Returns the uploaded source file name.
CATNotification getUploadNotification()Returns the upload notification.
This notification is sent right after a file has been uploaded.