SPT Core API

com.sptci.echo
Class DraggableCellRenderer

java.lang.Object
  extended by com.sptci.echo.DraggableCellRenderer
All Implemented Interfaces:
Serializable, TableCellRenderer

public class DraggableCellRenderer
extends Object
implements TableCellRenderer

A custom table cell renderer used to present the cell data as draggable components.

See Also:
Serialized Form

Constructor Summary
DraggableCellRenderer(Collection<Component> dropTargets)
          Create a new instance using the specified collection of drop target components.
 
Method Summary
 Component getTableCellRendererComponent(Table table, Object value, int column, int row)
          Return the draggable component with appropriate drag target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DraggableCellRenderer

public DraggableCellRenderer(Collection<Component> dropTargets)
Create a new instance using the specified collection of drop target components. Note that drop target components are recommended to have specific renderId values set.

Parameters:
dropTargets - The targets that will receive drop events.
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(Table table,
                                               Object value,
                                               int column,
                                               int row)
Return the draggable component with appropriate drag target.

Specified by:
getTableCellRendererComponent in interface TableCellRenderer

SPT Core API