|
|||||||||||
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.ListTag
Tag-Handler for the list
Tag.
Generates a multiple column list element based on a ListDataModel. The layout of the list can be defined in the JSP-Page with the help of the <columnXXXX>-tags. The output format of the list element (HTML, XML, JavaApplet, etc.) is determined by the Painter Factory used. The <list>-tag can only be used in conjunction with a Bean that implements the ListDataModel interface.
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 | |
ListTag()
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 ListControl |
getCtrl()
Retrieves the current Control instance |
LineIterator |
getLineIterator()
Creates a lne interator which starts with the first line on the current page. |
protected ListDesignModel |
getListDesignModel()
Returns a casted version of the ControlDesignModel |
int |
getRowsPerPage()
Returns the number of rows on the page. |
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 |
setCreateButton(java.lang.String value)
Sets the Flag for the CreateButton |
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 |
setExportListButton(java.lang.String value)
Sets the Flag for the ExportList Button |
void |
setHideButtons(java.lang.String controlButtonList)
Hides all buttons in the ControlButton List. |
void |
setImage(ImageModel image)
Sets the image |
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)
Sets the Flag for the RefreshButton |
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 ListTag()
Method Detail |
protected ListControl getCtrl()
protected ControlDesignModel doCreateDesignModel()
BaseControlTag
doCreateDesignModel
in class BaseControlTag
BaseControlTag.doCreateDesignModel()
protected ListDesignModel getListDesignModel()
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 Titlepublic void setEmptyText(java.lang.String emptyText)
emptyText
- Textpublic void setRows(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 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 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
- Flag, true if the RefreshButton should be painted
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
- Flag, true if the CreateButton should be painted
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 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 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 height
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |