All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally

public class Cell extends BodyTagSupport implements TryCatchFinally
This tag defines a new cell in a row. It should be placed inside a <tbl:row> tag.

Syntax:

   <tbl:cell
      clazz=...
      subclass=...
      errorclazz=...
      style=...
      column=...
      visible=true|false
      value=...
      maxcharacters=...
      maxheight=...
      maxwidth=...
      autoshow=true|false
   >
Tag attributes
Attribute Default value Required Description
clazz cell no The value if this attribute goes directly into the standard HTML class attribute. This allows you to apply different styles to different tables.
errorclazz cell error no Value for the class attribute to use if an exception is thrown while evaluating the contents of the cell. Since BASE 2.9.1
style - no The value if this attribute goes directly into the standard HTML style attribute. This allows you to apply different styles to different tables.
column - yes The ID of the <tbl:columndef> this cell is linked to.
visible true no If the cell should be visible or not.
value - no A value to display in the cell. If a Formatter has been defined for this column the value is formatted otherwise it is just converted to a string with the toString() method.
Version:
2.0
Author:
Nicklas
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • table

      private Table table
      The parent <tbl:table> tag.
    • clazz

      private String clazz
      Optional class attribute
    • subclass

      private String subclass
      More classes.
      Since:
      3.18
    • errorClazz

      private String errorClazz
      Optional class attribute for errors.
    • style

      private String style
      Optional style attribute
    • columnId

      private String columnId
      The ID of the column to which this cell belongs.
    • visible

      private boolean visible
      If the cell should be visible or not.
    • value

      private transient Object value
      The value to display.
    • formatter

      private transient Formatter formatter
    • isHidden

      private boolean isHidden
    • disableOverflowCheck

      private boolean disableOverflowCheck
    • maxCharacters

      private int maxCharacters
    • autoShow

      private boolean autoShow
    • maxHeight

      private String maxHeight
    • maxWidth

      private String maxWidth
  • Constructor Details

    • Cell

      public Cell()
  • Method Details

    • setClazz

      public void setClazz(String clazz)
    • getClazz

      public String getClazz()
    • setSubclass

      public void setSubclass(String subclas)
      Since:
      3.18
    • getSubclass

      public String getSubclass()
      Since:
      3.18
    • setErrorclazz

      public void setErrorclazz(String errorClazz)
      Since:
      2.9.1
    • getErrorclazz

      public String getErrorclazz()
      Since:
      2.9.1
    • setStyle

      public void setStyle(String style)
    • getStyle

      public String getStyle()
    • setColumn

      public void setColumn(String columnId)
    • getColumn

      public String getColumn()
    • setVisible

      public void setVisible(boolean visible)
    • isVisible

      public boolean isVisible()
    • setValue

      public void setValue(Object value)
    • getValue

      public Object getValue()
    • getFormatter

      public Formatter<?> getFormatter()
    • setDisableOverflowCheck

      public void setDisableOverflowCheck(boolean disable)
      Since:
      3.18
    • setMaxcharacters

      public void setMaxcharacters(int maxCharacters)
    • setAutoshow

      public void setAutoshow(boolean autoShow)
    • setMaxwidth

      public void setMaxwidth(String maxWidth)
    • setMaxheight

      public void setMaxheight(String maxHeight)
    • doStartTag

      public int doStartTag() throws JspException
      Specified by:
      doStartTag in interface Tag
      Overrides:
      doStartTag in class BodyTagSupport
      Throws:
      JspException
    • doEndTag

      public int doEndTag() throws JspException
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class BodyTagSupport
      Throws:
      JspException
    • doCatch

      public void doCatch(Throwable t) throws Throwable
      Specified by:
      doCatch in interface TryCatchFinally
      Throws:
      Throwable
    • doFinally

      public void doFinally()
      Specified by:
      doFinally in interface TryCatchFinally