net.sf.genuine.services
Interface ClipboardService

All Superinterfaces:
Service

public interface ClipboardService
extends Service

Defines the functionality of a clipboard service that is called by the clipboard actions. A module that would like to provide clipboard functionality has to register an object of a class that implements this interface at the service broker. Whenever a clipboard action is performed by the user, that service object will be called if it is active. Therefore, it is the responsibility of the object to active only if it is appropriate to perform a clipboard action.

For example, a text document should accept a copy action only if the text document's frame is selected by the user. Therefore, the clipboard service has to track the frame's selection state and return that it is active only if the frame is selected.

Author:
Tim Wellhausen
See Also:
CutAction, CopyAction, PasteAction

Method Summary
 void copy()
          A 'copy' operation should be performed.
 void cut()
          A 'cut' operation should be performed.
 void paste()
          A 'paste' operation should be performed.
 
Methods inherited from interface net.sf.genuine.organizer.Service
isActive
 

Method Detail

cut

public void cut()
A 'cut' operation should be performed.


copy

public void copy()
A 'copy' operation should be performed.


paste

public void paste()
A 'paste' operation should be performed.