com.ibm.di.admin.ui
Class CopyPasteSupport

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by com.ibm.di.admin.ContextMenu
          extended by com.ibm.di.admin.ui.CopyPasteSupport
All Implemented Interfaces:
MouseListener, EventListener

public class CopyPasteSupport
extends ContextMenu


Field Summary
 
Fields inherited from class com.ibm.di.admin.ContextMenu
listener, menu, resource, source
 
Constructor Summary
CopyPasteSupport(ActionListener listener, JComponent source)
           
CopyPasteSupport(ActionListener listener, JComponent source, String resource)
           
 
Method Summary
 void evaluatePopup(MouseEvent event)
          Shows the defined popup menu on the component.
 
Methods inherited from class com.ibm.di.admin.ContextMenu
addClassMenu, addMenuItem, addMenus, mousePressed, mouseReleased
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyPasteSupport

public CopyPasteSupport(ActionListener listener,
                        JComponent source)

CopyPasteSupport

public CopyPasteSupport(ActionListener listener,
                        JComponent source,
                        String resource)
Method Detail

evaluatePopup

public void evaluatePopup(MouseEvent event)
Shows the defined popup menu on the component. If the source component is one of the supported classes this method will also adjust the selection. If you right click an already selected row/item the selection is left alone, otherwise the nearest point of the right click is selected.

Overrides:
evaluatePopup in class ContextMenu