org.apache.commons.jelly.tags.swing.model
Class ExpressionTableColumn

java.lang.Object
  extended byjavax.swing.table.TableColumn
      extended byorg.apache.commons.jelly.tags.swing.model.ExpressionTableColumn
All Implemented Interfaces:
java.io.Serializable

public class ExpressionTableColumn
extends javax.swing.table.TableColumn

Represents a column in an ExpressionTable

Version:
$Revision: 1.7 $
Author:
James Strachan
See Also:
Serialized Form

Field Summary
private static org.apache.commons.logging.Log log
          The Log to which logging calls will be made.
private  java.lang.Class type
           
private  org.apache.commons.jelly.expression.Expression value
           
 
Fields inherited from class javax.swing.table.TableColumn
CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, COLUMN_WIDTH_PROPERTY, HEADER_RENDERER_PROPERTY, HEADER_VALUE_PROPERTY, headerRenderer, headerValue, identifier, isResizable, maxWidth, minWidth, modelIndex, resizedPostingDisableCount, width
 
Constructor Summary
ExpressionTableColumn()
           
 
Method Summary
 java.lang.Object evaluateValue(ExpressionTableModel model, java.lang.Object row, int rowIndex, int columnIndex)
          Evaluates the value of a cell
 java.lang.Class getType()
          Returns the column type.
 org.apache.commons.jelly.expression.Expression getValue()
          Returns the expression used to extract the value.
 void setType(java.lang.Class type)
          Sets the expression used to extract the value.
 void setValue(org.apache.commons.jelly.expression.Expression value)
          Sets the value.
 java.lang.String toString()
           
 
Methods inherited from class javax.swing.table.TableColumn
addPropertyChangeListener, createDefaultHeaderRenderer, disableResizedPosting, enableResizedPosting, getCellEditor, getCellRenderer, getHeaderRenderer, getHeaderValue, getIdentifier, getMaxWidth, getMinWidth, getModelIndex, getPreferredWidth, getPropertyChangeListeners, getResizable, getWidth, removePropertyChangeListener, setCellEditor, setCellRenderer, setHeaderRenderer, setHeaderValue, setIdentifier, setMaxWidth, setMinWidth, setModelIndex, setPreferredWidth, setResizable, setWidth, sizeWidthToFit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log
The Log to which logging calls will be made.


value

private org.apache.commons.jelly.expression.Expression value

type

private java.lang.Class type
Constructor Detail

ExpressionTableColumn

public ExpressionTableColumn()
Method Detail

toString

public java.lang.String toString()

evaluateValue

public java.lang.Object evaluateValue(ExpressionTableModel model,
                                      java.lang.Object row,
                                      int rowIndex,
                                      int columnIndex)
Evaluates the value of a cell


getType

public java.lang.Class getType()
Returns the column type.

Returns:
Class

getValue

public org.apache.commons.jelly.expression.Expression getValue()
Returns the expression used to extract the value.

Returns:
Expression

setType

public void setType(java.lang.Class type)
Sets the expression used to extract the value.

Parameters:
type - The type to set

setValue

public void setValue(org.apache.commons.jelly.expression.Expression value)
Sets the value.

Parameters:
value - The value to set