/** Creates transferable that represents a node operation, such as cut-to-clipboard. * The transferable will be recognizable by {@link #node}, {@link #nodes}, and {@link #cookie}. * * @param n the node to create a transferable for * @param actions the action performed on the node * @return the transferable */ public static ExTransferable.Single transferable(final Node n, int actions) { return new ExTransferable.Single(createDndFlavor(actions)) { public Object getData() { return n; } }; }
/** Creates transferable that represents a node operation, such as cut-to-clipboard. * The transferable will be recognizable by {@link #node}, {@link #nodes}, and {@link #cookie}. * * @param n the node to create a transferable for * @param actions the action performed on the node * @return the transferable */ public static ExTransferable.Single transferable (final Node n, int actions) { return new ExTransferable.Single (createDndFlavor (actions)) { public Object getData () { return n; } }; }
/** Creates transferable that represents a node operation, such as cut-to-clipboard. * The transferable will be recognizable by {@link #node}, {@link #nodes}, and {@link #cookie}. * * @param n the node to create a transferable for * @param actions the action performed on the node * @return the transferable */ public static ExTransferable.Single transferable (final Node n, int actions) { return new ExTransferable.Single (createDndFlavor (actions)) { public Object getData () { return n; } }; }