|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.taglib.servlet.tbeans.tableview.ColumnTag
public class ColumnTag
ColumnTag is the tag handler class for the sas:Column custom tag . ColumnTag is invoked by the JSP page to evaluate the sas:Column custom tag during the execution of the page. Tag handler methods are called by the JSP page implementation class at various points during the evaluation of the tag. The tag handler methods in turn call methods on the underlying Transformation Bean object, TableColumn, to execute the methods.
If you need to extend or modify the functionality of the sas:Column custom tag, you can subclass this tag handler class.
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step examples, white papers and additional usage information at http://support.sas.com/rnd/appdev/.
Refer to the Custom Tag Library Reference for usage information on the sas:Column custom tag.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site.
To specify a custom column (i.e. a column not in the data model), then set the modelIndex to -1.
TableColumn
,
Serialized FormField Summary |
---|
Fields inherited from class com.sas.taglib.BaseBodyTag |
---|
DELIMITERS, RB_KEY |
Constructor Summary | |
---|---|
ColumnTag()
|
Method Summary | |
---|---|
protected void |
applyAttributes()
Apply Column properties to the underlying com.sas.servlet.tbeans.tableview.TableColumn object |
int |
doEndTag()
Process the end tag. |
int |
doStartTag()
Processes the start tag for this instance. |
java.lang.String |
getHeaderValue()
Returns the headerValue property of the ColumnTag. |
java.lang.String |
getHold()
Determines if the column is held and on which side. |
int |
getModelIndex()
Returns the modelIndex property of the ColumnTag. |
java.lang.String |
getSort()
Determines if the column is sorted and which direction. |
protected void |
initialize(boolean includeAttributes)
Initializes attributes and variables for this tag handler. |
void |
setHeaderValue(java.lang.String headerValue)
Sets the headerValue property of the ColumnTag. |
void |
setHold(java.lang.String hold)
Determines if the column is held and on which side. |
void |
setModelIndex(int modelIndex)
Sets the modelIndex property of the ColumnTag. |
void |
setSort(java.lang.String sort)
Determines if the column is sorted and which direction. |
Constructor Detail |
---|
public ColumnTag()
Method Detail |
---|
protected void initialize(boolean includeAttributes)
initialize
in class BaseBodyTag
includeAttributes
- Set to true if attributes are to be set to default values.public void setModelIndex(int modelIndex)
modelIndex
- The index of the column in the data model to map to
this column in the column model. This number is 0-based since this
is the column index from the data model. The viewer's column indexes are
1-based. If set to -1 the column will be a custom column and not map to
any column in the data model.getModelIndex()
public int getModelIndex()
setModelIndex(int)
public void setHeaderValue(java.lang.String headerValue)
headerValue
- The value to display as the column header in the
TableView. If not set then the data model's column name will be used.getHeaderValue()
public java.lang.String getHeaderValue()
setHeaderValue(java.lang.String)
protected void applyAttributes() throws javax.servlet.jsp.JspException
applyAttributes
in class BaseBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class BaseBodyTag
javax.servlet.jsp.JspException
- Thrown if a JspException occurs.BaseBodyTag.setInstantiate(boolean)
,
TagSupport.doStartTag()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public java.lang.String getHold()
public void setHold(java.lang.String hold)
hold
- Which side to hold the column.public java.lang.String getSort()
public void setSort(java.lang.String sort)
sort
- if the column is sorted and which direction.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |