info.magnolia.cms.gui.control
Class TreeColumn

java.lang.Object
  extended by info.magnolia.cms.gui.control.ControlImpl
      extended by info.magnolia.cms.gui.control.TreeColumn
All Implemented Interfaces:
Control
Direct Known Subclasses:
TemplateColumn

public class TreeColumn
extends ControlImpl

Version:
2.0
Author:
Vinzenz Wyser

Field Summary
static String EDIT_CSSCLASS_EDIT
           
static String EDIT_CSSCLASS_SELECT
           
static String EDIT_JSSAVE
           
static String EDIT_NAMEADDITION
           
static String EMPTY
           
 
Fields inherited from class info.magnolia.cms.gui.control.ControlImpl
BUTTONSTATE_DISABLED, BUTTONSTATE_MOUSEDOWN, BUTTONSTATE_MOUSEOVER, BUTTONSTATE_NORMAL, BUTTONSTATE_PUSHED, BUTTONTYPE_CHECKBOX, BUTTONTYPE_PUSHBUTTON, BUTTONTYPE_RADIO, CSSCLASS_CONTROLBAR, CSSCLASS_CONTROLBARSMALL, CSSCLASS_CONTROLBUTTON, CSSCLASS_CONTROLBUTTONSMALL, ENCODING_NO, ENCRYPTION_HASH_BCRYPT, ENCRYPTION_HASH_SHA, ENCRYPTION_NO, ENCRYPTION_NO_ENCODING_BASE64, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE
 
Constructor Summary
TreeColumn()
           
TreeColumn(String javascriptTree, javax.servlet.http.HttpServletRequest request)
          Deprecated. use the empty constuctor
 
Method Summary
 void addKeyValue(String key, String value)
           
static TreeColumn createActivationColumn(Tree tree, String title)
           
static TreeColumn createColumn(Tree tree, String title)
           
static TreeColumn createColumn(Tree tree, String title, TreeColumnHtmlRenderer htmlRenderer)
           
static TreeColumn createIconColumn(Tree tree, String title, TreeColumnHtmlRenderer htmlRenderer)
           
static TreeColumn createLabelColumn(Tree tree, String title, boolean editable)
           
static TreeColumn createMetaDataColumn(Tree tree, String title, String name, String dateFormat)
           
static TreeColumn createNodeDataColumn(Tree tree, String title, String nodeDataName, boolean editable)
           
static TreeColumn createNodeDataColumn(Tree tree, String title, String nodeDataName, String dateFormat)
           
static TreeColumn createNodeDataColumn(Tree tree, String title, String nodeDataName, TreeColumnHtmlRenderer renderer)
           
 String getDateFormat()
           
 String getHtml()
          Returns an empty string.
 String getHtmlEdit()
           
 TreeColumnHtmlRenderer getHtmlRenderer()
           
 boolean getIconsActivation()
           
 boolean getIconsPermission()
           
 boolean getIsIcons()
           
 boolean getIsLabel()
           
 boolean getIsMeta()
           
 boolean getIsNodeDataType()
           
 boolean getIsNodeDataValue()
           
 String getJavascriptTree()
           
 Map getKeyValue()
           
 String getKeyValue(String key)
           
 boolean getPermissionWrite()
           
 String getTitle()
           
 int getWidth()
           
 void setDateFormat(String s)
           
 void setHtmlEdit()
           
 void setHtmlEdit(String s)
           
 void setHtmlRenderer(TreeColumnHtmlRenderer htmlRenderer)
           
 void setIconsActivation(boolean b)
           
 void setIconsPermission(boolean b)
           
 void setIsIcons(boolean b)
           
 void setIsLabel(boolean b)
           
 void setIsMeta(boolean b)
           
 void setIsNodeDataType(boolean b)
           
 void setIsNodeDataValue(boolean b)
           
 void setJavascriptTree(String variableName)
           set the name of the javascript tree object
 void setKeyValue(Map h)
           
 void setPermissionWrite(boolean b)
           
 void setTitle(String s)
           
 void setWidth(int i)
           set the name relative width of the column; default is 1
 
Methods inherited from class info.magnolia.cms.gui.control.ControlImpl
escapeHTML, getCssClass, getCssStyles, getCssStyles, getCssStyles, getEncoding, getEvents, getHtmlCssClass, getHtmlCssStyles, getHtmlEvents, getHtmlId, getHtmlInter, getHtmlInter, getHtmlPost, getHtmlPost, getHtmlPre, getHtmlPre, getHtmlSaveInfo, getId, getIsRichEditValue, getLabel, getName, getNodeCollectionName, getNodeCollectionName, getNodeName, getNodeName, getPath, getRequest, getSaveInfo, getType, getValue, getValues, getValueType, getWebsiteNode, println, setCssClass, setCssStyles, setCssStyles, setEncoding, setEvent, setEvent, setEvents, setHtmlInter, setHtmlPost, setHtmlPre, setId, setIsRichEditValue, setLabel, setName, setNodeCollectionName, setNodeName, setPath, setRequest, setSaveInfo, setType, setType, setValue, setValues, setValueType, setWebsiteNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDIT_CSSCLASS_EDIT

