Lines Matching refs:source

74  * built in support will use the color returned by <code>getForeground</code> as the source
110 * An <code>int</code> representing a source action capability of either
223 * The source is a {@code DropTargetDragEvent} or
227 private Object source;
266 this.source = transferable;
281 this.source = event;
286 if (source == null) {
290 assert source instanceof DropTargetDragEvent ||
291 source instanceof DropTargetDropEvent;
293 Point p = source instanceof DropTargetDragEvent
294 ? ((DropTargetDragEvent)source).getLocation()
295 : ((DropTargetDropEvent)source).getLocation();
367 Point p = source instanceof DropTargetDragEvent
368 ? ((DropTargetDragEvent)source).getLocation()
369 : ((DropTargetDropEvent)source).getLocation();
406 * supported by the source's drop actions, and must be one
486 return (source instanceof DropTargetDragEvent)
487 ? ((DropTargetDragEvent)source).getDropAction()
488 : ((DropTargetDropEvent)source).getDropAction();
492 * Returns the drag source's supported drop actions, when this
495 * The source actions represent the set of actions supported by the
496 * source of this transfer, and are represented as some bitwise-OR
501 * if a particular action is supported by the source, bitwise-AND
502 * the action with the source drop actions, and then compare the result
512 * @return the drag source's supported drop actions
519 return (source instanceof DropTargetDragEvent)
520 ? ((DropTargetDragEvent)source).getSourceActions()
521 : ((DropTargetDropEvent)source).getSourceActions();
531 if (source instanceof DropTargetDragEvent) {
532 return ((DropTargetDragEvent)source).getCurrentDataFlavors();
534 return ((DropTargetDropEvent)source).getCurrentDataFlavors();
538 return ((Transferable)source).getTransferDataFlavors();
549 if (source instanceof DropTargetDragEvent) {
550 return ((DropTargetDragEvent)source).isDataFlavorSupported(df);
552 return ((DropTargetDropEvent)source).isDataFlavorSupported(df);
556 return ((Transferable)source).isDataFlavorSupported(df);
571 if (source instanceof DropTargetDragEvent) {
572 return ((DropTargetDragEvent)source).getTransferable();
574 return ((DropTargetDropEvent)source).getTransferable();
578 return (Transferable)source;
586 * source of the {@code ActionEvent} by invoking {@code exportToClipboard},
598 * source of the {@code ActionEvent} by invoking {@code exportToClipboard},
610 * source of the {@code ActionEvent} by invoking {@code importData},
734 // only support valid source actions
895 * this and choose a different action, from the supported source
970 * Returns the type of transfer actions supported by the source;
1017 * Creates a <code>Transferable</code> to use as the source for
1045 * @param source the component that was the source of the data
1050 protected void exportDone(JComponent source, Transferable data, int action) {