com.jidesoft.grid
Class ContextSensitiveTableTransferHandler
java.lang.Object
javax.swing.TransferHandler
com.jidesoft.grid.JideTableTransferHandler
com.jidesoft.grid.ContextSensitiveTableTransferHandler
- All Implemented Interfaces:
- Serializable
public class ContextSensitiveTableTransferHandler
- extends JideTableTransferHandler
TransferHandler for ContextSensitiveTable. It will use the converter context information and use
ObjectConverterManager to convert the value to String.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextSensitiveTableTransferHandler
public ContextSensitiveTableTransferHandler(String property)
ContextSensitiveTableTransferHandler
public ContextSensitiveTableTransferHandler()
convertElementToString
protected String convertElementToString(JTable table,
int rowIndex,
int columnIndex,
Object value)
- Converts the value at the specified cell to String.
- Overrides:
convertElementToString
in class JideTableTransferHandler
- Parameters:
table
- the table.rowIndex
- the row index.columnIndex
- the column index.value
- the value
- Returns:
- the converted String from the value. By default, if the table is an instance of ContextSensitiveTable and
table.getModel() is an instance of ContextSensitiveTableModel, we will use ObjectConverterManager to do
do the conversion. Otherwise, we will use value.toString() to do it.
convertStringToElement
protected Object convertStringToElement(JTable table,
int rowIndex,
int columnIndex,
String text)
- Description copied from class:
JideTableTransferHandler
- Converts the string to element.
- Overrides:
convertStringToElement
in class JideTableTransferHandler
- Parameters:
table
- the tablerowIndex
- the row indexcolumnIndex
- the column indextext
- the string to convert
- Returns:
- the converted element.