name.dhiller.jBorderLiner
Class BL_TB_ActiveBtn

java.lang.Object
  extended by name.dhiller.jBorderLiner.BL_ToolbarItem
      extended by name.dhiller.jBorderLiner.BL_TB_ActiveBtn

 class BL_TB_ActiveBtn
extends BL_ToolbarItem

Version:
080419
Author:
Dietmar Hiller (Dhiller)

Field Summary
 
Fields inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
m_URL
 
Constructor Summary
BL_TB_ActiveBtn()
          Constructs the button to activate Keylistening
 
Method Summary
(package private)  void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments, com.sun.star.frame.XFrame xFrame)
          dispatch - react on click on Active-Button active contains state
(package private)  void Init(com.sun.star.frame.XFrame xFrame, com.sun.star.frame.XStatusListener xControl, com.sun.star.util.URL aURL, com.sun.star.uno.XComponentContext xContext, boolean bMouseHandling)
           
(package private)  void setStatus(com.sun.star.frame.XFrame xFrame, boolean status)
          set status of button and (de-)activate KeyHandler
 
Methods inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
changeStatusFrame, dispatch, GetControl, getControlElement, getControlElementFromFrame, GetFrame, Init, removeContext, SendCommandTo, sendCommandToAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BL_TB_ActiveBtn

BL_TB_ActiveBtn()
Constructs the button to activate Keylistening

Method Detail

Init

void Init(com.sun.star.frame.XFrame xFrame,
          com.sun.star.frame.XStatusListener xControl,
          com.sun.star.util.URL aURL,
          com.sun.star.uno.XComponentContext xContext,
          boolean bMouseHandling)
Parameters:
bMouseHandling - true/false to add MouseHandler

dispatch

void dispatch(com.sun.star.util.URL aURL,
              com.sun.star.beans.PropertyValue[] aArguments,
              com.sun.star.frame.XFrame xFrame)
dispatch - react on click on Active-Button active contains state

Parameters:
aURL - this URL
aArguments - .Name = "KeyModifier", .Name = "ToggleButton", .Value = true/false
xFrame - - this Frame

setStatus

void setStatus(com.sun.star.frame.XFrame xFrame,
               boolean status)
set status of button and (de-)activate KeyHandler

Parameters:
xFrame - - frame the button is in
status - - true: button pressed, Keyhandler active - false: button released, Keyhandler removed