org.icepdf.ri.common
Class ComponentKeyBinding

java.lang.Object
  extended by org.icepdf.ri.common.ComponentKeyBinding

public class ComponentKeyBinding
extends java.lang.Object

Utility for adding key bindings to a view container for common functionality usually handled by the existence of menu key listeners. This class currently only adds the copy text keyboard command (ctr-c) to view container but can be easily extended to handle other keyboard mappings.

Since:
4.2.2

Constructor Summary
ComponentKeyBinding()
           
 
Method Summary
static void install(SwingController controller, javax.swing.JComponent viewerContainer)
          Installs the component key binding on the specified JComponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentKeyBinding

public ComponentKeyBinding()
Method Detail

install

public static void install(SwingController controller,
                           javax.swing.JComponent viewerContainer)
Installs the component key binding on the specified JComponent.

Parameters:
controller - SwingController used by various keyboard commands
viewerContainer - view container to add keyboard mappings too