net.sf.doolin.gui.field.table.value
Class PropertyColumnValueFactory

java.lang.Object
  extended by net.sf.doolin.gui.field.table.value.PropertyColumnValueFactory
All Implemented Interfaces:
ColumnValueFactory

public class PropertyColumnValueFactory
extends Object
implements ColumnValueFactory

Column value based on a property path.

Author:
Damien Coraboeuf

Constructor Summary
PropertyColumnValueFactory()
           
 
Method Summary
 Comparator<?> getComparator()
          Gets a comparator for the value
 String getPropertyPath()
          Gets the property path.
 Object getValue(Object item)
          Gets the value for a row item
 void setPropertyPath(String propertyPath)
          Sets the path to the property of the colum.
 void setValue(Object item, Object value)
          Sets the value for a row item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyColumnValueFactory

public PropertyColumnValueFactory()
Method Detail

getPropertyPath

public String getPropertyPath()
Gets the property path.

Returns:
the property path

setPropertyPath

public void setPropertyPath(String propertyPath)
Sets the path to the property of the colum.

Parameters:
propertyPath - the new property path

getValue

public Object getValue(Object item)
Description copied from interface: ColumnValueFactory
Gets the value for a row item

Specified by:
getValue in interface ColumnValueFactory
Parameters:
item - Row item
Returns:
Value for the column

setValue

public void setValue(Object item,
                     Object value)
Description copied from interface: ColumnValueFactory
Sets the value for a row item

Specified by:
setValue in interface ColumnValueFactory
Parameters:
item - Row item
value - Value for the column

getComparator

public Comparator<?> getComparator()
Description copied from interface: ColumnValueFactory
Gets a comparator for the value

Specified by:
getComparator in interface ColumnValueFactory
Returns:
Comparator


Copyright © 2011. All Rights Reserved.