public void exportToClipboard(JComponent arg0, Clipboard arg1, int arg2) throws IllegalStateException { delegate.exportToClipboard(arg0, arg1, arg2); }
public void exportToClipboard(JComponent _c, Clipboard _clipboard, int _action) { action_ = _action; // FuLog.debug("BEX: EXPORT TO CLIPBOARD"); super.exportToClipboard(_c, _clipboard, _action); }
@Override public void exportToClipboard(JComponent comp, Clipboard clip, int action) { delegator.exportToClipboard(comp, clip, action); }
final Clipboard clipboard = frame.getToolkit().getSystemClipboard(); label.setTransferHandler(new ImageSelection()); ... TransferHandler handler = label.getTransferHandler(); handler.exportToClipboard(label, clipboard, TransferHandler.COPY);
public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException { JTreeTable.this.getTransferHandler().exportToClipboard( JTreeTable.this, clip, action); } });
/** * Copies selected rows to the system clipboard. */ public void copySelectedToClipboard() { final TransferHandler handler = resultsOutline.getTransferHandler(); final Toolkit tk = Toolkit.getDefaultToolkit(); final Clipboard clipboard = tk.getSystemClipboard(); handler.exportToClipboard(resultsOutline, clipboard, TransferHandler.COPY); }
/** * Copies selected rows to the system clipboard. */ public void copySelectedToClipboard() { final TransferHandler handler = resultsOutline.getTransferHandler(); final Toolkit tk = Toolkit.getDefaultToolkit(); final Clipboard clipboard = tk.getSystemClipboard(); handler.exportToClipboard(resultsOutline, clipboard, TransferHandler.COPY); }
@Override // To bring text copy and paste back to work on Win-Platforms public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException { if (comp instanceof JTextComponent) { JTextComponent txtComp = (JTextComponent) comp; String selText = txtComp.getSelectedText(); if (null == selText || 0 == selText.length()) { super.exportToClipboard(comp, clip, action); } else { StringSelection data = new StringSelection(selText); clip.setContents(data, data); } } else { super.exportToClipboard(comp, clip, action); } }
@Override public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException { super.exportToClipboard(comp, clip, action); if (action == COPY) { WorkflowView.copyProcessor(); } else if (action == MOVE) { WorkflowView.cutProcessor(); } } }
if ((clipboard != null) && (th != null) && (name != null)) { if ("cut".equals(name)) { th.exportToClipboard(c, clipboard, DnDConstants.ACTION_MOVE); } else if ("copy".equals(name)) { th.exportToClipboard(c, clipboard, DnDConstants.ACTION_COPY); } else if ("paste".equals(name)) { trans = clipboard.getContents(null);
@Override public void actionPerformed(ActionEvent evt) { JComponent c = target; if (c == null && (KeyboardFocusManager.getCurrentKeyboardFocusManager(). getPermanentFocusOwner() instanceof JComponent)) { c = (JComponent) KeyboardFocusManager.getCurrentKeyboardFocusManager(). getPermanentFocusOwner(); } // Note: copying is allowed for disabled components if (c != null) { c.getTransferHandler().exportToClipboard( c, ClipboardUtil.getClipboard(), TransferHandler.COPY); } } }
@Override public void actionPerformed(ActionEvent evt) { JComponent c = target; if (c == null && (KeyboardFocusManager.getCurrentKeyboardFocusManager(). getPermanentFocusOwner() instanceof JComponent)) { c = (JComponent) KeyboardFocusManager.getCurrentKeyboardFocusManager(). getPermanentFocusOwner(); } if (c != null && c.isEnabled()) { c.getTransferHandler().exportToClipboard( c, ClipboardUtil.getClipboard(), TransferHandler.MOVE); } } }