You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/05/16 18:12:19 UTC
svn commit: r170404 - in
/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui:
databinding/datagrid/runtime/util/ tags/databinding/datagrid/
Author: ekoneil
Date: Mon May 16 09:12:17 2005
New Revision: 170404
URL: http://svn.apache.org/viewcvs?rev=170404&view=rev
Log:
NetuI Javadoc.
BB: self
DRT: NetUI pass
BVT: NetUI pass
Modified:
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/runtime/util/JspUtil.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AbstractCell.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AnchorCell.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Caption.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ConfigurePager.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/DataGrid.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Footer.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/GetDataGridState.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Header.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/HeaderCell.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageAnchorCell.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/RenderPager.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Row.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/SpanCell.java
incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/TemplateCell.java
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/runtime/util/JspUtil.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/runtime/util/JspUtil.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/runtime/util/JspUtil.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/databinding/datagrid/runtime/util/JspUtil.java Mon May 16 09:12:17 2005
@@ -26,13 +26,10 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import org.apache.struts.Globals;
-
import org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils;
import org.apache.beehive.netui.pageflow.internal.InternalUtils;
import org.apache.beehive.netui.tags.internal.PageFlowTagUtils;
import org.apache.beehive.netui.util.Bundle;
-import org.apache.beehive.netui.util.internal.ServletUtils;
public final class JspUtil {
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AbstractCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AbstractCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AbstractCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AbstractCell.java Mon May 16 09:12:17 2005
@@ -98,12 +98,12 @@
int gridRenderState = dataGridModel.getRenderState();
- /* RENDER_STATE_START is a no-op for columns */
+ /* RENDER_STATE_START is a no-op for cells */
if(gridRenderState == DataGridTagModel.RENDER_STATE_START) {
return;
}
- // otherwise, the ColumnModel associated with this tag
- // needs to be fetched from the <columns> tag for the current
+ // otherwise, the CellModel associated with this tag
+ // needs to be fetched from the <cell> tag for the current
// iteration
else {
CellModel model = internalGetCellModel();
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AnchorCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AnchorCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AnchorCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/AnchorCell.java Mon May 16 09:12:17 2005
@@ -126,6 +126,10 @@
private AnchorCellModel _anchorCellModel = new AnchorCellModel();
private AnchorTag.State _anchorState = _anchorCellModel.getAnchorState();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "AnchorCell";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Caption.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Caption.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Caption.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Caption.java Mon May 16 09:12:17 2005
@@ -75,6 +75,10 @@
private CaptionTag.State _captionTag = new CaptionTag.State();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "Caption";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ConfigurePager.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ConfigurePager.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ConfigurePager.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ConfigurePager.java Mon May 16 09:12:17 2005
@@ -68,8 +68,12 @@
private String _pageAction = null;
private String _pagerRendererClass = null;
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
- return "Pager";
+ return "ConfigurePager";
}
/**
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/DataGrid.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/DataGrid.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/DataGrid.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/DataGrid.java Mon May 16 09:12:17 2005
@@ -17,8 +17,6 @@
*/
package org.apache.beehive.netui.tags.databinding.datagrid;
-import org.apache.beehive.netui.util.internal.InternalStringBuilder;
-
import java.util.Iterator;
import java.io.IOException;
import java.io.StringWriter;
@@ -49,6 +47,7 @@
import org.apache.beehive.netui.tags.rendering.StringBuilderRenderAppender;
import org.apache.beehive.netui.tags.rendering.TableTag;
import org.apache.beehive.netui.tags.rendering.AbstractHtmlState;
+import org.apache.beehive.netui.util.internal.InternalStringBuilder;
import org.apache.beehive.netui.util.iterator.IteratorFactory;
import org.apache.beehive.netui.util.Bundle;
@@ -57,8 +56,8 @@
* </p>
* @jsptagref.tagdescription
*
- * @netui:tag name="dataGrid"
- * description="Renders an HTML table containing a data set" body-content="scriptless"
+ * @netui:tag name="dataGrid" body-content="scriptless"
+ * description="Top-level data grid tag for the data grid tag set. Renders a pageable, sortable, and filterable HTML table containing a data set"
*/
public class DataGrid
extends AbstractDataGridHtmlTag
@@ -76,87 +75,201 @@
private DataGridTagModel _dataGridTagModel = null;
private TableTag.State _tableState = new TableTag.State();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "DataGrid";
}
/**
- * @jsptagref.attributedescription
+ * <p>
+ * Set the {@link DataGridConfig} instance that this tag will use to create state containers and other
+ * data grid objects used during rendering. Custom implementations of this class can be provided
+ * that will override the defaults set in the
+ * {@link org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridConfig}.
+ * </p>
+ * @jsptagref.attributedescription
+ * <p>
+ * Set the {@link DataGridConfig} instance that this tag will use to create state containers and other
+ * data grid objects used during rendering. Custom implementations of this class can be provided
+ * that will override the defaults set in the
+ * {@link org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridConfig}.
+ * </p>
* @jsptagref.attributesyntaxvalue <i>string_dataGridConfig</i>
* @netui:attribute required="false" rtexprvalue="true"
- * description=""
+ * description="The DataGridConfig instance used by the data grid to create state containers and objects for rendering"
*/
public void setDataGridConfig(DataGridConfig dataGridConfig) {
_dataGridConfig = dataGridConfig;
}
/**
- * @jsptagref.attributedescription
+ * Set the name of this data grid. The name should be a simple String that is used to uniquely identify a data
+ * grid inside of a JSP. This value is also used to namespace state information in the URL that is scoped
+ * to a data grid. Within a given scope in a page, the page author is responsible for ensuring that this
+ * name is unique.
+ * @jsptagref.attributedescription
+ * Set the name of this data grid. The name should be a simple String that is used to uniquely identify a data
+ * grid inside of a JSP. This value is also used to namespace state information in the URL that is scoped
+ * to a data grid. Within a given scope in a page, the page author is responsible for ensuring that this
+ * name is unique.
* @jsptagref.attributesyntaxvalue <i>string_name</i>
* @netui:attribute required="true"
- * description=""
+ * description="The name for a data grid"
*/
public void setName(String name) {
_name = name;
}
/**
+ * <p>
+ * Set the data source that references a data set to be rendered by the data grid. The data source should be
+ * a NetUI EL expression and generally looks like a JSP EL expression without the '${' and '}' characters.
+ * For example, to reference an array of Employee objects exposed via a NetUI page input, the expression
+ * might look like:
+ * <pre>
+ * <netui-data:dataGrid dataSource="pageInput.employeeArray" name="employeeGrid">
+ * </pre>
+ * This expression will be evaluated the data grid in order to obtain a reference to the data set.
+ * </p>
+ *
* @jsptagref.attributedescription
+ * <p>
+ * Set the data source that references a data set to be rendered by the data grid. The data source should be
+ * a NetUI EL expression and generally looks like a JSP EL expression without the '${' and '}' characters.
+ * For example, to reference an array of Employee objects exposed via a NetUI page input, the expression
+ * might look like:
+ * <pre>
+ * <netui-data:dataGrid dataSource="pageInput.employeeArray" name="employeeGrid">
+ * </pre>
+ * This expression will be evaluated the data grid in order to obtain a reference to the data set.
+ * </p>
* @jsptagref.attributesyntaxvalue <i>string_dataSource</i>
* @netui:attribute required="true"
- * description=""
+ * description="The <code>dataSource</code> attribute determines both
+ * the source of populating data for the tag and the object to which the tag submits data."
*/
public void setDataSource(String dataSource) {
_dataSource = dataSource;
}
/**
- * @jsptagref.attributedescription
+ * <p>
+ * Set the style class prefix used to namespace style class names rendered as attributes on HTML tags
+ * generated by the data grid. For example, when using the default style policy without setting this
+ * attribute, the style rendered for the generated HTML table tag will be:
+ * <pre>
+ * <table class="datagrid">
+ * </pre>
+ * With the style class prefix of <code>foo</code>, the rendered HTML style class will be:
+ * <pre>
+ * <table class="foo">
+ * </pre>
+ * </p>
+ * @jsptagref.attributedescription
+ * <p>
+ * Set the style class prefix used to namespace style class names rendered as attributes on HTML tags
+ * generated by the data grid. For example, when using the default style policy without setting this
+ * attribute, the style rendered for the generated HTML table tag will be:
+ * <pre>
+ * <table class="datagrid">
+ * </pre>
+ * With the style class prefix of <code>foo</code>, the rendered HTML style class will be:
+ * <pre>
+ * <table class="foo">
+ * </pre>
+ * </p>
* @jsptagref.attributesyntaxvalue <i>string_styleClassPrefix</i>
* @netui:attribute required="false" rtexprvalue="true"
- * description=""
+ * description="The style class prefix used when setting CSS style classes on HTML elements generated by the data grid."
*/
public void setStyleClassPrefix(String styleClassPrefix) {
_styleClassPrefix = styleClassPrefix;
}
/**
- * @jsptagref.attributedescription
+ * <p>
+ * Set the resource bundle path used when getting messages from a {@link DataGridResourceProvider} during
+ * data grid rendering. The resource bundle provided here will entirely override messages obtained from
+ * the {@link DataGridResourceProvider} and must include all message keys that are used for rendering.
+ * In order to replace individual messages, use the behavior available from the
+ * {@link #setBehavior(String, Object, String)} method.
+ * </p>
+ * @jsptagref.attributedescription
+ * <p>
+ * Set the resource bundle path used when getting messages from a {@link DataGridResourceProvider} during
+ * data grid rendering. The resource bundle provided here will entirely override messages obtained from
+ * the {@link DataGridResourceProvider} and must include all message keys that are used for rendering.
+ * In order to replace individual messages, use the behavior available from the
+ * {@link #setBehavior(String, Object, String)} method.
+ * </p>
* @jsptagref.attributesyntaxvalue <i>string_resourceBundlePath</i>
* @netui:attribute required="false" rtexprvalue="true"
- * description=""
+ * description="A resource bundle path that can be used to replace the default strings rendered by a data grid"
*/
public void setResourceBundlePath(String resourceBundlePath) {
_resourceBundlePath = resourceBundlePath;
}
/**
- * @jsptagref.attributedescription
+ * <p>
+ * Set the name of a CSS policy to use when rendering HTML elements in a data grid. The data grid supports the
+ * default style policy names defined here
+ * {@link org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridConfig#getStyleModel(String, String)}.
+ * </p>
+ * @jsptagref.attributedescription
+ * <p>
+ * Set the name of a CSS policy to use when rendering HTML elements in a data grid. The data grid supports the
+ * default style policy names defined here
+ * {@link org.apache.beehive.netui.databinding.datagrid.runtime.config.DefaultDataGridConfig#getStyleModel(String, String)}.
+ * </p>
* @jsptagref.attributesyntaxvalue <i>string_stylePolicy</i>
* @netui:attribute required="false" rtexprvalue="true"
- * description=""
+ * description="Set the name of a CSS policy used when rendering a data grid."
*/
public void setStyleClassPolicy(String stylePolicy) {
_stylePolicyName = stylePolicy;
}
/**
- * @jsptagref.attributedescription
+ * <p>
+ * Sets a boolean that enables / disables rendering of HTML table row groups in the data grid. When
+ * row group rendering is enabled, the data grid tags will produce the thead, tbody, and tfoot HTML tags
+ * via the {@link Header}, {@link Rows}, and {@link Footer} tags respectively. In addition, as per the
+ * <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.3">HTML specification</a>, the data
+ * grid will reorder the output of the row groups to in order to produce valid HTML. When row group rendering
+ * is enabled and a page is using JavaScript, the data grid <b>must</b> be nested inside of a NetUI
+ * {@link org.apache.beehive.netui.tags.javascript.ScriptContainer} in order for JavaScript rendering
+ * to be ordered correctly. Legacy JavaScript script mode is not supported by the data grid.
+ * </p>
+ * @jsptagref.attributedescription
+ * <p>
+ * Sets a boolean that enables / disables rendering of HTML table row groups in the data grid. When
+ * row group rendering is enabled, the data grid tags will produce the thead, tbody, and tfoot HTML tags
+ * via the {@link Header}, {@link Rows}, and {@link Footer} tags respectively. In addition, as per the
+ * <a href="http://www.w3.org/TR/REC-html40/struct/tables.html#h-11.2.3">HTML specification</a>, the data
+ * grid will reorder the output of the row groups to in order to produce valid HTML. When row group rendering
+ * is enabled and a page is using JavaScript, the data grid <b>must</b> be nested inside of a NetUI
+ * {@link org.apache.beehive.netui.tags.javascript.ScriptContainer} in order for JavaScript rendering
+ * to be ordered correctly. Legacy JavaScript script mode is not supported by the data grid.
+ * </p>
* @jsptagref.attributesyntaxvalue <i>boolean_renderRowGroups</i>
* @netui:attribute required="false" rtexprvalue="true"
- * description=""
+ * description="Set a boolean flag for enabling / disabling row group rendering"
*/
public void setRenderRowGroups(boolean renderRowGroups) {
_renderRowGroups = renderRowGroups;
}
/**
- * Sets the onClick JavaScript event for the HTML tag.
+ * Sets the onClick JavaScript event for the HTML table tag.
*
* @param onClick the onClick event.
- * @jsptagref.attributedescription The onClick JavaScript event for the HTML tag.
+ * @jsptagref.attributedescription The onClick JavaScript event for the HTML table tag.
* @jsptagref.attributesyntaxvalue <i>string_onClick</i>
- * @netui:attribute required="false" rtexprvalue="true" description="The onClick JavaScript event for the HTML tag."
+ * @netui:attribute required="false" rtexprvalue="true" description="The onClick JavaScript event for the HTML table tag."
*/
public void setOnClick(String onClick) {
_tableState.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONCLICK, onClick);
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Footer.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Footer.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Footer.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Footer.java Mon May 16 09:12:17 2005
@@ -103,6 +103,10 @@
private boolean _renderRow = true;
private TFootTag.State _tfootTag = new TFootTag.State();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "Footer";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/GetDataGridState.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/GetDataGridState.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/GetDataGridState.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/GetDataGridState.java Mon May 16 09:12:17 2005
@@ -69,6 +69,10 @@
private String _name = null;
private DataGridConfig _config = null;
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public final String getTagName() {
return "GetDataGridState";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Header.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Header.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Header.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Header.java Mon May 16 09:12:17 2005
@@ -108,6 +108,10 @@
private boolean _renderRow = true;
private THeadTag.State _theadTag = new THeadTag.State();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "Header";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/HeaderCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/HeaderCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/HeaderCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/HeaderCell.java Mon May 16 09:12:17 2005
@@ -156,6 +156,10 @@
private HeaderCellModel _headerCellModel = new HeaderCellModel();
private CellDecorator _cellDecorator = null;
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return TAG_NAME;
}
@@ -821,7 +825,7 @@
}
else {
_headerCellModel.setDataGridTagModel(DataGridUtil.getDataGridTagModel(getJspContext()));
- _headerCellModel.setBodyContent(jspFragmentOutput);
+ _headerCellModel.setBodyContent(jspFragmentOutput);
_headerCellModel.setHeaderText(_headerText);
getCellDecorator().decorate(getJspContext(), appender, _headerCellModel);
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageAnchorCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageAnchorCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageAnchorCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageAnchorCell.java Mon May 16 09:12:17 2005
@@ -77,8 +77,12 @@
private AnchorTag.State _anchorState = _imageAnchorCellModel.getAnchorState();
private ImageTag.State _imageState = _imageAnchorCellModel.getImageState();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
- return "ImageAnchorColumn";
+ return "ImageAnchorCell";
}
/**
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/ImageCell.java Mon May 16 09:12:17 2005
@@ -64,7 +64,6 @@
/**
* The name of this tag; this value is used for error reporting.
- *
* @return the String name of this tag
*/
public String getTagName() {
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/RenderPager.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/RenderPager.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/RenderPager.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/RenderPager.java Mon May 16 09:12:17 2005
@@ -70,7 +70,6 @@
/**
* The tag's name; this is used for NetUI tag error reporting.
- *
* @return the tag's name
*/
public String getTagName() {
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Row.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Row.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Row.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Row.java Mon May 16 09:12:17 2005
@@ -96,6 +96,10 @@
private TrTag.State _trState = new TrTag.State();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public final String getTagName() {
return "Row";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/Rows.java Mon May 16 09:12:17 2005
@@ -85,6 +85,10 @@
private boolean _renderRow = true;
private TBodyTag.State _tbodyTag = new TBodyTag.State();
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "Rows";
}
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/SpanCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/SpanCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/SpanCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/SpanCell.java Mon May 16 09:12:17 2005
@@ -82,7 +82,6 @@
/**
* The name of this tag; this value is used for error reporting.
- *
* @return the String name of this tag
*/
public String getTagName() {
Modified: incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/TemplateCell.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/TemplateCell.java?rev=170404&r1=170403&r2=170404&view=diff
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/TemplateCell.java (original)
+++ incubator/beehive/trunk/netui/src/tags-databinding/org/apache/beehive/netui/tags/databinding/datagrid/TemplateCell.java Mon May 16 09:12:17 2005
@@ -81,16 +81,26 @@
* <td>.
* </p>
*
- * @netui:tag name="templateCell" description="Data grid cell that renders the content resulting from evaluating its body"
- * body-content="scriptless"
+ * @netui:tag name="templateCell" body-content="scriptless"
+ * description="Data grid cell that renders the content resulting from evaluating its body"
*/
public class TemplateCell
extends AbstractHtmlTableCell {
+ /**
+ * The name of this tag; this value is used for error reporting.
+ * @return the String name of this tag
+ */
public String getTagName() {
return "TemplateCell";
}
+ /**
+ * Render the contents of this cell. For this tag, the result of executing the
+ * {@link javax.servlet.jsp.tagext.JspFragment} is added to the output stream.
+ * @param appender the {@link AbstractRenderAppender} used for output
+ * @param jspFragmentOutput the result of evaluating the body of the tag.
+ */
protected void renderDataCellContents(AbstractRenderAppender appender, String jspFragmentOutput) {
appender.append(jspFragmentOutput);
}