- java.lang.Object
-
- org.icepdf.ri.common.ComponentKeyBinding
-
public class ComponentKeyBinding extends 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
Constructors Constructor Description ComponentKeyBinding()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinstall(Controller controller, JComponent viewerContainer)Installs the component key binding on the specified JComponent.
-
-
-
Method Detail
-
install
public static void install(Controller controller, JComponent viewerContainer)
Installs the component key binding on the specified JComponent.- Parameters:
controller- Controller used by various keyboard commandsviewerContainer- view container to add keyboard mappings too
-
-