nu.zoom.ldap.eon.clipboard.impl
Class DirectoryClipboardImpl

java.lang.Object
  extended by nu.zoom.ldap.eon.clipboard.impl.DirectoryClipboardImpl
All Implemented Interfaces:
DirectoryClipboard

public class DirectoryClipboardImpl
extends Object
implements DirectoryClipboard

Version:
$Revision: 1.9 $
Author:
$Author: johan $

Constructor Summary
DirectoryClipboardImpl(org.ops4j.gaderian.Messages messages, Workbench workbench, DirectoryEventListenerRegistry eventRegistry)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryClipboardImpl

public DirectoryClipboardImpl(org.ops4j.gaderian.Messages messages,
                              Workbench workbench,
                              DirectoryEventListenerRegistry eventRegistry)
Method Detail

addCopy

public void addCopy(DirectoryTreeObject sourceObject)
Description copied from interface: DirectoryClipboard
Add a Name (typically from a selected DirectoryTree node) to the queue.

Specified by:
addCopy in interface DirectoryClipboard
Parameters:
sourceObject - The node marked for copy.

addCut

public void addCut(DirectoryTreeObject sourceObject)
Description copied from interface: DirectoryClipboard
Add a Name (typically from a selected DirectoryTree node) to the queue.

Specified by:
addCut in interface DirectoryClipboard
Parameters:
sourceObject - The node marked for cut (move).

removeClipboardItem

public void removeClipboardItem(String id)
Description copied from interface: DirectoryClipboard
Remove an item from the clipboard.

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

triggerPasteAction

public void triggerPasteAction(DirectoryTreeObject targetObject)
                        throws BackendException
Description copied from interface: DirectoryClipboard
Trigger the next item on the queue with the given target.

Specified by:
triggerPasteAction in interface DirectoryClipboard
Parameters:
targetObject - The node that was marked as the paste target.
Throws:
BackendException

addDirectoyClipboardListener

public void addDirectoyClipboardListener(DirectoryClipboardListener listener)
Description copied from interface: DirectoryClipboard
Add a listener for changes to the clipboard.

Specified by:
addDirectoyClipboardListener in interface DirectoryClipboard
Parameters:
listener - The listener to add.

removeDirectoyClipboardListener

public void removeDirectoyClipboardListener(DirectoryClipboardListener listener)
Description copied from interface: DirectoryClipboard
Remove a preciously registered listener.

Specified by:
removeDirectoyClipboardListener in interface DirectoryClipboard


Copyright © 2011. All Rights Reserved.