org.apache.beehive.netui.databinding.datagrid.model.impl
Class AbstractHtmlColumnModel

Object
  extended by ColumnModel
      extended by AbstractHtmlColumnModel
All Implemented Interfaces:
IAttributeConsumer
Direct Known Subclasses:
AnchorColumnModel, ImageColumnModel, LiteralColumnModel

public abstract class AbstractHtmlColumnModel
extends ColumnModel
implements IAttributeConsumer

todo: need to do error reporting from the model back to the JSP tags


Field Summary
 
Fields inherited from class ColumnModel
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, DATA_RENDER_STATE, HEADER_RENDER_STATE, NO_RENDER_STATE
 
Constructor Summary
AbstractHtmlColumnModel()
           
 
Method Summary
protected abstract  AbstractHtmlState getHtmlState()
           
protected  HttpServletRequest getHttpServletRequest()
           
 void setAttribute(String name, String value, String facet)
          Base support for the attribute tag.
 void setOnClick(String onClick)
           
 void setOnDblClick(String onDblClick)
           
 void setOnKeyDown(String onKeyDown)
           
 void setOnKeyPress(String onKeyPress)
           
 void setOnKeyUp(String onKeyUp)
           
 void setOnMouseDown(String onMouseDown)
           
 void setOnMouseMove(String onMouseMove)
           
 void setOnMouseOut(String onMouseOut)
           
 void setOnMouseOver(String onMouseOver)
           
 void setOnMouseUp(String onMouseUp)
           
protected  void setStateAttribute(String name, String value)
          Attribute implementation.
 void setStyle(String style)
           
 void setStyleClass(String styleClass)
           
 void setTitle(String title)
           
 
Methods inherited from class ColumnModel
addFormatter, closeDataCell, closeHeaderCell, createResourceUri, endCell, formatText, getDataGridModel, getFilterExpression, getFilterUri, getHeaderText, getRenderState, getSortExpression, getSortUri, isFilterable, isRenderingData, isRenderingHeader, isSortable, openDataCell, openHeaderCell, renderDataCell, renderEmptyCell, renderHeader, setDataGridModel, setFilterable, setFilterExpression, setFilterUri, setHeaderText, setNonEmptyValueAttribute, setRenderState, setSortable, setSortExpression, setSortUri, startCell
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHtmlColumnModel

public AbstractHtmlColumnModel()
Method Detail

setOnClick

public void setOnClick(String onClick)

setOnDblClick

public void setOnDblClick(String onDblClick)

setOnKeyDown

public void setOnKeyDown(String onKeyDown)

setOnKeyUp

public void setOnKeyUp(String onKeyUp)

setOnKeyPress

public void setOnKeyPress(String onKeyPress)

setOnMouseDown

public void setOnMouseDown(String onMouseDown)

setOnMouseUp

public void setOnMouseUp(String onMouseUp)

setOnMouseMove

public void setOnMouseMove(String onMouseMove)

setOnMouseOut

public void setOnMouseOut(String onMouseOut)

setOnMouseOver

public void setOnMouseOver(String onMouseOver)

setStyle

public void setStyle(String style)

setStyleClass

public void setStyleClass(String styleClass)

setTitle

public void setTitle(String title)

setAttribute

public void setAttribute(String name,
                         String value,
                         String facet)
Base support for the attribute tag. This requires that the tag buffer their body and write attribute in the end tag. For the HTML tags it is not legal to set the id or name attributes. In addition, the base tag does not allow facets to be set. If the attribute is legal it will be added to the general expression map stored in the AbstractHtmlState of the tag.

Specified by:
setAttribute in interface IAttributeConsumer
Parameters:
name - The name of the attribute. This value may not be null or the empty string.
value - The value of the attribute. This may contain an expression.
facet - The name of a facet to which the attribute will be applied. This is optional.

getHtmlState

protected abstract AbstractHtmlState getHtmlState()

getHttpServletRequest

protected HttpServletRequest getHttpServletRequest()

setStateAttribute

protected void setStateAttribute(String name,
                                 String value)
Attribute implementation.

Parameters:
name -
value -