com.jalios.jcms.widget
Class WikiToolbar

java.lang.Object
  extended by com.jalios.jcms.widget.WikiToolbar

public class WikiToolbar
extends Object


Field Summary
protected  String contextPath
           
protected  String imagemap
           
protected static int IMAGEMAP_TOOLBAR_LENGTH
           
protected  boolean includeJS
           
protected  boolean isImageMap
           
protected  boolean isLargeBar
           
protected  boolean isWikiMap
           
protected  int[] items
           
protected  Member loggedMember
           
protected  int offset1
           
protected  int offset2
           
protected  String toolbar
           
protected static int[][] TOOLBAR_COORDINATE
           
protected static int[] TOOLBAR_ITEM_FULL
           
protected static int[] TOOLBAR_ITEM_HELP
           
protected static int[] TOOLBAR_ITEM_SHORT
           
protected static String TOOLBAR_JAVASCRIPT
           
protected static String[] TOOLBAR_NAMES
           
protected  String[] toolbarLabels
           
protected  String userLang
           
 
Constructor Summary
WikiToolbar(JcmsContext ctx)
           
 
Method Summary
protected  void getCoordinate(int item, int offset, StringBuffer sb)
          Print the coordinate for a given item.
protected  void getWikiArea(int item, int offset, StringBuffer sb)
          Print the WikiArea I18N for a given items.
protected  void initToolbarLabels()
          All the labels for toolbar items
protected  void printImageMapMap(StringBuffer sb)
          Returns a String representing the Map for all wiki toolbars
 String printImageMapToolbar()
          Returns a String representing the imagemap toolbar
protected  void printWikiMap(StringBuffer sb)
          Returns a String representing the Map for all wiki toolbars
 String printWikiToolbar()
          Returns a String representing the wiki toolbar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOOLBAR_JAVASCRIPT

protected static final String TOOLBAR_JAVASCRIPT
See Also:
Constant Field Values

TOOLBAR_COORDINATE

protected static final int[][] TOOLBAR_COORDINATE

TOOLBAR_NAMES

protected static String[] TOOLBAR_NAMES

TOOLBAR_ITEM_FULL

protected static int[] TOOLBAR_ITEM_FULL

TOOLBAR_ITEM_SHORT

protected static int[] TOOLBAR_ITEM_SHORT

TOOLBAR_ITEM_HELP

protected static int[] TOOLBAR_ITEM_HELP

IMAGEMAP_TOOLBAR_LENGTH

protected static final int IMAGEMAP_TOOLBAR_LENGTH
See Also:
Constant Field Values

toolbarLabels

protected String[] toolbarLabels

userLang

protected String userLang

contextPath

protected String contextPath

toolbar

protected String toolbar

imagemap

protected String imagemap

loggedMember

protected Member loggedMember

items

protected int[] items

offset1

protected int offset1

offset2

protected int offset2

isLargeBar

protected boolean isLargeBar

includeJS

protected boolean includeJS

isWikiMap

protected boolean isWikiMap

isImageMap

protected boolean isImageMap
Constructor Detail

WikiToolbar

public WikiToolbar(JcmsContext ctx)
Method Detail

initToolbarLabels

protected void initToolbarLabels()
All the labels for toolbar items


printWikiToolbar

public String printWikiToolbar()
Returns a String representing the wiki toolbar

Returns:
String the wikitoolbar

printWikiMap

protected void printWikiMap(StringBuffer sb)
Returns a String representing the Map for all wiki toolbars


printImageMapToolbar

public String printImageMapToolbar()
Returns a String representing the imagemap toolbar

Returns:
String the imagemap toolbar

printImageMapMap

protected void printImageMapMap(StringBuffer sb)
Returns a String representing the Map for all wiki toolbars


getWikiArea

protected void getWikiArea(int item,
                           int offset,
                           StringBuffer sb)
Print the WikiArea I18N for a given items.

Parameters:
item - the item index
offset - the offset to apply for the given toolbar
sb - the StringBuffer to fill

getCoordinate

protected void getCoordinate(int item,
                             int offset,
                             StringBuffer sb)
Print the coordinate for a given item.

Parameters:
item - the item index
offset - the offset to apply for the given toolbar
sb - the StringBuffer to fill


Copyright © 2001-2007 Jalios SA. All Rights Reserved.