public static final String EDIT_CSSCLASS_EDIT
See Also:
Constant Field Values

EDIT_CSSCLASS_SELECT

public static final String EDIT_CSSCLASS_SELECT
See Also:
Constant Field Values

EDIT_NAMEADDITION

public static final String EDIT_NAMEADDITION
See Also:
Constant Field Values

EDIT_JSSAVE

public static final String EDIT_JSSAVE
See Also:
Constant Field Values

EMPTY

public static final String EMPTY
See Also:
Constant Field Values
Constructor Detail

TreeColumn

public TreeColumn()

TreeColumn

public TreeColumn(String javascriptTree,
                  javax.servlet.http.HttpServletRequest request)
Deprecated. use the empty constuctor

Constructor.

Parameters:
javascriptTree - name of the js variable
request - http request, needed for context path
Method Detail

setIsMeta

public void setIsMeta(boolean b)

getIsMeta

public boolean getIsMeta()

setIsIcons

public void setIsIcons(boolean b)

getIsIcons

public boolean getIsIcons()

setIconsActivation

public void setIconsActivation(boolean b)

getIconsActivation

public boolean getIconsActivation()

setIconsPermission

public void setIconsPermission(boolean b)

getIconsPermission

public boolean getIconsPermission()

setIsLabel

public void setIsLabel(boolean b)

getIsLabel

public boolean getIsLabel()

setIsNodeDataValue

public void setIsNodeDataValue(boolean b)

getIsNodeDataValue

public boolean getIsNodeDataValue()

setIsNodeDataType

public void setIsNodeDataType(boolean b)

getIsNodeDataType

public boolean getIsNodeDataType()

setDateFormat

public void setDateFormat(String s)

getDateFormat

public String getDateFormat()

setTitle

public void setTitle(String s)

getTitle

public String getTitle()

setWidth

public void setWidth(int i)

set the name relative width of the column; default is 1


getWidth

public int getWidth()

setPermissionWrite

public void setPermissionWrite(boolean b)

getPermissionWrite

public boolean getPermissionWrite()

setJavascriptTree

public void setJavascriptTree(String variableName)

set the name of the javascript tree object

Parameters:
variableName -

getJavascriptTree

public String getJavascriptTree()

setKeyValue

public void setKeyValue(Map h)

getKeyValue

public Map getKeyValue()

getKeyValue

public String getKeyValue(String key)

addKeyValue

public void addKeyValue(String key,
                        String value)

setHtmlEdit

public void setHtmlEdit(String s)

getHtmlEdit

public String getHtmlEdit()

setHtmlEdit

public void setHtmlEdit()

getHtml

public String getHtml()
Description copied from class: ControlImpl
Returns an empty string.

Specified by:
getHtml in interface Control
Overrides:
getHtml in class ControlImpl
Returns:
html
See Also:
Control.getHtml()

getHtmlRenderer

public TreeColumnHtmlRenderer getHtmlRenderer()
Returns:
Returns the htmlRenderer.

setHtmlRenderer

public void setHtmlRenderer(TreeColumnHtmlRenderer htmlRenderer)
Parameters:
htmlRenderer - Set the delecate Object which will render the html column for each row

createColumn

public static TreeColumn createColumn(Tree tree,
                                      String title)

createColumn

public static TreeColumn createColumn(Tree tree,
                                      String title,
                                      TreeColumnHtmlRenderer htmlRenderer)

createLabelColumn

public static TreeColumn createLabelColumn(Tree tree,
                                           String title,
                                           boolean editable)

createNodeDataColumn

public static TreeColumn createNodeDataColumn(Tree tree,
                                              String title,
                                              String nodeDataName,
                                              boolean editable)

createNodeDataColumn

public static TreeColumn createNodeDataColumn(Tree tree,
                                              String title,
                                              String nodeDataName,
                                              String dateFormat)

createNodeDataColumn

public static TreeColumn createNodeDataColumn(Tree tree,
                                              String title,
                                              String nodeDataName,
                                              TreeColumnHtmlRenderer renderer)

createMetaDataColumn

public static TreeColumn createMetaDataColumn(Tree tree,
                                              String title,
                                              String name,
                                              String dateFormat)

createIconColumn

public static TreeColumn createIconColumn(Tree tree,
                                          String title,
                                          TreeColumnHtmlRenderer htmlRenderer)

createActivationColumn

public static TreeColumn createActivationColumn(Tree tree,
                                                String title)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.