/** * Tries to find the Dockable which owns <code>component</code> * and sets this Dockable to the focusedDockable. The method * only succeeds if no veto-listener reacts. * @param component the component whose dockable parent is to set * focused * @param event the event that causes this check */ protected void check( Component component, AWTEvent event ){ check( component, true, false, event ); }
/** * This method may be called at any time by any component that received * the {@link MouseEvent} <code>event</code>. This observer may transfer the * focus because of this call.<br> * If this application runs in a {@link DockController#isRestrictedEnvironment() restricted environment} * than any {@link DockStation} of this framework will call this method. * @param event the event to check */ public void check( MouseEvent event ){ if( interact( event )){ check( (AWTEvent)event ); } }
public MouseFocusObserver createMouseFocusObserver( DockController controller, ControllerSetupCollection setup ) { return new DefaultMouseFocusObserver( controller, setup ); }
public void run(){ DockElementRepresentative element = getDockable( component, event ); if( element != null ){ Dockable dock = element.getElement().asDockable(); if( dock != null ){ controller.setFocusedDockable( new DefaultFocusRequest( dock, component, false, ensureFocus, element.shouldTransfersFocus() )); } } } });
/** * Stops this FocusController. This controller will remove all * its listeners and become ready for the garbage collector. */ public void kill(){ getController().getRelocator().removeVetoableDockRelocatorListener( relocatorListener ); GlobalMouseDispatcher dispatcher = controller.getGlobalMouseDispatcher(); dispatcher.removeMouseListener( listener ); dispatcher.removeMouseMotionListener( listener ); dispatcher.removeMouseWheelListener( listener ); }
handleVeto( event, veto ); return null;
public void run(){ DockElementRepresentative element = getDockable( component, event ); if( element != null ){ Dockable dock = element.getElement().asDockable(); if( dock != null ){ controller.setFocusedDockable( new DefaultFocusRequest( dock, component, false, ensureFocus, element.shouldTransfersFocus() )); } } } });
/** * Stops this FocusController. This controller will remove all * its listeners and become ready for the garbage collector. */ public void kill(){ getController().getRelocator().removeVetoableDockRelocatorListener( relocatorListener ); GlobalMouseDispatcher dispatcher = controller.getGlobalMouseDispatcher(); dispatcher.removeMouseListener( listener ); dispatcher.removeMouseMotionListener( listener ); dispatcher.removeMouseWheelListener( listener ); }
handleVeto( event, veto ); return null;
/** * Tries to find the Dockable which owns <code>component</code> * and sets this Dockable to the focusedDockable. The method * only succeeds if no veto-listener reacts. * @param component the component whose dockable parent is to set * focused * @param event the event that causes this check */ protected void check( Component component, AWTEvent event ){ check( component, true, false, event ); }
/** * This method may be called at any time by any component that received * the {@link MouseWheelEvent} <code>event</code>. This observer may transfer the * focus because of this call.<br> * If this application runs in a {@link DockController#isRestrictedEnvironment() restricted environment} * than any {@link DockStation} of this framework will call this method. * @param event the event to check */ public void check( MouseWheelEvent event ){ if( interact( event )){ check( (AWTEvent)event ); } }
DockElementRepresentative element = getDockable( component, event ); if( element == null ){ return;
public void mouseExited( MouseEvent e ){ check( e ); } }
/** * This method may be called at any time by any component that received * the {@link MouseWheelEvent} <code>event</code>. This observer may transfer the * focus because of this call.<br> * If this application runs in a {@link DockController#isRestrictedEnvironment() restricted environment} * than any {@link DockStation} of this framework will call this method. * @param event the event to check */ public void check( MouseWheelEvent event ){ if( interact( event )){ check( (AWTEvent)event ); } }
DockElementRepresentative element = getDockable( component, event ); if( element == null ){ return;
public void mouseEntered( MouseEvent e ){ check( e ); }
/** * This method may be called at any time by any component that received * the {@link MouseEvent} <code>event</code>. This observer may transfer the * focus because of this call.<br> * If this application runs in a {@link DockController#isRestrictedEnvironment() restricted environment} * than any {@link DockStation} of this framework will call this method. * @param event the event to check */ public void check( MouseEvent event ){ if( interact( event )){ check( (AWTEvent)event ); } }
public void mouseExited( MouseEvent e ){ check( e ); } }
public void mouseReleased( MouseEvent e ){ check( e ); }
public void mouseMoved( MouseEvent e ){ check( e ); }