name.dhiller.jBorderLiner
Class BL_TB_SelectColorBtn

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

 class BL_TB_SelectColorBtn
extends BL_ToolbarItem

Version:
080507
Author:
Dietmar Hiller (dhiller)

Field Summary
(package private) static boolean active
           
(package private)  Color currentColor
           
(package private) static String m_sDlgDir
           
(package private) static String m_sDlgHue
           
(package private) static String m_sDlgName
           
(package private) static com.sun.star.uno.XComponentContext m_xContext
           
 
Fields inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
m_URL
 
Constructor Summary
BL_TB_SelectColorBtn()
          Creates a new instance of BL_TB_ActiveBtn
 
Method Summary
(package private)  void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] aArguments)
          Exchange data with toolbar item
(package private)  int GetColor()
           
(package private)  void Init(com.sun.star.frame.XFrame xFrame, com.sun.star.frame.XStatusListener xControl, com.sun.star.util.URL aURL, String sDlgDir, String sDlgName, String sDlgHue, com.sun.star.uno.XComponentContext xContext)
          Init DlgButton
(package private)  void setColor(int inColor)
          loads the color
 
Methods inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
changeStatusFrame, 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
 

Field Detail

currentColor

Color currentColor

m_sDlgDir

static String m_sDlgDir

m_sDlgName

static String m_sDlgName

m_sDlgHue

static String m_sDlgHue

m_xContext

static com.sun.star.uno.XComponentContext m_xContext

active

static boolean active
Constructor Detail

BL_TB_SelectColorBtn

BL_TB_SelectColorBtn()
Creates a new instance of BL_TB_ActiveBtn

Method Detail

Init

void Init(com.sun.star.frame.XFrame xFrame,
          com.sun.star.frame.XStatusListener xControl,
          com.sun.star.util.URL aURL,
          String sDlgDir,
          String sDlgName,
          String sDlgHue,
          com.sun.star.uno.XComponentContext xContext)
Init DlgButton

Parameters:
xFrame - - Frame of control
xControl - - StatusListener
aURL - - URL to Toolbarbutton
sDlgDir - - URL of directory with dialog
sDlgName - - Name of dialog
sDlgHue - - URL to image of hue

dispatch

void dispatch(com.sun.star.util.URL aURL,
              com.sun.star.beans.PropertyValue[] aArguments)
Exchange data with toolbar item

Overrides:
dispatch in class BL_ToolbarItem
Parameters:
aURL -
aArguments - (.Name="SetColor", .Value=Color), (.Name=else, call dialog)

setColor

void setColor(int inColor)
loads the color

Parameters:
inColor - - color loaded

GetColor

int GetColor()