297 return rootPaneCheckingEnabled;
298 }
299
300 /**
301 * Sets the {@code transferHandler} property, which is a mechanism to
302 * support transfer of data into this component. Use {@code null}
303 * if the component does not support data transfer operations.
304 * <p>
305 * If the system property {@code suppressSwingDropSupport} is {@code false}
306 * (the default) and the current drop target on this component is either
307 * {@code null} or not a user-set drop target, this method will change the
308 * drop target as follows: If {@code newHandler} is {@code null} it will
309 * clear the drop target. If not {@code null} it will install a new
310 * {@code DropTarget}.
311 * <p>
312 * Note: When used with {@code JWindow}, {@code TransferHandler} only
313 * provides data import capability, as the data export related methods
314 * are currently typed to {@code JComponent}.
315 * <p>
316 * Please see
317 * <a href="http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html">
318 * How to Use Drag and Drop and Data Transfer</a>, a section in
319 * <em>The Java Tutorial</em>, for more information.
320 *
321 * @param newHandler the new {@code TransferHandler}
322 *
323 * @see TransferHandler
324 * @see #getTransferHandler
325 * @see java.awt.Component#setDropTarget
326 * @since 1.6
327 *
328 * @beaninfo
329 * bound: true
330 * hidden: true
331 * description: Mechanism for transfer of data into the component
332 */
333 public void setTransferHandler(TransferHandler newHandler) {
334 TransferHandler oldHandler = transferHandler;
335 transferHandler = newHandler;
336 SwingUtilities.installSwingDropTargetAsNecessary(this, transferHandler);
337 firePropertyChange("transferHandler", oldHandler, newHandler);
|
297 return rootPaneCheckingEnabled;
298 }
299
300 /**
301 * Sets the {@code transferHandler} property, which is a mechanism to
302 * support transfer of data into this component. Use {@code null}
303 * if the component does not support data transfer operations.
304 * <p>
305 * If the system property {@code suppressSwingDropSupport} is {@code false}
306 * (the default) and the current drop target on this component is either
307 * {@code null} or not a user-set drop target, this method will change the
308 * drop target as follows: If {@code newHandler} is {@code null} it will
309 * clear the drop target. If not {@code null} it will install a new
310 * {@code DropTarget}.
311 * <p>
312 * Note: When used with {@code JWindow}, {@code TransferHandler} only
313 * provides data import capability, as the data export related methods
314 * are currently typed to {@code JComponent}.
315 * <p>
316 * Please see
317 * <a href="http://docs.oracle.com/javase/tutorial/uiswing/dnd/index.html">
318 * How to Use Drag and Drop and Data Transfer</a>, a section in
319 * <em>The Java Tutorial</em>, for more information.
320 *
321 * @param newHandler the new {@code TransferHandler}
322 *
323 * @see TransferHandler
324 * @see #getTransferHandler
325 * @see java.awt.Component#setDropTarget
326 * @since 1.6
327 *
328 * @beaninfo
329 * bound: true
330 * hidden: true
331 * description: Mechanism for transfer of data into the component
332 */
333 public void setTransferHandler(TransferHandler newHandler) {
334 TransferHandler oldHandler = transferHandler;
335 transferHandler = newHandler;
336 SwingUtilities.installSwingDropTargetAsNecessary(this, transferHandler);
337 firePropertyChange("transferHandler", oldHandler, newHandler);
|