net.sf.doolin.gui.field.table.column
Class PropertyColumnEditable<T>

java.lang.Object
  extended by net.sf.doolin.gui.field.table.column.PropertyColumnEditable<T>
Type Parameters:
T - Type of the row
All Implemented Interfaces:
ColumnEditable<T>

public class PropertyColumnEditable<T>
extends Object
implements ColumnEditable<T>

ColumnEditable implementation based on the evaluation of a property of the row object.

Author:
Damien Coraboeuf

Constructor Summary
PropertyColumnEditable()
           
 
Method Summary
 boolean isEditable(Column column, T item)
          Returns if the item is editable
 void setOperand(Object operand)
          Sets the operand used by the ConditionalOperator.
 void setOperator(ConditionalOperator operator)
          Sets the operator to apply to the property.
 void setPropertyPath(String propertyPath)
          Sets the path to the property to evaluate ("this" by default)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyColumnEditable

public PropertyColumnEditable()
Method Detail

isEditable

public boolean isEditable(Column column,
                          T item)
Description copied from interface: ColumnEditable
Returns if the item is editable

Specified by:
isEditable in interface ColumnEditable<T>
Parameters:
column - Column
item - Item to edit
Returns:
true if the object is editable

setPropertyPath

public void setPropertyPath(String propertyPath)
Sets the path to the property to evaluate ("this" by default)

Parameters:
propertyPath - Path to the property

setOperator

public void setOperator(ConditionalOperator operator)
Sets the operator to apply to the property. It is set to ConditionalOperator.NOT_NULL by default.

Parameters:
operator - Operator

setOperand

public void setOperand(Object operand)
Sets the operand used by the ConditionalOperator.

Parameters:
operand - Operand


Copyright © 2011. All Rights Reserved.