net.sf.doolin.gui.field.table
Interface ColumnValueFactory

All Known Implementing Classes:
PropertyColumnValueFactory

public interface ColumnValueFactory

Gets and sets the value for an item in a table.

Author:
Damien Coraboeuf

Method Summary
 Comparator<?> getComparator()
          Gets a comparator for the value
 Object getValue(Object item)
          Gets the value for a row item
 void setValue(Object item, Object value)
          Sets the value for a row item
 

Method Detail

getValue

Object getValue(Object item)
Gets the value for a row item

Parameters:
item - Row item
Returns:
Value for the column

setValue

void setValue(Object item,
              Object value)
Sets the value for a row item

Parameters:
item - Row item
value - Value for the column

getComparator

Comparator<?> getComparator()
Gets a comparator for the value

Returns:
Comparator


Copyright © 2011. All Rights Reserved.