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: 155420 $
Author:
James Strachan
See Also:
Serialized Form

Field Summary
 
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
 

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


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.