/** * Disposes all resources that are used by this handler. */ public void destroy(){ if( container != null ){ setCursor( null ); current = null; container.removeMouseListener( this ); container.removeMouseMotionListener( this ); container = null; try { java.awt.Toolkit.getDefaultToolkit().removeAWTEventListener(this); } catch (Throwable e) { e.printStackTrace(); } setController( null ); station.removeDockHierarchyListener( this ); } }
/** * Disposes all resources that are used by this handler. */ public void destroy(){ if( container != null ){ setCursor( null ); current = null; container.removeMouseListener( this ); container.removeMouseMotionListener( this ); container = null; try { java.awt.Toolkit.getDefaultToolkit().removeAWTEventListener(this); } catch (Throwable e) { e.printStackTrace(); } setController( null ); station.removeDockHierarchyListener( this ); } }
public void install( Component container ){ if( this.container != null ){ throw new IllegalStateException( "already initialized" ); } this.container = container; container.addMouseListener( this ); container.addMouseMotionListener( this ); station.addDockHierarchyListener(this); setController( station.getController() ); }
public void controllerChanged( DockHierarchyEvent event ){ setController( station.getController() ); }
public void controllerChanged( DockHierarchyEvent event ){ setController( station.getController() ); }
public void install( Component container ){ if( this.container != null ){ throw new IllegalStateException( "already initialized" ); } this.container = container; container.addMouseListener( this ); container.addMouseMotionListener( this ); station.addDockHierarchyListener(this); setController( station.getController() ); }