public class SelectableColumnTag
extends javax.servlet.jsp.tagext.TagSupport
| Constructor and Description |
|---|
SelectableColumnTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag() |
static java.lang.String |
getPostScript(java.lang.String listName,
javax.servlet.ServletRequest request)
Returns any bound post java script
to be used by the selectable decorator
|
static java.lang.String |
makeCheckboxId(java.lang.String listName,
java.lang.String id)
Given list name returns the name of a check box
|
static java.lang.String |
makeSelectAllCheckboxId(java.lang.String listName)
Given list name returns the name of the select all box
|
static java.lang.String |
makeSelectAllCheckboxName(java.lang.String listName)
Given list name returns the name of the select all box
|
void |
release() |
void |
setDisabled(java.lang.String expr)
Expression to determine if checkbox is disabled
|
void |
setHeaderclass(java.lang.String style)
Sets the header CSS style class
|
void |
setHeaderkey(java.lang.String key)
Sets the header key
|
void |
setHideDisabled(java.lang.String expr)
Expression to determine if we should show disabled checkboxes
|
void |
setSelected(java.lang.String expr)
Expression to determine if a checkbox is selected
|
void |
setStyleclass(java.lang.String style)
Sets the individual cells' CSS style class
|
void |
setValue(java.lang.String valueIn)
Sets the value for the cell
Should probably reference the ${current} variable in some way
|
void |
setWidth(java.lang.String widthIn)
Sets the column width
|
protected void |
writeStartingTd() |
public void setWidth(java.lang.String widthIn)
widthIn - column widthpublic void setHeaderclass(java.lang.String style)
style - CSS style classpublic void setHeaderkey(java.lang.String key)
key - the header keypublic void setStyleclass(java.lang.String style)
style - CSS style classpublic void setValue(java.lang.String valueIn)
valueIn - value for checkboxpublic void setSelected(java.lang.String expr)
expr - selected expressionpublic void setDisabled(java.lang.String expr)
expr - disabled expressionpublic void setHideDisabled(java.lang.String expr)
expr - "true" if we should hide disabled checkboxes, else we show thempublic int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupportpublic static java.lang.String makeSelectAllCheckboxName(java.lang.String listName)
listName - the name of the listpublic static java.lang.String makeSelectAllCheckboxId(java.lang.String listName)
listName - the name of the listpublic static java.lang.String makeCheckboxId(java.lang.String listName,
java.lang.String id)
listName - the name of the idid - the object id of the check box value objectprotected void writeStartingTd()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspExceptionpublic static java.lang.String getPostScript(java.lang.String listName,
javax.servlet.ServletRequest request)
listName - the name of the listrequest - the request param