@Test public void mouseEnter() { container.mouseEntered(new MouseEvent(cell1.getBounds().center())); assertTrue(cell1.myMouseIn); assertFalse(cell2.myMouseIn); }
public void mouseEntered(MouseEvent e) { changeCellUnderMouse(e, findCell(e.getLocation())); }
CellContainer { public void mouseEntered(MouseEvent e) { changeCellUnderMouse(e, findCell(e.getLocation())); } }
CellContainer { public void mouseEntered(MouseEvent e) { changeCellUnderMouse(e, findCell(e.getLocation())); } CellContainer(); }
CellContainer { public void mouseEntered(MouseEvent e) { changeCellUnderMouse(e, findCell(e.getLocation())); } CellContainer(); Runnable saveState(); void keyPressed(KeyEvent e); void keyReleased(KeyEvent e); void keyTyped(KeyEvent e); void mouseClicked(MouseEvent e); void mousePressed(MouseEvent e); void mouseReleased(MouseEvent e); void mouseMoved(MouseEvent e); void mouseDragged(MouseEvent e); void mouseEntered(MouseEvent e); void mouseLeft(MouseEvent e); void copy(CopyCutEvent e); void cut(CopyCutEvent e); void paste(PasteEvent e); void complete(CompletionEvent e); void paste(String text); Cell findCell(Cell current, Vector loc); Cell findCell(Vector loc); boolean isInCommand(); void executeCommand(Runnable r); Registration addListener(CellContainerListener l); void setCellContainerPeer(CellContainerPeer provider); void resetContainerPeer(); ReadableProperty<Boolean> focused(); void requestFocus(); Rectangle visibleRect(); EventDispatchThread getEdt(); }
CellContainer { public void mouseEntered(MouseEvent e) { changeCellUnderMouse(e, findCell(e.getLocation())); } CellContainer(); Runnable saveState(); void keyPressed(KeyEvent e); void keyReleased(KeyEvent e); void keyTyped(KeyEvent e); void mouseClicked(MouseEvent e); void mousePressed(MouseEvent e); void mouseReleased(MouseEvent e); void mouseMoved(MouseEvent e); void mouseDragged(MouseEvent e); void mouseEntered(MouseEvent e); void mouseLeft(MouseEvent e); void copy(CopyCutEvent e); void cut(CopyCutEvent e); void paste(PasteEvent e); void complete(CompletionEvent e); void paste(String text); Cell findCell(Cell current, Vector loc); Cell findCell(Vector loc); boolean isInCommand(); void executeCommand(Runnable r); Registration addListener(CellContainerListener l); void setCellContainerPeer(CellContainerPeer provider); void resetContainerPeer(); ReadableProperty<Boolean> focused(); void requestFocus(); Rectangle visibleRect(); EventDispatchThread getEdt(); final Property<Cell> focusedCell; final RootCell root; }