name.dhiller.jBorderLiner
Class BL_TB_ActiveBtn
java.lang.Object
name.dhiller.jBorderLiner.BL_ToolbarItem
name.dhiller.jBorderLiner.BL_TB_ActiveBtn
class BL_TB_ActiveBtn
- extends BL_ToolbarItem
- Version:
- 080419
- Author:
- Dietmar Hiller (Dhiller)
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BL_TB_ActiveBtn
BL_TB_ActiveBtn()
- Constructs the button to activate Keylistening
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 URLaArguments
- .Name = "KeyModifier",
.Name = "ToggleButton", .Value = true/falsexFrame
- - 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 instatus
- - true: button pressed, Keyhandler active
- false: button released, Keyhandler removed