|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Platform
The platform on which Guise objects are being depicted.
| Method Summary | ||
|---|---|---|
long |
generateDepictID()
Generates a new depict ID unique to this session platform. |
|
GuiseApplication |
getApplication()
|
|
ClientProduct |
getClientProduct()
|
|
DepictContext |
getDepictContext()
Retrieves information and functionality related to the current depiction. |
|
DepictedObject |
getDepictedObject(long depictedObjectID)
Retrieves a depicted object that has been registered with the platform by the ID of the depicted object. |
|
java.util.concurrent.locks.Lock |
getDepictLock()
|
|
|
getDepictor(O depictedObject)
Determines the depictor appropriate for the given depicted object. |
|
Environment |
getEnvironment()
|
|
java.util.Queue<? extends PlatformMessage> |
getSendMessageQueue()
|
|
void |
registerDepictedObject(DepictedObject depictedObject)
Registers a depicted object so that it can interact with the platform. |
|
void |
selectPlatformFiles(boolean multiple,
ValueSelectListener<java.util.Collection<PlatformFile>> platformFileSelectListener)
Selects one or more files on the platform, using the appropriate selection functionality for the platform. |
|
void |
sendResource(java.net.URI resourceURI)
Sends a resource to the platform. |
|
void |
sendResource(java.net.URI resourceURI,
Bookmark bookmark)
Sends a resource to the platform. |
|
void |
sendResource(com.globalmentor.net.URIPath resourcePath)
Sends a resource to the platform. |
|
void |
sendResource(com.globalmentor.net.URIPath resourcePath,
Bookmark bookmark)
Sends a resource to the platform with the specified bookmark. |
|
void |
unregisterDepictedObject(DepictedObject depictedObject)
Unregisters a depicted object so that no longer interacts with the platform. |
|
| Method Detail |
|---|
GuiseApplication getApplication()
Environment getEnvironment()
long generateDepictID()
<O extends DepictedObject> Depictor<? super O> getDepictor(O depictedObject)
O - The type of depicted object.depictedObject - The depicted object for which a depictor should be returned.
null if no depictor is registered.
java.lang.IllegalStateException - if the registered depictor could not be instantiated for some reason.void registerDepictedObject(DepictedObject depictedObject)
depictedObject - The depicted object to register.
java.lang.NullPointerException - if the given depicted object is null.void unregisterDepictedObject(DepictedObject depictedObject)
depictedObject - The depicted object to unregister.
java.lang.NullPointerException - if the given depicted object is null.DepictedObject getDepictedObject(long depictedObjectID)
depictedObjectID - The ID of the depicted object to retrieve.
null if there is no depicted object registered with this platform with the given ID.ClientProduct getClientProduct()
java.util.Queue<? extends PlatformMessage> getSendMessageQueue()
java.util.concurrent.locks.Lock getDepictLock()
DepictContext getDepictContext()
java.lang.IllegalStateException - if no depict context can be returned in the current depiction state.
void selectPlatformFiles(boolean multiple,
ValueSelectListener<java.util.Collection<PlatformFile>> platformFileSelectListener)
multiple - Whether multiple files should be allowed to be selected.platformFileSelectListener - The listener that will be notified when platform files are selected.void sendResource(com.globalmentor.net.URIPath resourcePath)
resourcePath - The path of the resource to send, relative to the application.
java.lang.NullPointerException - if the given path is null.
java.lang.IllegalArgumentException - if the given string is not a path.void sendResource(java.net.URI resourceURI)
resourceURI - The URI of the resource to send, relative to the application.
java.lang.NullPointerException - if the given URI is null.
void sendResource(com.globalmentor.net.URIPath resourcePath,
Bookmark bookmark)
resourcePath - The path of the resource to send, relative to the application.bookmark - The bookmark at the given path, or null if there is no bookmark.
java.lang.NullPointerException - if the given path is null.
void sendResource(java.net.URI resourceURI,
Bookmark bookmark)
resourceURI - The URI of the resource to send, relative to the application.bookmark - The bookmark at the given path, or null if there is no bookmark.
java.lang.NullPointerException - if the given URI is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||