|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.events.KeyedEvent
wt.folder.FolderServiceEvent
Used to represent events occuring within the FolderService.
Supported API: true
Extendable: false
Field Summary | |
private Folder |
destinationFolder
The folder that the object is being moved to. |
private WTKeyedMap |
destinationFoldersToTargets
A mapping of source Folders to WTSets of FolderEntries that are being moved to the folders. |
static String |
POST_CHANGE_FOLDER
The event used to notify listeners that an object has changed folders. |
static String |
PRE_CHANGE_FOLDER
The event used to notify listeners that an object is about to change its folder. |
private Folder |
sourceFolder
The original folder of the object. |
private WTKeyedMap |
sourceFoldersToTargets
A mapping of source Folders to WTSets of FolderEntries that are being moved from the folders. |
private WTValuedMap |
targetsToDestinationFolders
A mapping between target entries and their destination folders This mapping is also the event target |
private WTValuedMap |
targetsToSourceFolders
A mapping between target entries and their source folders |
Fields inherited from class wt.events.KeyedEvent |
|
Constructor Summary | |
|
FolderServiceEvent(FolderService service,
String event_type,
FolderEntry target,
Folder source_folder,
Folder destinationFolder)
Deprecated. Replaced by FolderServiceEvent(String, FolderEntry, Folder, Folder) |
|
FolderServiceEvent(String event_type,
FolderEntry target,
Folder source_folder,
Folder destination_folder)
Construct a FolderServiceEvent with the pertinent information. |
(package private) |
FolderServiceEvent(String event_type,
WTValuedMap targets_to_destination_folders,
WTValuedMap targets_to_source_folders,
WTKeyedMap destinations_to_targets,
WTKeyedMap sources_to_targets)
Construct a FolderServiceEvent |
Method Summary | |
static String |
generateEventKey(String eventType)
Generate a key based on the class of the event and a user defined type. |
Folder |
getDestinationFolder()
Return the destination folder (the one the object is being moved to). |
WTKeyedMap |
getDestinationFoldersToTargets()
Valid for use with multi-object FolderServiceEvents. |
FolderService |
getService()
Deprecated. Replaced by FolderHelper.service |
Folder |
getSourceFolder()
Return the source folder of the target object (the one it's being changed from). |
WTKeyedMap |
getSourceFoldersToTargets()
Valid for use with multi-object FolderServiceEvents. |
FolderEntry |
getTarget()
Return the target of this event. |
WTValuedMap |
getTargetsToDestinations()
Valid for use with multi-object FolderServiceEvents. |
WTValuedMap |
getTargetsToSources()
Valid for use with multi-object FolderServiceEvents. |
KeyedEvent |
toMultiObjectEvent()
Converts a single object event to a multiple object event |
KeyedEvent[] |
toSingleObjectEvents()
Given a multi-object folder event returns an array of single object folder events. |
Methods inherited from class wt.events.KeyedEvent |
generateEventKey, generateEventKey, getConceptualClassname, getEventKey, getEventTarget, getEventType, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String PRE_CHANGE_FOLDER
public static final String POST_CHANGE_FOLDER
private final Folder sourceFolder
private final Folder destinationFolder
private final WTValuedMap targetsToDestinationFolders
private final WTValuedMap targetsToSourceFolders
private WTKeyedMap sourceFoldersToTargets
private WTKeyedMap destinationFoldersToTargets
Constructor Detail |
public FolderServiceEvent(FolderService service, String event_type, FolderEntry target, Folder source_folder, Folder destinationFolder)
public FolderServiceEvent(String event_type, FolderEntry target, Folder source_folder, Folder destination_folder)
event_type
- target
- source_folder
- destination_folder
- FolderServiceEvent(String event_type, WTValuedMap targets_to_destination_folders, WTValuedMap targets_to_source_folders, WTKeyedMap destinations_to_targets, WTKeyedMap sources_to_targets)
event_type
- targets_to_destination_folders
- A mapping of target FolderEntrys to destination folderstargets_to_source_folders
- A mapping of target FolderEntrys to source foldersdestinations_to_targets
- A mapping of destination Folders to WTSets of target FolderEntryssources_to_targets
- A mapping of source Folders to WTSets of target FolderEntrysMethod Detail |
public FolderService getService()
public FolderEntry getTarget()
public Folder getSourceFolder()
public Folder getDestinationFolder()
public static String generateEventKey(String eventType)
eventType
- the type of the event
public WTValuedMap getTargetsToDestinations()
public WTValuedMap getTargetsToSources()
public WTKeyedMap getSourceFoldersToTargets()
public WTKeyedMap getDestinationFoldersToTargets()
public KeyedEvent toMultiObjectEvent()
toMultiObjectEvent
in class KeyedEvent
public KeyedEvent[] toSingleObjectEvents() throws WTException
toSingleObjectEvents
in class KeyedEvent
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |