Package java.awt

Examples of java.awt.Component.removeMouseMotionListener()


      Component  c;
   
      while( !collObservedComponents.isEmpty() ) {
        c  = (Component) collObservedComponents.remove( 0 );
        c.removeMouseListener( this );
        c.removeMouseMotionListener( this );
      }
    }

    public void toolDismissed( Component c )
    {
View Full Code Here


  void dispose() {
    Component display = viewer.getDisplay();
    actionManager.dispose();
    display.removeMouseListener(this);
    display.removeMouseMotionListener(this);
    display.removeMouseWheelListener(this);
    display.removeKeyListener(this);
  }

  boolean handleOldJvm10Event(Event e) {
View Full Code Here

    public void ancestorRemoved(AncestorEvent event) {
      rootPane.getJMenuBar().setEnabled(true);
      final Component glassPane = rootPane.getRootPane().getGlassPane();
      glassPane.removeMouseListener(mouseListener);
      glassPane.removeMouseMotionListener(mouseListener);
      glassPane.setVisible(false);
      SwingUtilities.getWindowAncestor(rootPane).setFocusableWindowState(true);
    }

    public void ancestorMoved(AncestorEvent event) {
View Full Code Here

    protected void uninstallListeners(Dockable dockable) {
        Set frameDraggers = getFrameDragSources(dockable);
        for(Iterator it=frameDraggers.iterator(); it.hasNext();) {
            Component frameDragSrc = (Component)it.next();
            frameDragSrc.removeMouseListener(dragListener);
            frameDragSrc.removeMouseMotionListener(dragListener);
        }
        dockable.removeDockingListener(this);
    }

    public int getDockableCount() {
View Full Code Here

        token.setCachedListeners(cachedListeners);
        DragManager dragListener = token.getDragListener();

        // remove all of the MouseMotionListeners
        for (int i = 0; i < cachedListeners.length; i++) {
            dragSrc.removeMouseMotionListener((MouseMotionListener) cachedListeners[i]);
        }
        // then, re-add the DragManager
        if(dragListener!=null)
            dragSrc.addMouseMotionListener(dragListener);
    }
View Full Code Here

        EventListener[] cachedListeners = token.getCachedListeners();
        DragManager dragListener = token.getDragListener();

        // remove the pipeline listener
        if(dragListener!=null)
            dragSrc.removeMouseMotionListener(dragListener);

        // now, re-add all of the original MouseMotionListeners
        for (int i = 0; i < cachedListeners.length; i++)
            dragSrc.addMouseMotionListener((MouseMotionListener) cachedListeners[i]);
    }
View Full Code Here

      Component  c;
   
      while( !collObservedComponents.isEmpty() ) {
        c  = (Component) collObservedComponents.remove( 0 );
        c.removeMouseListener( this );
        c.removeMouseMotionListener( this );
      }
    }

    public void toolDismissed( Component c )
    {
View Full Code Here

      if(cpn instanceof java.awt.Window) {
    ((java.awt.Window)cpn).removeWindowListener(pwa);
    ((java.awt.Window)cpn).removeComponentListener(pca);
      } else {
    cpn.removeMouseListener(pma);
    cpn.removeMouseMotionListener(pma);
    if (on1dot4) {
        try {
      Class types[] = { Class.forName("java.awt.event.MouseWheelListener") };
      Object args[] = { pmwl };
      Method m = window.getClass().getMethod("removeMouseWheelListener", types);
View Full Code Here

        {
          Component old = (Component) evt.getOldValue();
          if (old != null)
            {
              old.removeMouseListener(glassPaneDispatcher);
              old.removeMouseMotionListener(glassPaneDispatcher);
            }

          Component newPane = (Component) evt.getNewValue();
          if (newPane != null)
            {
View Full Code Here

    {
        if (_host != null) {
            // unwire ourselves from the host component
            Component comp = _host.getComponent();
            comp.removeMouseListener(this);
            comp.removeMouseMotionListener(this);

            // reinstate the previous mouse listeners
            if (_hijacker != null) {
                _hijacker.release();
                _hijacker = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.