|
|
|||||
| 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)
Creates an upload button with the specified parent and name. |
| Method Summary |
| public String[] | getAcceptedExtensions()
Returns the accepted file extensions (may be null). |
| public String | getSource()
Returns the uploaded source file name. |
| public String | getTarget()
Returns the upload target filename. |
| public OutputStream | getTargetStream()
Returns the upload target stream. |
| public CATNotification | getUploadNotification()
Returns the upload notification. |
| public void | setAcceptedExtensions(String[] iAcceptedExt)
Sets the accepted file extensions. |
| public void | setTarget(String iFileName)
Sets the upload target filename. |
| public void | setTargetStream(OutputStream iStream)
Sets the upload target stream. |
| Field Detail |
| Constructor Detail |
CATUploadButton(CATDialog iDialog, String iName)
Creates an upload button with the specified parent and name.
iParentiName| Method Detail |
public String[] getAcceptedExtensions()
Returns the accepted file extensions (may be null).
public String getSource()
Returns the uploaded source file name.
public String getTarget()
Returns the upload target filename.
public OutputStream getTargetStream()
Returns the upload target stream.
public CATNotification getUploadNotification()
Returns the upload notification.
This notification is sent right after a file has been uploaded.
public 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.
iAcceptedExtnull value unsets the extension check.
public void setTarget(String iFileName)
Sets the upload target filename.
iFileName
public 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