Class CheckboxTableDecorator

java.lang.Object
org.displaytag.decorator.TableDecorator
org.displaytag.decorator.CheckboxTableDecorator

public class CheckboxTableDecorator extends TableDecorator
A table decorator which adds checkboxes for selectable rows.
Version:
$Id$
Author:
Fabrizio Giustina
  • Field Details

    • tableModel

      protected TableModel tableModel
      The table model.
      Since:
      1.1
  • Constructor Details

    • CheckboxTableDecorator

      public CheckboxTableDecorator()
  • Method Details

    • setId

      public void setId(String id)
      Setter for id.
      Parameters:
      id - The id to set.
    • setFieldName

      public void setFieldName(String fieldName)
      Setter for fieldName.
      Parameters:
      fieldName - The fieldName to set.
    • init

      public void init(javax.servlet.jsp.PageContext pageContext, Object decorated, TableModel tableModel)
      Inits the.
      Parameters:
      pageContext - the page context
      decorated - the decorated
      tableModel - the table model
      See Also:
      • Decorator.init(javax.servlet.jsp.PageContext, java.lang.Object, org.displaytag.model.TableModel)
    • finish

      public void finish()
      Finish.
      Overrides:
      finish in class TableDecorator
      See Also:
    • getCheckbox

      public String getCheckbox()
      Gets the checkbox.
      Returns:
      the checkbox
    • init

      @Deprecated public void init(javax.servlet.jsp.PageContext pageContext, Object decorated)
      Deprecated.
      use #init(PageContext, Object, TableModel)
      Initialize the TableTecorator instance.
      Parameters:
      pageContext - PageContext
      decorated - decorated object (usually a list)
      See Also:
    • getPageContext

      public javax.servlet.jsp.PageContext getPageContext()
      returns the page context.
      Returns:
      PageContext
    • getDecoratedObject

      public Object getDecoratedObject()
      returns the decorated object.
      Returns:
      Object
    • hasGetterFor

      public boolean hasGetterFor(String propertyName)
      Check if a getter exists for a given property. Uses cached info if property has already been requested. This method only check for a simple property, if pPropertyName contains multiple tokens only the first part is evaluated
      Parameters:
      propertyName - name of the property to check
      Returns:
      boolean true if the decorator has a getter for the given property
    • searchGetterFor

      public boolean searchGetterFor(String propertyName)
      Looks for a getter for the given property using introspection.
      Parameters:
      propertyName - name of the property to check
      Returns:
      boolean true if the decorator has a getter for the given property