info.magnolia.cms.gui.control
Class TreeColumn
java.lang.Object
info.magnolia.cms.gui.control.ControlImpl
info.magnolia.cms.gui.control.TreeColumn
- All Implemented Interfaces:
- Control
public class TreeColumn
- extends ControlImpl
- Version:
- 2.0
- Author:
- Vinzenz Wyser
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_BASE64, ENCODING_NO, ENCODING_UNIX, RICHEDIT_FCK, RICHEDIT_KUPU, RICHEDIT_NONE, VALUETYPE_MULTIPLE, VALUETYPE_SINGLE |
Constructor Summary |
TreeColumn()
|
TreeColumn(java.lang.String javascriptTree,
javax.servlet.http.HttpServletRequest request)
Deprecated. use the empty constuctor |
Method Summary |
void |
addKeyValue(java.lang.String key,
java.lang.String value)
|
static TreeColumn |
createActivationColumn(Tree tree,
java.lang.String title)
|
static TreeColumn |
createColumn(Tree tree,
java.lang.String title)
|
static TreeColumn |
createColumn(Tree tree,
java.lang.String title,
TreeColumnHtmlRenderer htmlRenderer)
|
static TreeColumn |
createIconColumn(Tree tree,
java.lang.String title,
TreeColumnHtmlRenderer htmlRenderer)
|
static TreeColumn |
createLabelColumn(Tree tree,
java.lang.String title,
boolean editable)
|
static TreeColumn |
createMetaDataColumn(Tree tree,
java.lang.String title,
java.lang.String name,
java.lang.String dateFormat)
|
static TreeColumn |
createNodeDataColumn(Tree tree,
java.lang.String title,
java.lang.String nodeDataName,
boolean editable)
|
static TreeColumn |
createNodeDataColumn(Tree tree,
java.lang.String title,
java.lang.String nodeDataName,
java.lang.String dateFormat)
|
static TreeColumn |
createNodeDataColumn(Tree tree,
java.lang.String title,
java.lang.String nodeDataName,
TreeColumnHtmlRenderer renderer)
|
java.lang.String |
getDateFormat()
|
java.lang.String |
getHtml()
Returns an empty string. |
java.lang.String |
getHtmlEdit()
|
TreeColumnHtmlRenderer |
getHtmlRenderer()
|
boolean |
getIconsActivation()
|
boolean |
getIconsPermission()
|
boolean |
getIsIcons()
|
boolean |
getIsLabel()
|
boolean |
getIsMeta()
|
boolean |
getIsNodeDataType()
|
boolean |
getIsNodeDataValue()
|
java.lang.String |
getJavascriptTree()
|
java.util.Map |
getKeyValue()
|
java.lang.String |
getKeyValue(java.lang.String key)
|
boolean |
getPermissionWrite()
|
java.lang.String |
getTitle()
|
int |
getWidth()
|
void |
setDateFormat(java.lang.String s)
|
void |
setHtmlEdit()
|
void |
setHtmlEdit(java.lang.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(java.lang.String variableName)
set the name of the javascript tree object |
void |
setKeyValue(java.util.Map h)
|
void |
setPermissionWrite(boolean b)
|
void |
setTitle(java.lang.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 |
EDIT_CSSCLASS_EDIT
public static final java.lang.String EDIT_CSSCLASS_EDIT
- See Also:
- Constant Field Values
EDIT_CSSCLASS_SELECT
public static final java.lang.String EDIT_CSSCLASS_SELECT
- See Also:
- Constant Field Values
EDIT_NAMEADDITION
public static final java.lang.String EDIT_NAMEADDITION
- See Also:
- Constant Field Values
EDIT_JSSAVE
public static final java.lang.String EDIT_JSSAVE
- See Also:
- Constant Field Values
EMPTY
public static final java.lang.String EMPTY
- See Also:
- Constant Field Values
TreeColumn
public TreeColumn()
TreeColumn
public TreeColumn(java.lang.String javascriptTree,
javax.servlet.http.HttpServletRequest request)
- Deprecated. use the empty constuctor
- Constructor.
- Parameters:
javascriptTree
- name of the js variablerequest
- http request, needed for context path
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(java.lang.String s)
getDateFormat
public java.lang.String getDateFormat()
setTitle
public void setTitle(java.lang.String s)
getTitle
public java.lang.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(java.lang.String variableName)
set the name of the javascript tree object
- Parameters:
variableName
-
getJavascriptTree
public java.lang.String getJavascriptTree()
setKeyValue
public void setKeyValue(java.util.Map h)
getKeyValue
public java.util.Map getKeyValue()
getKeyValue
public java.lang.String getKeyValue(java.lang.String key)
addKeyValue
public void addKeyValue(java.lang.String key,
java.lang.String value)
setHtmlEdit
public void setHtmlEdit(java.lang.String s)
getHtmlEdit
public java.lang.String getHtmlEdit()
setHtmlEdit
public void setHtmlEdit()
getHtml
public java.lang.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,
java.lang.String title)
createColumn
public static TreeColumn createColumn(Tree tree,
java.lang.String title,
TreeColumnHtmlRenderer htmlRenderer)
createLabelColumn
public static TreeColumn createLabelColumn(Tree tree,
java.lang.String title,
boolean editable)
createNodeDataColumn
public static TreeColumn createNodeDataColumn(Tree tree,
java.lang.String title,
java.lang.String nodeDataName,
boolean editable)
createNodeDataColumn
public static TreeColumn createNodeDataColumn(Tree tree,
java.lang.String title,
java.lang.String nodeDataName,
java.lang.String dateFormat)
createNodeDataColumn
public static TreeColumn createNodeDataColumn(Tree tree,
java.lang.String title,
java.lang.String nodeDataName,
TreeColumnHtmlRenderer renderer)
createMetaDataColumn
public static TreeColumn createMetaDataColumn(Tree tree,
java.lang.String title,
java.lang.String name,
java.lang.String dateFormat)
createIconColumn
public static TreeColumn createIconColumn(Tree tree,
java.lang.String title,
TreeColumnHtmlRenderer htmlRenderer)
createActivationColumn
public static TreeColumn createActivationColumn(Tree tree,
java.lang.String title)
Copyright © 2003-2010 Magnolia International Ltd.. All Rights Reserved.