nu.zoom.ldap.eon.clipboard
Interface DirectoryClipboard

All Known Implementing Classes:
DirectoryClipboardImpl

public interface DirectoryClipboard

Queue of items that have been marked for copy or cut.

Version:
$Revision: 1.6 $
Author:
$Author: johan $

Method Summary
 void addCopy(DirectoryTreeObject sourceObject)
          Add a Name (typically from a selected DirectoryTree node) to the queue.
 void addCut(DirectoryTreeObject sourceObject)
          Add a Name (typically from a selected DirectoryTree node) to the queue.
 void addDirectoyClipboardListener(DirectoryClipboardListener listener)
          Add a listener for changes to the clipboard.
 void removeClipboardItem(String id)
          Remove an item from the clipboard.
 void removeDirectoyClipboardListener(DirectoryClipboardListener listener)
          Remove a preciously registered listener.
 void triggerPasteAction(DirectoryTreeObject targetObject)
          Trigger the next item on the queue with the given target.
 

Method Detail

addDirectoyClipboardListener

void addDirectoyClipboardListener(DirectoryClipboardListener listener)
Add a listener for changes to the clipboard.

Parameters:
listener - The listener to add.

removeDirectoyClipboardListener

void removeDirectoyClipboardListener(DirectoryClipboardListener listener)
Remove a preciously registered listener.

Parameters:
listener -

addCut

void addCut(DirectoryTreeObject sourceObject)
Add a Name (typically from a selected DirectoryTree node) to the queue.

Parameters:
sourceObject - The node marked for cut (move).

addCopy

void addCopy(DirectoryTreeObject sourceObject)
Add a Name (typically from a selected DirectoryTree node) to the queue.

Parameters:
sourceObject - The node marked for copy.

triggerPasteAction

void triggerPasteAction(DirectoryTreeObject targetObject)
                        throws BackendException
Trigger the next item on the queue with the given target.

Parameters:
targetObject - The node that was marked as the paste target.
Throws:
BackendException

removeClipboardItem

void removeClipboardItem(String id)
Remove an item from the clipboard.

Parameters:
id - The id of the item, may not be null. If the item is no longer in the clipboard this method does nothing.


Copyright © 2011. All Rights Reserved.