| org.apache.beehive.netui.tags.AbstractSimpleTag org.apache.beehive.netui.tags.databinding.datagrid.AbstractDataGridHtmlTag
All known Subclasses: org.apache.beehive.netui.tags.databinding.datagrid.RenderPager, org.apache.beehive.netui.tags.databinding.datagrid.Caption, org.apache.beehive.netui.tags.databinding.datagrid.Footer, org.apache.beehive.netui.tags.databinding.datagrid.DataGrid, org.apache.beehive.netui.tags.databinding.datagrid.AbstractCell, org.apache.beehive.netui.tags.databinding.datagrid.Row, org.apache.beehive.netui.tags.databinding.datagrid.Header, org.apache.beehive.netui.tags.databinding.datagrid.Rows,
AbstractDataGridHtmlTag | abstract public class AbstractDataGridHtmlTag extends AbstractSimpleTag (Code) | |
This class is a base class for all data grid tags that render HTML output for the grid. This base
class provides services to its subclasses including lookup of the
DataGridTagModel for the
current data grid. In addition, this class exposes tagId generation functionality. These methods
are used to create strings that will be written onto HTML tags for the "id" or "name" attributes.
Such identifiers can be created in one of two ways -- indexed or un-indexed. An un-indexed tag
identifier is one that the page author is responsible for making unique within a given
scope in the rendered output. An indexed tag identifier is one that the data grid will suffix
with the index for the current row in the grid. This is used to help create unique identifiers
from JSP tags that are rendered repeatedly. For example, a
SpanCell renders an HTML
<span> tag; with its tagId attribute set, it will render a tag identifier for
every row in the page. The indexed is added as a suffix in order to help page authors create
more unique identifiers. Ultimately, the page author is responsible for ensuring that their
tag identifiers are unique within a scope.
|
applyIndexedTagId | final protected void applyIndexedTagId(AbstractHtmlState state, String tagId) throws JspException(Code) | | Create an indexed tag identifier given a state object and a base tag identifier. The tagId
will have the index of the current item in the data grid attached as a suffix to the
the given base identifier.
Parameters: state - the AbstractHtmlState upon which the tag identifier will be set once created Parameters: tagId - the base tag identifier name throws: JspException - |
renderNameAndId | final protected String renderNameAndId(HttpServletRequest request, AbstractHtmlState state, Form parentForm)(Code) | |
Generate a name and id given a
AbstractHtmlState object. Data grid callers may invoke this
method with subclasses rendering markup containing tags that must set HTML tag IDs for use
via JavaScript on the client.
Assumptions:
- The state.name must be fully formed or the "real name" of the form.
- The state.id is the tagId value set on the tag and has not be rewritten yet to form the "real id"
Parameters: state - the HTML state whose tag id to set Parameters: parentForm - a Form tag if one contains this tag String a block of JavaScript if script must e rendered to the page in order to supportlookups of HTML elements using a tag id. If returned, the String must be renderedto the output stream. null if no script must be rendered. |
|
|