bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public AttributeSet getAttributes() { return getElement().getAttributes(); } | public AttributeSet getAttributes() { return getElement().getAttributes(); } | 5,383 |
public final void restoreScreen() throws IOException { int which = 0; ScreenPlanes planes = screen52.planes; try { log.debug("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 & 0xff00; pos |= bk.... | public final void restoreScreen() throws IOException { int which = 0;ScreenPlanes planes = screen52.planes; try { log.debug("Restore "); bk.getNextByte(); bk.getNextByte(); int rows = bk.getNextByte() & 0xff; int cols = bk.getNextByte() & 0xff; int pos = bk.getNextByte() << 8 & 0xff00; pos |= bk.getNex... | 5,385 |
public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); float span = 0; Element el = getElement(); switch (axis) { case X_AXIS: span = determineMaxLineLength(); ... | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); // make sure we have the metrics updateMetrics(); Element el = getElement(); switch (axis) { case X_AXIS: span = determineMaxLineLength(); case Y_AXIS: ... | 5,387 |
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement... | protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = el.getElementIndex(chan... | 5,389 |
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement... | protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement... | 5,390 |
protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement... | protected void updateDamage(DocumentEvent changes, Shape a, ViewFactory f) { Element el = getElement(); ElementChange ec = changes.getChange(el); // If ec is null then no lines were added or removed, just // repaint the changed line if (ec == null) { int line = getElement().getElement... | 5,391 |
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { Rectangle rec = a.getBounds(); Document doc = getDocument(); Element root = doc.getDefaultRootElement(); // PlainView doesn't support line-wrapping so we can find out which // Element was clicked on just by the y-position ... | public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { Rectangle rec = a.getBounds(); Document doc = getDocument(); Element root = doc.getDefaultRootElement(); // PlainView doesn't support line-wrapping so we can find out which // Element was clicked on just by the y-position ... | 5,393 |
private void jbInit() throws Exception { this.setLayout(borderLayout1);// this.setOpaque(false);// setDoubleBuffered(true); s.setOpaque(false); s.setDoubleBuffered(false); session.setGUI((SessionGUI)this);// screen = new Screen5250(this,sesConfig); screen = session.getScreen()... | if (SwingUtilities.isRightMouseButton(e)) { return; } if (SwingUtilities.isRightMouseButton(e)) { return; } privateif (SwingUtilities.isRightMouseButton(e)) { return; } voidif (SwingUtilities.isRightMouseButton(e)) { return; } jbInit()if (SwingUtilities.isRightMouseButton(e)) { return; } throwsif (SwingUtilities.isRigh... | 5,395 |
public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2 & doubleClick) { screen.sendKeys("[enter]"); } else { int pos = bi.getPosFromView(e.getX(), e.getY()); if (log.isDebugEnabled()) { log.d... | if (SwingUtilities.isRightMouseButton(e)) { return; } if (SwingUtilities.isRightMouseButton(e)) { return; } if (SwingUtilities.isRightMouseButton(e)) { return; } if (SwingUtilities.isRightMouseButton(e)) { return; } if (SwingUtilities.isRightMouseButton(e)) { return; } if (SwingUtilities.isRightMouseButton(e)) { return... | 5,396 |
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try {// ... | public final void run() {boolean done = false;me = Thread.currentThread();// load the first response screentry { loadStream(abyte2, 0);}catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage());}while (!done) { try {//waitingForInput = false;byte[] abyte0 = readIncoming();loadStream(abyte0, 0); } ca... | 5,397 |
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try {// ... | publicfinalvoidrun(){booleandone=false;me=Thread.currentThread();//loadthefirstresponsescreentry{loadStream(abyte2,0);}catch(IOExceptionioef){System.out.println("run()"+ioef.getMessage());}while(!done){try{//waitingForInput=false;byte[]abyte0=readIncoming();loadStream(abyte0,0);}catch(SocketExceptionse){//System.out.pr... | 5,398 |
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try {// ... | publicfinalvoidrun(){booleandone=false;me=Thread.currentThread();//loadthefirstresponsescreentry{loadStream(abyte2,0);}catch(IOExceptionioef){System.out.println("run()"+ioef.getMessage());}while(!done){try{//waitingForInput=false;byte[]abyte0=readIncoming();loadStream(abyte0,0);}catch(SocketExceptionse){//System.out.pr... | 5,399 |
public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { System.out.println(" run() " + ioef.getMessage()); } while (!done) { try {// ... | publicfinalvoidrun(){booleandone=false;me=Thread.currentThread();//loadthefirstresponsescreentry{loadStream(abyte2,0);}catch(IOExceptionioef){System.out.println("run()"+ioef.getMessage());}while(!done){try{//waitingForInput=false;byte[]abyte0=readIncoming();loadStream(abyte0,0);}catch(SocketExceptionse){//System.out.pr... | 5,400 |
public void editingCanceled(ChangeEvent e) { cancelEditing(tree); } | public void editingCanceled(ChangeEvent e) { completeEditing(false, false, false); } | 5,401 |
public void editingStopped(ChangeEvent e) { stopEditing(tree); } | public void editingStopped(ChangeEvent e) { completeEditing(false, false, true); } | 5,402 |
void repaintLeadRow() { TreePath lead = tree.getLeadSelectionPath(); if (lead!=null) tree.repaint(tree.getPathBounds(lead)); } | void repaintLeadRow() { TreePath lead = tree.getLeadSelectionPath(); if (lead != null) tree.repaint(tree.getPathBounds(lead)); } | 5,403 |
public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void keyPressed(KeyEvent e) { // TODO: What should be done here, if anything? } | 5,404 |
public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void keyPressed(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 5,405 |
public void keyReleased(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void keyReleased(KeyEvent e) { // TODO: What should be done here, if anything? } | 5,406 |
public void keyReleased(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void keyReleased(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 5,407 |
public void keyTyped(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void keyTyped(KeyEvent e) { // TODO: What should be done here, if anything? } | 5,408 |
public void keyTyped(KeyEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | char typed = Character.toLowerCase(e.getKeyChar()); for (int row = tree.getLeadSelectionRow() + 1; row < tree.getRowCount(); row++) { if (checkMatch(row, typed)) { tree.setSelectionRow(row); tree.scrollRowToVisible(row); return; } } for (int row = 0; row < tree.getLeadSelectionRow(); row++) { if (checkMatch(row, type... | 5,409 |
public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseDragged(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,410 |
public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 5,411 |
public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseMoved(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,412 |
public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 5,413 |
public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(... | public void mousePressed(MouseEvent e) { if (! e.isConsumed()) { handleEvent(e); selectedOnPress = true; } else { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.... | 5,414 |
public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(... | public void mousePressed(MouseEvent e) { if (tree != null && tree.isEnabled()) { // Maybe stop editing and return. if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return; int x = e.getX(); int y = e.getY(... | 5,415 |
public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseReleased(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,416 |
public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | if (! e.isConsumed() && ! selectedOnPress) handleEvent(e); if (! e.isConsumed() && ! selectedOnPress) handleEvent(e); if (! e.isConsumed() && ! selectedOnPress) handleEvent(e); if (! e.isConsumed() && ! selectedOnPress) handleEvent(e); publicif (! e.isConsumed() && ! selectedOnPress) handleEvent(e); voidif (! e.isConsu... | 5,417 |
public void mouseClicked(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseClicked(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,419 |
public void mouseClicked(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | dispatch(e); dispatch(e); dispatch(e); dispatch(e); publicdispatch(e); voiddispatch(e); mouseClicked(MouseEventdispatch(e); e)dispatch(e); dispatch(e); dispatch(e); dispatch(e); throwsdispatch(e); NotImplementedExceptiondispatch(e); dispatch(e); dispatch(e); dispatch(e); {dispatch(e); dispatch(e); dispatch(e); dispatch... | 5,420 |
public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseDragged(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,421 |
public void mouseDragged(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | dispatch(e); dispatch(e); dispatch(e); dispatch(e); publicdispatch(e); voiddispatch(e); mouseDragged(MouseEventdispatch(e); e)dispatch(e); dispatch(e); dispatch(e); dispatch(e); throwsdispatch(e); NotImplementedExceptiondispatch(e); dispatch(e); dispatch(e); dispatch(e); {dispatch(e); dispatch(e); dispatch(e); dispatch... | 5,422 |
public void mouseEntered(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseEntered(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,423 |
public void mouseEntered(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); publicif (! SwingUtilities.isLeftMouseButton(e)) removeFromSource();... | 5,424 |
public void mouseExited(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseExited(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,425 |
public void mouseExited(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); if (! SwingUtilities.isLeftMouseButton(e)) removeFromSource(); publicif (! SwingUtilities.isLeftMouseButton(e)) removeFromSource();... | 5,426 |
public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseMoved(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,427 |
public void mouseMoved(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | removeFromSource(); removeFromSource(); removeFromSource(); removeFromSource(); publicremoveFromSource(); voidremoveFromSource(); mouseMoved(MouseEventremoveFromSource(); e)removeFromSource(); removeFromSource(); removeFromSource(); removeFromSource(); throwsremoveFromSource(); NotImplementedExceptionremoveFromSource()... | 5,428 |
public void mousePressed(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mousePressed(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,429 |
public void mousePressed(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mousePressed(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | 5,430 |
public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void mouseReleased(MouseEvent e) { // TODO: What should be done here, if anything? } | 5,431 |
public void mouseReleased(MouseEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? } | dispatch(e); removeFromSource(); dispatch(e); removeFromSource(); dispatch(e); removeFromSource(); dispatch(e); removeFromSource(); publicdispatch(e); removeFromSource(); voiddispatch(e); removeFromSource(); mouseReleased(MouseEventdispatch(e); removeFromSource(); e)dispatch(e); removeFromSource(); dispatch(e); removeF... | 5,432 |
protected void removeFromSource() throws NotImplementedException { // TODO: Implement this properly. } | protected void removeFromSource() { // TODO: Implement this properly. } | 5,433 |
protected void removeFromSource() throws NotImplementedException { // TODO: Implement this properly. } | if (source != null) { source.removeMouseListener(this); source.removeMouseMotionListener(this); } source = null; destination = null; if (source != null) { source.removeMouseListener(this); source.removeMouseMotionListener(this); } source = null; destination = null; if (source != null) { source.removeMouseListener(this)... | 5,434 |
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 5,435 |
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 5,436 |
public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | public Rectangle getNodeDimensions(Object cell, int row, int depth, boolean expanded, Rectangle size) { if (size == null || cell == null) return null; String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetr... | 5,437 |
public void propertyChange(PropertyChangeEvent event) throws NotImplementedException { // TODO: What should be done here, if anything? } | public void propertyChange(PropertyChangeEvent event) { // TODO: What should be done here, if anything? } | 5,440 |
public void propertyChange(PropertyChangeEvent event) throws NotImplementedException { // TODO: What should be done here, if anything? } | treeSelectionModel.resetRowSelection(); treeSelectionModel.resetRowSelection(); treeSelectionModel.resetRowSelection(); treeSelectionModel.resetRowSelection(); publictreeSelectionModel.resetRowSelection(); voidtreeSelectionModel.resetRowSelection(); propertyChange(PropertyChangeEventtreeSelectionModel.resetRowSelection... | 5,441 |
public void actionPerformed(ActionEvent e) { String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeS... | public void actionPerformed(ActionEvent e) { String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeS... | 5,445 |
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | 5,446 |
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | 5,447 |
public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | public void valueChanged(TreeSelectionEvent event) { if (tree.isEditing()) tree.cancelEditing(); TreePath op = event.getOldLeadSelectionPath(); TreePath np = event.getNewLeadSelectionPath(); // Repaint of the changed lead selection path. if (op != np) { Recta... | 5,448 |
public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; String command = (String) getValue(Action.NAME); if (command.equals("selectParent")) { if (current == null) return; if (tree.isE... | public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; String command = (String) getValue(Action.NAME); if (command.equals("selectParent")) { if (current == null) return; if (tree.isE... | 5,450 |
public void cancelEditing(JTree tree) { // There is no need to send the cancel message to the editor, // as the cancellation event itself arrives from it. This would // only be necessary when cancelling the editing programatically. completeEditing(false, false, false); finish(); } | public void cancelEditing(JTree tree) { // There is no need to send the cancel message to the editor, // as the cancellation event itself arrives from it. This would // only be necessary when cancelling the editing programatically. completeEditing(false, false, false); finish(); } | 5,452 |
protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); } | protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); configureLayoutCache(); treeState.setRootVisible(tree.isRootVisible()); treeSelectionModel.setRowMapper(treeState); configureL... | 5,454 |
protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); } | protected void completeUIInstall() { setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); updateSize(); } | 5,455 |
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action = new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Ac... | 5,456 |
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action = new TreeHomeAction(-1, "selectFirstChangeLead"); am.put(action.getValue(Action.NAME), ac... | 5,457 |
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 5,458 |
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 5,459 |
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 5,460 |
private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | private ActionMap createDefaultActions() { ActionMapUIResource am = new ActionMapUIResource(); Action action; action= new TreeAction(); am.put(action.getValue(Action.NAME), action); // TreeHomeAction. action= new TreeHomeAction(-1, "selectFirst"); am.put(action.getValue(Action.NAME), action); ... | 5,461 |
protected TreePath getLastChildPath(TreePath parent) { return ((TreePath) parent.getLastPathComponent()); } | protected TreePath getLastChildPath(TreePath parent) { return (TreePath) parent.getLastPathComponent(); } | 5,463 |
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) SharedUIDefaults.get("Tree.focusInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED, focusInputMap); InputMap ancestorInputMap = (InputMap) SharedUIDefaults.get(... | protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) SharedUIDefaults.get("Tree.focusInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED, focusInputMap); InputMap ancestorInputMap = (InputMap) SharedUIDefaults.get(... | 5,465 |
protected void installListeners() { propertyChangeListener = createPropertyChangeListener(); tree.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); tree.addFocusListener(focusListener); treeSelectionListener = createTreeSelectionListener(); tree.addTreeSelect... | protected void installListeners() { propertyChangeListener = createPropertyChangeListener(); tree.addPropertyChangeListener(propertyChangeListener); focusListener = createFocusListener(); tree.addFocusListener(focusListener); treeSelectionListener = createTreeSelectionListener(); tree.addTreeSelect... | 5,466 |
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i... | protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width; // Only guessing. Icon expandedIcon = getExpandedIcon(); if (e... | 5,467 |
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i... | protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; if (! treeModel.isLeaf(path.getLastPathComponent())) { int width = 8; // Only guessing. Icon expandedIcon = getExpandedIcon(); i... | 5,468 |
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr... | protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); boolean paintLine; if (isRootVisible()) paintLine = parent != null; else paint... | 5,469 |
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr... | protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) { Rectangle bounds = getPathBounds(tree, path); TreePath parent = path.getParentPath(); if (parent != null) { Rectangle parentBounds = getPathBounds(tr... | 5,470 |
protected void setCellEditor(TreeCellEditor editor) { cellEditor = editor; createdCellEditor = true; } | protected void setCellEditor(TreeCellEditor editor) { cellEditor = editor; createdCellEditor = true; } | 5,472 |
protected void setCellRenderer(TreeCellRenderer tcr) { currentCellRenderer = tcr; updateRenderer(); } | protected void setCellRenderer(TreeCellRenderer tcr) { completeEditing(); updateRenderer(); } | 5,473 |
protected void setEditable(boolean newValue) { tree.setEditable(newValue); } | protected void setEditable(boolean newValue) { updateCellEditor(); } | 5,475 |
protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); return... | protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) { Object node = path.getLastPathComponent(); return... | 5,480 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,481 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,482 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,483 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,484 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,485 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,486 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,487 |
protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | protected boolean startEditing(TreePath path, MouseEvent event) { updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && (event == EDIT || ed.shouldSelectCell(event)) && ed.isCellEditable(event)) { Rectangle bounds = getPathBounds(tree, path); // Extend the righ... | 5,488 |
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | public boolean stopEditing(JTree tree) { boolean ret = false; if (editingComponent != null && cellEditor.stopCellEditing()) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | 5,491 |
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); ret = true; } return ! isEditing(tree); } | 5,492 |
public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ! isEditing(tree); } | public boolean stopEditing(JTree tree) { if (isEditing(tree)) { completeEditing(false, false, true); finish(); } return ret; } | 5,493 |
protected void toggleExpandState(TreePath path) { if (tree.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } | protected void toggleExpandState(TreePath path) { if (treeState.isExpanded(path)) tree.collapsePath(path); else tree.expandPath(path); } | 5,494 |
protected void uninstallKeyboardActions() { action = null; tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( null); tree.getActionMap().setParent(null); } | protected void uninstallKeyboardActions() { tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( null); tree.getActionMap().setParent(null); } | 5,495 |
protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; } | protected void updateCellEditor() { if (tree.isEditable() && cellEditor == null) setCellEditor(createDefaultCellEditor()); createdCellEditor = true; } | 5,496 |
protected void updateExpandedDescendants(TreePath path) { Enumeration expanded = tree.getExpandedDescendants(path); while (expanded.hasMoreElements()) treeState.setExpandedState(((TreePath) expanded.nextElement()), true); } | protected void updateExpandedDescendants(TreePath path) { Enumeration expanded = tree.getExpandedDescendants(path); while (expanded.hasMoreElements()) treeState.setExpandedState((TreePath) expanded.nextElement(), true); } | 5,498 |
protected void updateRenderer() { if (tree != null) currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); updateCellEditor(); } | protected void updateRenderer() { if (tree != null) currentCellRenderer = tree.getCellRenderer(); if (currentCellRenderer == null) currentCellRenderer = createDefaultCellRenderer(); updateCellEditor(); } | 5,499 |
public TreePath getOldLeadSelectionPath() { return oldLeadSelectionPath; } // getOldLeadSelectionPath() | public TreePath getOldLeadSelectionPath() { return oldLeadSelectionPath; } // getOldLeadSelectionPath() | 5,500 |
public TreePath getNewLeadSelectionPath() { return newLeadSelectionPath; } // getNewLeadSelectionPath() | public TreePath getNewLeadSelectionPath() { return newLeadSelectionPath; } // getNewLeadSelectionPath() | 5,501 |
public VariableHeightLayoutCache() { // TODO } // VariableHeightLayoutCache() | public VariableHeightLayoutCache() { // TODO } // VariableHeightLayoutCache() | 5,502 |
public VariableHeightLayoutCache() { // TODO } // VariableHeightLayoutCache() | public VariableHeightLayoutCache() { // TODO } // VariableHeightLayoutCache() | 5,503 |
public int getRowHeight() { return rowHeight; } | publicintgetRowHeight(){returnrowHeight;} | 5,504 |
public boolean isPathEditable(TreePath path) { return isEditable(); } | public boolean isPathEditable(TreePath path) { return isEditable(); } | 5,505 |
public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while (paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if (nodeStates.get(nextPath) == EXPANDED && path.isDescendant(nextPath... | public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while (paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if (nodeStates.get(nextPath) == EXPANDED && path.isDescendant(nextPath... | 5,506 |
public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while (paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if (nodeStates.get(nextPath) == EXPANDED && path.isDescendant(nextPath... | public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while (paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if (nodeStates.get(nextPath) == EXPANDED && path.isDescendant(nextPath... | 5,507 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.