name.dhiller.jBorderLiner
Class BL_TB_SelectLSBtn

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

 class BL_TB_SelectLSBtn
extends BL_ToolbarItem

Version:
120204 LineStyles (inner, distance, outer): 0,1,2: SOLID, DOTTED, DASHED (0, 0, w) 3: DOUBLE (w, w(min. 35), w) 4: THINTHICK_SMALLGAP (26, 35, w) 5: THINTHICK_MEDIUMGAP (w/2, w/2(min 35), w) 6: THINTHICK_LARGEGAP (26, w(min 35), 53) 7: THICKTHIN_SMALLGAP (w, 35, 26) 8: THICKTHIN_MEDIUMGAP (w, w/2(min 35), w/2) 9: THICKTHIN_LARGEGAP (53, w(min 35), 26) 10,11:EMBOSSED, ENGRAVED (w/2, w(min 35), w/2) 12:OUTSET (w, w(min 35), 26) 13:INSET (26, w(min 35), w)
Author:
Dhiller

Field Summary
(package private) static short icurrentLinestyle
           
private static short iInitialValue
           
private static short iLowerLimit
           
private static short iStep
           
private static short iUpperLimit
           
private static short[][] LSList
           
 
Fields inherited from class name.dhiller.jBorderLiner.BL_ToolbarItem
m_URL
 
Constructor Summary
BL_TB_SelectLSBtn()
          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)
          dispatch - got a message, act
(package private)  short GetLineStyle2()
          GetLineStyle for BorderLine2
(package private)  short[][] GetLSList()
           
(package private)  void Init(com.sun.star.frame.XFrame xFrame, com.sun.star.frame.XStatusListener xControl, com.sun.star.util.URL aURL)
          init - Initialize Toolbarbutton to select the linestyle
(package private)  short LinePosToLineStyle(short LP)
          convert the LineStyle to the Position in the List
(package private)  short LineStyleToListPos(int LS)
          convert the LineStyle to the Position in the List
(package private)  void setLineNumber(int iLS)
          set line style need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change
(package private)  void setLineNumberFromTB(int iLP)
          set line style need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change
 
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

icurrentLinestyle

static short icurrentLinestyle

LSList

private static final short[][] LSList

iInitialValue

private static final short iInitialValue
See Also:
Constant Field Values

iLowerLimit

private static final short iLowerLimit
See Also:
Constant Field Values

iUpperLimit

private static final short iUpperLimit
See Also:
Constant Field Values

iStep

private static final short iStep
See Also:
Constant Field Values
Constructor Detail

BL_TB_SelectLSBtn

BL_TB_SelectLSBtn()
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)
init - Initialize Toolbarbutton to select the linestyle

Parameters:
com.sun.star.frame.XStatusListener - xControl
com.sun.star.util.URL - my URL

dispatch

void dispatch(com.sun.star.util.URL aURL,
              com.sun.star.beans.PropertyValue[] aArguments)
dispatch - got a message, act

Overrides:
dispatch in class BL_ToolbarItem
Parameters:
com.sun.star.util.URL - my URL
com.sun.star.beans.PropertyValue[] - Arguments, Name = "KeyModifier", "Value"

setLineNumberFromTB

void setLineNumberFromTB(int iLP)
set line style need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change

Parameters:
iLS - - Linestyle

GetLineStyle2

short GetLineStyle2()
GetLineStyle for BorderLine2

Returns:
icurrentLinestyle

setLineNumber

void setLineNumber(int iLS)
set line style need to write value to toolbar again in case user entered data manually and also to inform all toolbars of the change

Parameters:
iLS - - Linestyle

GetLSList

short[][] GetLSList()

LineStyleToListPos

short LineStyleToListPos(int LS)
convert the LineStyle to the Position in the List

Parameters:
ListStyle -
Returns:

LinePosToLineStyle

short LinePosToLineStyle(short LP)
convert the LineStyle to the Position in the List

Parameters:
ListStyle -
Returns: