Package net.xoetrope.swing.dnd

Examples of net.xoetrope.swing.dnd.XTransferHandlerFactory


   * @param state true to enable drag and drop support
   */
  public void setDragEnabled( boolean state )
  {   
    if ( state ) {
      XTransferHandlerFactory thf = XTransferHandlerFactory.getInstance( XProjectManager.getCurrentProject());
      if ( thf != null ) {
        TransferHandler th = thf.getTransferHandler( this, null );
        if ( th != null ) {
          super.setDragEnabled( true );
          setTransferHandler( th );
//            addMouseListener( this );
//            addMouseMotionListener( this );
View Full Code Here


      {}
    }
    else if ( attribNameLwr.equals( "dragenabled" )) {
      boolean state = "true".equals( attribValueLwr );
      if ( state ) {
        XTransferHandlerFactory thf = XTransferHandlerFactory.getInstance( XProjectManager.getCurrentProject());
        if ( thf != null ) {
          TransferHandler th = thf.getTransferHandler( this, null );
          if ( th != null ) {
            addMouseListener( this );
            addMouseMotionListener( this );
            setTransferHandler( th );
            return 0;
View Full Code Here

   * @param state true to enable drag and drop support
   */
  public void setDragEnabled( boolean state )
  {   
    if ( state ) {
      XTransferHandlerFactory thf = XTransferHandlerFactory.getInstance( XProjectManager.getCurrentProject());
      if ( thf != null ) {
        TransferHandler th = thf.getTransferHandler( this, null );
        if ( th != null ) {
          super.setDragEnabled( true );
          setTransferHandler( th );
          return;
        }
View Full Code Here

TOP

Related Classes of net.xoetrope.swing.dnd.XTransferHandlerFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.