TableViewClipboardAdapter enables Cut-Copy-Paste Clipboard functionality
on com.sas.swing.visual.tableview.TableViews.
The clipboard data format used by the adapter is compatible with
the clipboard format used by Excel. This provides for clipboard
interoperability between enabled TableViews and Excel. Security access to
the system clipboard must be available in order for this adapter to work.
TableViewClipboardAdapter(TableView table)
The TableViewClipboardAdapter is constructed with a
TableView on which it enables Cut-Copy-Paste and acts
as a Clipboard listener.
Method Summary
static boolean
canCopy(TableView table)
Returns true if the given TableView is in a state where the selected cells, rows, and/or
columns are all allowed to be copied to the clipboard, false otherwise.
static boolean
canCut(TableView table)
Returns true if the given TableView is in a state where the selected cells, rows, and/or
columns are all allowed to be cut, false otherwise.
static boolean
canPaste(TableView table)
Returns true if the given TableView is in a state where the selected cells, rows, and/or
columns are all allowed to be pasted into with the current contents of the clipboard, false otherwise.
Returns true if the given TableView is in a state where the selected cells, rows, and/or
columns are all allowed to be copied to the clipboard, false otherwise.
Parameters:
table - The TableView in question of whther a copy is allowed
Returns:
true if a copy of the selected items is allowed, false otherwise
Returns true if the given TableView is in a state where the selected cells, rows, and/or
columns are all allowed to be pasted into with the current contents of the clipboard, false otherwise.
Parameters:
table - The TableView in question of whther a paste is allowed
Returns:
true if a paste of the selected items is allowed, false otherwise