org.openbp.jaspira.gui.clipboard
Class ClipboardPlugin.Events

java.lang.Object
  extended by org.openbp.jaspira.plugin.EventModule
      extended by org.openbp.jaspira.gui.clipboard.ClipboardPlugin.Events
All Implemented Interfaces:
JaspiraEventListener
Enclosing class:
ClipboardPlugin

public class ClipboardPlugin.Events
extends EventModule

Event module.


Field Summary
 
Fields inherited from class org.openbp.jaspira.plugin.EventModule
EVENT_CONSUMED, EVENT_HANDLED, EVENT_IGNORED, MODULE_POST_GLOBAL, MODULE_PRE_GLOBAL, MODULE_TREE
 
Constructor Summary
ClipboardPlugin.Events()
           
 
Method Summary
 JaspiraEventHandlerCode copy(JaspiraActionEvent je)
          Action event handler: Cause the currently focused plugin to copy its current selection to the clipboard.
 JaspiraEventHandlerCode cut(JaspiraActionEvent je)
          Action event handler: Cause the currently focused plugin to cut its current selection to the clipboard.
 JaspiraEventHandlerCode delete(JaspiraActionEvent je)
          Action event handler: Cause the currently focused plugin to delete its current selection.
 java.lang.String getName()
          The name of this module like "editor.file".
 JaspiraEventHandlerCode paste(JaspiraActionEvent je)
          Action event handler: Cause the currently focused plugin to paste the current clipboard entry.
 JaspiraEventHandlerCode updatestatus(JaspiraEvent je)
          Event handler: Updates the status of the standard clipboard actions according to the current plugin and the current clipboard contents.
 
Methods inherited from class org.openbp.jaspira.plugin.EventModule
eventFired, getEventActionNames, getForeignEventNames, getModuleType, getPriority, handleUnaccountedEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipboardPlugin.Events

public ClipboardPlugin.Events()
Method Detail

getName

public java.lang.String getName()
Description copied from class: EventModule
The name of this module like "editor.file". Decides which events will be received.

Specified by:
getName in class EventModule

cut

public JaspiraEventHandlerCode cut(JaspiraActionEvent je)
Action event handler: Cause the currently focused plugin to cut its current selection to the clipboard.

Parameters:
je - Action event
Returns:
EVENT_CONSUMED if the cut action was sucessfully performed, EVENT_IGNORED otherwise

delete

public JaspiraEventHandlerCode delete(JaspiraActionEvent je)
Action event handler: Cause the currently focused plugin to delete its current selection.

Parameters:
je - Action event
Returns:
EVENT_CONSUMED if the delete action was sucessfully performed, EVENT_IGNORED otherwise

copy

public JaspiraEventHandlerCode copy(JaspiraActionEvent je)
Action event handler: Cause the currently focused plugin to copy its current selection to the clipboard.

Parameters:
je - Action event
Returns:
EVENT_CONSUMED if the copy action was sucessfully performed, EVENT_IGNORED otherwise

paste

public JaspiraEventHandlerCode paste(JaspiraActionEvent je)
Action event handler: Cause the currently focused plugin to paste the current clipboard entry.

Parameters:
je - Action event
Returns:
EVENT_CONSUMED if the paste action was sucessfully performed, EVENT_IGNORED otherwise

updatestatus

public JaspiraEventHandlerCode updatestatus(JaspiraEvent je)
Event handler: Updates the status of the standard clipboard actions according to the current plugin and the current clipboard contents.

Parameters:
je - Event
Returns:
EVENT_HANDLED


Copyright © 2011. All Rights Reserved.