name.dhiller.jBorderLiner
Class BLKeyHandlerImpl

java.lang.Object
  extended by com.sun.star.lib.uno.helper.WeakBase
      extended by name.dhiller.jBorderLiner.BLKeyHandlerImpl
All Implemented Interfaces:
com.sun.star.awt.XKeyHandler, com.sun.star.lang.XEventListener, com.sun.star.lang.XTypeProvider, com.sun.star.uno.XInterface, com.sun.star.uno.XWeak, EventListener

 class BLKeyHandlerImpl
extends com.sun.star.lib.uno.helper.WeakBase
implements com.sun.star.awt.XKeyHandler

Version:
080127
Author:
d.hiller

Field Summary
private static String m_implementationName
           
private  com.sun.star.uno.XComponentContext m_xContext
           
private  com.sun.star.frame.XFrame m_xFrame
           
 
Fields inherited from class com.sun.star.lib.uno.helper.WeakBase
_mapImplementationIds, _mapTypes
 
Fields inherited from interface com.sun.star.awt.XKeyHandler
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.uno.XWeak
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO
 
Constructor Summary
BLKeyHandlerImpl(com.sun.star.frame.XFrame xFrame, com.sun.star.uno.XComponentContext context)
           
 
Method Summary
 void disposing(com.sun.star.lang.EventObject Source)
           
 boolean keyPressed(com.sun.star.awt.KeyEvent aEvent)
          react on key pressed: ESC: end key listening, ALT, CTRL, SHIFT+Num1..NUM9 do borders
 boolean keyReleased(com.sun.star.awt.KeyEvent aEvent)
           
 
Methods inherited from class com.sun.star.lib.uno.helper.WeakBase
finalize, getImplementationId, getTypes, queryAdapter
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_xContext

private final com.sun.star.uno.XComponentContext m_xContext

m_xFrame

private final com.sun.star.frame.XFrame m_xFrame

m_implementationName

private static final String m_implementationName
Constructor Detail

BLKeyHandlerImpl

BLKeyHandlerImpl(com.sun.star.frame.XFrame xFrame,
                 com.sun.star.uno.XComponentContext context)
Method Detail

disposing

public void disposing(com.sun.star.lang.EventObject Source)
Specified by:
disposing in interface com.sun.star.lang.XEventListener

keyPressed

public boolean keyPressed(com.sun.star.awt.KeyEvent aEvent)
react on key pressed: ESC: end key listening, ALT, CTRL, SHIFT+Num1..NUM9 do borders

Specified by:
keyPressed in interface com.sun.star.awt.XKeyHandler
Parameters:
aEvent - - com.sun.star.awt.KeyEvent: Event.KeyCode, .Modifiers
Returns:
false: key was not for me, true: do not process key

keyReleased

public boolean keyReleased(com.sun.star.awt.KeyEvent aEvent)
Specified by:
keyReleased in interface com.sun.star.awt.XKeyHandler