com.guiseframework.platform.web
Class AbstractWebPlatformFileCollectorDepictor
java.lang.Object
com.guiseframework.platform.AbstractDepictor<O>
com.guiseframework.platform.web.AbstractWebDepictor<PlatformFileCollector>
com.guiseframework.platform.web.AbstractWebPlatformFileCollectorDepictor
- All Implemented Interfaces:
- Depictor<PlatformFileCollector>, PlatformFileCollector.Depictor<PlatformFileCollector>
- Direct Known Subclasses:
- DefaultWebPlatformFileCollectorDepictor
public class AbstractWebPlatformFileCollectorDepictor
- extends AbstractWebDepictor<PlatformFileCollector>
- implements PlatformFileCollector.Depictor<PlatformFileCollector>
An abstract depictor for a collector of platform files for the web platform.
- Author:
- Garret Wilson
| Methods inherited from class com.guiseframework.platform.AbstractDepictor |
depict, depictedObjectPropertyChange, getDepictContext, getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, installed, isDepicted, setDepicted, setPropertyModified, uninstalled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractWebPlatformFileCollectorDepictor
public AbstractWebPlatformFileCollectorDepictor()
getPlatformFile
public WebPlatformFile getPlatformFile(java.lang.String id)
- Retrieves a platform file by the ID assigned to it.
- Parameters:
id - The ID assigned to the platform file.
- Returns:
- The specified platform file, or
null if there is no platforom file with the given ID.
- Throws:
java.lang.NullPointerException - if the given ID is null.
browse
public void browse()
- Requests that the user be presented with a dialog to browse.
- Specified by:
browse in interface PlatformFileCollector.Depictor<PlatformFileCollector>
cancel
public void cancel(PlatformFile platformFile)
- Cancels a platform file upload or download.
- Specified by:
cancel in interface PlatformFileCollector.Depictor<PlatformFileCollector>
- Parameters:
platformFile - Thet platform file to cancel.
- Throws:
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.
upload
public void upload(PlatformFile platformFile,
java.net.URI destinationURI)
- Initiates a platform file upload.
- Specified by:
upload in interface PlatformFileCollector.Depictor<PlatformFileCollector>
- Parameters:
platformFile - Thet platform file to upload.destinationURI - The URI representing the destination of the platform file, either absolute or relative to the application.
- Throws:
java.lang.NullPointerException - if the given platform file and/or destination URI is null.
processEvent
public void processEvent(PlatformEvent event)
- Processes an event from the platform.
- Specified by:
processEvent in interface Depictor<PlatformFileCollector>- Overrides:
processEvent in class AbstractDepictor<PlatformFileCollector>
- Parameters:
event - The event to be processed.
- Throws:
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.
Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.