public class DataInsertTransferHandler extends JotyTableTransferHandler
The class implements the validation basing on the exclusive presence of the id value in the (target) Table object but the case in which the Table object is also the source.
m_actionAsTarget, m_actor, m_id_dbField, m_index, m_managedDbTable, m_moveToDrain, m_showDropLocation, m_table
Constructor and Description |
---|
DataInsertTransferHandler(int actionAsSource,
int actionAsTarget,
Table table,
boolean moveToDrain) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
exportAction(java.lang.String carried_val,
java.lang.String identifying_id_val) |
protected int |
getRowToBeSelected(long carriedID,
java.lang.Long identifyingID) |
protected boolean |
importAction(java.lang.String carried_val,
java.lang.String identifying_id_val,
java.awt.datatransfer.Transferable transferable,
boolean carriedValDelayed) |
protected boolean |
validate(long carriedID,
javax.swing.TransferHandler.TransferSupport support) |
canImport, carriedValExpr, checkExportTransaction, checkImportTransaction, checkInternalMove, checkNeighbourhood, checkToDelete, completeImportTransaction, createContextPostStatement, createTransferable, endTransaction, exportDone, getAndCheckSourceIndex, getSourceActions, getSuccess, getTargetIndex, importData, loadData, managedDbTable, manageExportActions, postImport, postInit, prepareTransfer, selectContext, setCurrContext, setManagedDbTable, setSuccess, sourceIdentifyingID, targetIdentifyingID, valueToTransfer
public DataInsertTransferHandler(int actionAsSource, int actionAsTarget, Table table, boolean moveToDrain)
protected boolean exportAction(java.lang.String carried_val, java.lang.String identifying_id_val)
exportAction
in class JotyTableTransferHandler
protected int getRowToBeSelected(long carriedID, java.lang.Long identifyingID)
getRowToBeSelected
in class JotyTableTransferHandler
protected boolean importAction(java.lang.String carried_val, java.lang.String identifying_id_val, java.awt.datatransfer.Transferable transferable, boolean carriedValDelayed)
importAction
in class JotyTableTransferHandler
protected boolean validate(long carriedID, javax.swing.TransferHandler.TransferSupport support)
validate
in class JotyTableTransferHandler