|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.cc.framework.taglib.ScriptTagSupport com.cc.framework.taglib.controls.BaseControlTag com.cc.framework.taglib.controls.TreelistTag
Tag-Handler for the treelist
Tag.
Generates a list control element whose underlying data structure is a tree. The data model thus implements the TreeGroupDataModel. The layout of the list can be defined in the JSP-Page. The <treelist>-tag can only be used in conjunction with a bean that implements the TreeGroupDataModel Interface or is derived from TreeListControl.
Field Summary | |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.taglib.controls.BaseControlTag |
log |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
TreelistTag()
Constructor |
Method Summary | |
void |
addColumn(ColumnDesignModel column)
Adds a column to the Collection |
void |
addInnerFrame(InnerFrame frame)
Adds a new inner Frame to the container |
protected Control |
doCreateControl()
Creates the control element |
protected ControlDesignModel |
doCreateDesignModel()
This method is called to create the DesignModel for the control |
protected TreelistControl |
getCtrl()
Retrieves the current Control instance |
LineIterator |
getLineIterator()
Creates a lne interator which starts with the first line on the current page. |
int |
getRowsPerPage()
Returns the number of rows on the page. |
protected TreelistDesignModel |
getTreelistDesignModel()
Returns a casted version of the ControlDesignModel |
protected TreelistDesignModel |
getTreeListDesignModel()
Returns a casted version of the ControlDesignModel |
void |
setButtons(java.lang.String value)
Indicates whether, in case of group nodes, buttons for exploding or closing the branch should be displayed. |
void |
setCellPadding(java.lang.String padding)
Sets the cell padding for the list cells |
void |
setCellSpacing(java.lang.String spacing)
Sets the cell spacing for the list cells |
void |
setCheckboxes(java.lang.String value)
Indicates whether a checkbox should be displayed before the tree entries. |
void |
setCreateButton(java.lang.String value)
Indicates whether a button for creating a new data record should be displayed. |
void |
setEmptyText(java.lang.String emptyText)
A text that is output in the body of the list element if there are no lines available |
void |
setEnableProperty(java.lang.String value)
Indicates the name of a property, with the help of which the column function can be disabled in the relevant line. |
void |
setExpandMode(java.lang.String expand)
This attribute specifies how many nodes of the tree structure may be displayed exploded at the same time. |
void |
setExportListButton(java.lang.String value)
Sets the Flag for the ExportList Button |
void |
setGroupselect(java.lang.String value)
Specifies whether, for the group nodes of the tree structure, a Click event handler should be called. |
void |
setHideButtons(java.lang.String controlButtonList)
Hides all buttons in the ControlButton List. |
void |
setImage(ImageModel image)
Sets the image |
void |
setLabelWrap(java.lang.String wrap)
Enables or disables label wrapping |
void |
setLines(java.lang.String value)
Specifies whether connecting lines should be drawn between the construction elements. |
void |
setLinesAtRoot(java.lang.String value)
Specifies whether lines should be drawn to the construction elements of the uppermost (displayed) level. |
void |
setMinRows(int rowCount)
Sets the number of minimal displayed rows per page |
void |
setMinRows(java.lang.String rowCount)
Sets the number of minimal displayed rows per page |
void |
setNoframe(java.lang.String noframe)
Disables the list border |
void |
setNoheader(java.lang.String noheader)
Disables the list header |
void |
setPageButtons(int value)
Sets the number of page buttons |
void |
setPageButtons(java.lang.String value)
Sets the number of page buttons |
void |
setPrintListButton(java.lang.String value)
Sets the Flag for the PrintList Button |
void |
setRefreshButton(java.lang.String value)
Specifies whether a button should be displayed for updating the elements. |
void |
setRoot(java.lang.String value)
Specifies whether the root node of the tree structure (Level 0) should be displayed or whether the display should first start at the next tree level(Level 1). |
void |
setRows(int rowCount)
Sets the number of maximal displayed rows per page |
void |
setRows(java.lang.String rowCount)
Sets the number of maximal displayed rows per page |
void |
setScrollHeight(java.lang.String height)
Sets the height of the scroll container |
void |
setSelect(java.lang.String mode)
Specifies the selection mode of the list. |
void |
setShowHeader(java.lang.String value)
If this flag is set to false the header of the control will be suppressed. |
void |
setTaborientation(java.lang.String orientation)
Specifies the tabulator orientation of the element: horizontal = from top to bottom vertical = from left to right |
void |
setTitle(java.lang.String title)
The main title of the list element. |
Methods inherited from class com.cc.framework.taglib.controls.BaseControlTag |
addDesignRule, beginPaint, createControl, createPainter, doEndTag, doStartTag, endPaint, getClientHandler, getControl, getDefaultAction, getDesignModel, getDirectValue, getHttpScope, getPainterContext, lookupBean, release, releaseDesignModel, setAction, setAjax, setAjax, setBorder, setDirectValue, setDisabled, setFormElement, setHeight, setHelp, setId, setLocale, setName, setPageContext, setPermission, setProperty, setRunat, setScope, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabindex, setTooltip, setTransaction, setValue, setWidth |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.cc.framework.taglib.controls.ColumnContainerTag |
getPainterContext |
Field Detail |
private static final long serialVersionUID
Constructor Detail |
public TreelistTag()
Method Detail |
protected TreelistControl getCtrl()
protected ControlDesignModel doCreateDesignModel()
BaseControlTag
doCreateDesignModel
in class BaseControlTag
BaseControlTag.doCreateDesignModel()
protected TreelistDesignModel getTreeListDesignModel()
protected TreelistDesignModel getTreelistDesignModel()
protected Control doCreateControl() throws javax.servlet.jsp.JspException
BaseControlTag
doCreateControl
in class BaseControlTag
javax.servlet.jsp.JspException
- If an error during bean lookup occursBaseControlTag.doCreateControl()
public void addInnerFrame(InnerFrame frame)
FrameContainerTag
addInnerFrame
in interface FrameContainerTag
frame
- The inner Frame to addFrameContainerTag.addInnerFrame(com.cc.framework.ui.model.InnerFrame)
public void addColumn(ColumnDesignModel column)
ColumnContainerTag
addColumn
in interface ColumnContainerTag
column
- ColumnDesignModelColumnContainerTag.addColumn(com.cc.framework.ui.model.ColumnDesignModel)
public void setTitle(java.lang.String title)
title
- The main titlepublic void setEmptyText(java.lang.String emptyText)
emptyText
- Text to output if there are no linespublic void setSelect(java.lang.String mode) throws javax.servlet.jsp.JspException
mode
- The selection mode of the list.
javax.servlet.jsp.JspException
- If the Argument can't be converted to an object of type
SelectModepublic void setRefreshButton(java.lang.String value) throws javax.servlet.jsp.JspException
value
- An Access Control List
javax.servlet.jsp.JspException
- If the Argument can not be converted to a boolean valuepublic void setCreateButton(java.lang.String value) throws javax.servlet.jsp.JspException
value
- An Access Control List
javax.servlet.jsp.JspException
- if the Argument can not be converted to a boolean valuepublic void setPrintListButton(java.lang.String value) throws javax.servlet.jsp.JspException
value
- Flag, true
if the Button should be shown
javax.servlet.jsp.JspException
- if the Argument can not be converted to a boolean Valuepublic void setExportListButton(java.lang.String value) throws javax.servlet.jsp.JspException
value
- Flag, true
if the Button should be shown
javax.servlet.jsp.JspException
- if the Argument can not be converted to a boolean Valuepublic void setRows(java.lang.String rowCount) throws javax.servlet.jsp.JspException
rowCount
- The number of rows
javax.servlet.jsp.JspException
- If the Argument can't be converted to integerpublic void setRows(int rowCount)
rowCount
- Number of rowspublic void setMinRows(java.lang.String rowCount) throws javax.servlet.jsp.JspException
rowCount
- Number of rows
javax.servlet.jsp.JspException
- If the Argument can't be converted to integerpublic void setMinRows(int rowCount)
rowCount
- Number of rowspublic void setExpandMode(java.lang.String expand) throws javax.servlet.jsp.JspException
expand
- Specifies how many nodes of the tree structure may be
displayed exploded
javax.servlet.jsp.JspException
- If the argument can not be converted to an object of type
ExpansionModepublic void setCheckboxes(java.lang.String value) throws javax.servlet.jsp.JspException
value
- true
if checkboxes should be displayed in the
tree
javax.servlet.jsp.JspException
- if the argument can not be converted to a boolean valuepublic void setButtons(java.lang.String value) throws javax.servlet.jsp.JspException
value
- true
if buttons for exploding or closing the
branch should be displayed.
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setLines(java.lang.String value) throws javax.servlet.jsp.JspException
value
- true
if connecting lines should be drawn
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setLinesAtRoot(java.lang.String value) throws javax.servlet.jsp.JspException
value
- false
if the lines on the top node should not
be displayed.
javax.servlet.jsp.JspException
- if the argument can not be converted to a boolean valuepublic void setRoot(java.lang.String value) throws javax.servlet.jsp.JspException
value
- false
if the root element should not be
displayed
javax.servlet.jsp.JspException
- if the argument can not be converted to a boolean valuepublic void setGroupselect(java.lang.String value) throws javax.servlet.jsp.JspException
value
- true
if a Click event handler should be called.
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setPageButtons(java.lang.String value) throws javax.servlet.jsp.JspException
value
- number of buttons
javax.servlet.jsp.JspException
- If the Argument can't be converted to integerpublic void setPageButtons(int value)
value
- number of buttonspublic void setCellSpacing(java.lang.String spacing) throws javax.servlet.jsp.JspException
spacing
- Spacing factor
javax.servlet.jsp.JspException
- If the Argument can't be converted to integerpublic void setCellPadding(java.lang.String padding) throws javax.servlet.jsp.JspException
padding
- Padding factor
javax.servlet.jsp.JspException
- If the Argument can't be converted to integerpublic void setShowHeader(java.lang.String value) throws javax.servlet.jsp.JspException
value
- false
if the header should not be painted;
true
otherwise
javax.servlet.jsp.JspException
- if the Argument can not be converted to a boolean Valuepublic void setEnableProperty(java.lang.String value)
value
- enablepublic void setNoframe(java.lang.String noframe) throws javax.servlet.jsp.JspException
noframe
- true
if the list frame should be hidden
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setNoheader(java.lang.String noheader) throws javax.servlet.jsp.JspException
noheader
- true
if the list header should be hidden
javax.servlet.jsp.JspException
- If the Argument can't be converted to booleanpublic void setImage(ImageModel image)
ImageContainerTag
setImage
in interface ImageContainerTag
image
- The image model for the imageImageContainerTag.setImage(com.cc.framework.ui.model.ImageModel)
public LineIterator getLineIterator()
ColumnContainerTag
getLineIterator
in interface ColumnContainerTag
ColumnContainerTag.getLineIterator()
public int getRowsPerPage()
ColumnContainerTag
getRowsPerPage
in interface ColumnContainerTag
ColumnContainerTag.getRowsPerPage()
public void setTaborientation(java.lang.String orientation) throws javax.servlet.jsp.JspException
orientation
- The tabulator orientation
javax.servlet.jsp.JspException
- If the argument can't be converted to an OrientationTypepublic void setHideButtons(java.lang.String controlButtonList) throws javax.servlet.jsp.JspException
controlButtonList
- A semicolon delimited list of ControlButton names
javax.servlet.jsp.JspException
- Is thrown when a invalid ControlButton Name is specifiedpublic void setScrollHeight(java.lang.String height)
height
- The heightpublic void setLabelWrap(java.lang.String wrap) throws javax.servlet.jsp.JspException
wrap
- true
if the tree column should wrap labels
javax.servlet.jsp.JspException
- If the Argument can't be converted to boolean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |