|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.platform.AbstractDepictedObject
com.guiseframework.platform.PlatformFileCollector
public class PlatformFileCollector
Encapsulation of a list of platform files and a way to collect them.
The installed depictor must be of the specialized type PlatformFileCollector.Depictor.
| Nested Class Summary | |
|---|---|
static interface |
PlatformFileCollector.Depictor<F extends PlatformFileCollector>
The custom depictor type for this depicted object class. |
| Field Summary | |
|---|---|
static java.lang.String |
PLATFORM_FILES_PROPERTY
The bound property of the selected platform files. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Constructor Summary | |
|---|---|
PlatformFileCollector()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
browse()
Requests that the user be presented a dialog for browsing files. |
void |
cancel(PlatformFile platformFile)
Cancels a platform file upload or download. |
PlatformFileCollector.Depictor<? extends PlatformFileCollector> |
getDepictor()
|
java.util.List<? extends PlatformFile> |
getPlatformFiles()
|
void |
setPlatformFiles(java.util.List<? extends PlatformFile> newPlatformFiles)
Sets the platform files. |
void |
upload(PlatformFile platformFile,
java.net.URI destinationURI)
Initiates a platform file upload. |
| Methods inherited from class com.guiseframework.platform.AbstractDepictedObject |
|---|
depict, equals, exportTransfer, getDepictID, getEventListenerManager, hashCode, processEvent, toString |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.DepictedObject |
|---|
getSession |
| Field Detail |
|---|
public static final java.lang.String PLATFORM_FILES_PROPERTY
| Constructor Detail |
|---|
public PlatformFileCollector()
| Method Detail |
|---|
public PlatformFileCollector.Depictor<? extends PlatformFileCollector> getDepictor()
getDepictor in interface DepictedObjectgetDepictor in class AbstractDepictedObjectpublic java.util.List<? extends PlatformFile> getPlatformFiles()
public void setPlatformFiles(java.util.List<? extends PlatformFile> newPlatformFiles)
newPlatformFiles - The new selected platform files.
java.lang.NullPointerException - if the given platform files is null.PLATFORM_FILES_PROPERTYpublic void browse()
public void cancel(PlatformFile platformFile)
platformFile - Thet platform file to cancel.
java.lang.NullPointerException - if the given platform file is null.
java.lang.IllegalStateException - the specified platform file can no longer be canceled because, for example, other platform files have since been selected.
public void upload(PlatformFile platformFile,
java.net.URI destinationURI)
platformFile - Thet platform file to upload.platformFile - Thet platform file to upload.destinationURI - The URI representing the destination of the platform file, either absolute or relative to the application.
java.lang.NullPointerException - if the given platform file and/or destination URI is null.
java.lang.IllegalStateException - the specified platform file can no longer be uploaded because, for example, other platform files have since been selected.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||