bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public boolean isEqualNode(Node arg) { throw new Error("not implemented"); }
public boolean isEqualNode(Node arg) { return true; }
23,218
public String lookupNamespaceURI(String prefix) { throw new Error("not implemented"); }
public String lookupNamespaceURI(String prefix) { return null; }
23,219
public String lookupPrefix(String namespaceURI) { throw new Error("not implemented"); }
public String lookupPrefix(String namespaceURI) { return null; }
23,220
public void setAttribute(String name, String value) { Attr attr = (Attr) getAttributeNode(name); if (attr != null) attr.setValue(value); else attrs.put(name, new IIOAttr(name, value, this)); }
public void setAttribute(String name, String value) { Attr attr = (Attr) getAttributeNode(name); if (attr != null) attr.setValue(value); else attrs.put(name, new IIOMetadataNodeAttr(this, name, value)); }
23,221
public void setIdAttribute(String name, boolean isId) throws DOMException { throw new Error("not implemented"); }
public void setIdAttribute(String name, boolean isId) throws DOMException { }
23,222
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException { throw new Error("not implemented"); }
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException { }
23,223
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException { throw new Error("not implemented"); }
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException { }
23,224
public void setTextContent(String textContent) throws DOMException { throw new Error("not implemented"); }
public void setTextContent(String textContent) throws DOMException { }
23,225
public Object setUserData(String key, Object data, UserDataHandler handler) { throw new Error("not implemented"); }
public Object setUserData(String key, Object data, UserDataHandler handler) { return null; }
23,226
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox(); accessibleContext = ac; addItemListener(ac); } return accessibleContext;}
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { AccessibleAWTCheckbox ac = new AccessibleAWTCheckbox(); accessibleContext = ac; addItemListener(ac); } return accessibleContext;}
23,227
public Component getComponent() { return null; }
public final Component getComponent() { return null; }
23,228
public void actionPerformed(ActionEvent ae) throws NotImplementedException { // TODO: Implement this properly. }
public void actionPerformed(ActionEvent ae) { // TODO: Implement this properly. }
23,229
public void actionPerformed(ActionEvent ae) throws NotImplementedException { // TODO: Implement this properly. }
if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { if (timer != null) timer.stop(); updateSize(); timer = null; scrollBar = null; } if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { if (timer != null) timer.stop(); updateSize(); timer = null; scrollBar = null; } if (scrollBar == null || !scrollBar....
23,230
public void componentMoved(ComponentEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
public void componentMoved(ComponentEvent e) { // TODO: What should be done here, if anything? }
23,231
public void componentMoved(ComponentEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
if (timer == null) { JScrollPane scrollPane = getScrollPane(); if (scrollPane == null) updateSize(); else { scrollBar = scrollPane.getVerticalScrollBar(); if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { scrollBar = scrollPane.getHorizontalScrollBar(); if (scrollBar != null && scrollBar.getValueIsAdjust...
23,232
protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. return null; }
protected JScrollPane getScrollPane() { // FIXME: Not implemented. return null; }
23,233
protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. return null; }
protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. JScrollPane found = null; Component p = tree.getParent(); while (p != null && !(p instanceof JScrollPane)) p = p.getParent(); if (p instanceof JScrollPane) found = (JScrollPane) p; return found; }
23,234
protected void startTimer() throws NotImplementedException { // TODO: Implement this properly. }
protected void startTimer() { // TODO: Implement this properly. }
23,235
protected void startTimer() throws NotImplementedException { // TODO: Implement this properly. }
if (timer == null) { timer = new Timer(200, this); timer.setRepeats(true); } timer.start(); if (timer == null) { timer = new Timer(200, this); timer.setRepeats(true); } timer.start(); if (timer == null) { timer = new Timer(200, this); timer.setRepeats(true); } timer.start(); if (timer == null) { timer = new Timer(200, ...
23,236
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (tree != null && tree.isEnabled()) { startEditTimer.stop(); startEditTimer = null; } Point click...
23,237
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
23,238
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
23,239
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
23,240
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
23,241
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
23,242
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
23,243
public void propertyChange(PropertyChangeEvent event) { String property = event.getPropertyName(); if (property.equals(JTree.ROOT_VISIBLE_PROPERTY)) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } else i...
public void propertyChange(PropertyChangeEvent event) { String property = event.getPropertyName(); if (property.equals(JTree.ROOT_VISIBLE_PROPERTY)) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } else i...
23,244
public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
23,245
public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
direction = dir; putValue(Action.NAME, name); direction = dir; putValue(Action.NAME, name); direction = dir; putValue(Action.NAME, name); direction = dir; putValue(Action.NAME, name); publicdirection = dir; putValue(Action.NAME, name); TreeHomeAction(intdirection = dir; putValue(Action.NAME, name); direction,direction ...
23,246
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly }
public void actionPerformed(ActionEvent e) { // TODO: Implement this properly }
23,247
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly }
if (tree != null) { String command = (String) getValue(Action.NAME); if (command.equals("selectFirst")) { ensureRowsAreVisible(0, 0); tree.setSelectionInterval(0, 0); } if (command.equals("selectFirstChangeLead")) { ensureRowsAreVisible(0, 0); tree.setLeadSelectionPath(getPathForRow(tree, 0)); } if (command.equals("sel...
23,248
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
public boolean isEnabled() { // TODO: Implement this properly return false; }
23,249
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return (tree != null) && tree.isEnabled(); }
23,250
public TreeIncrementAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
public TreeIncrementAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
23,251
public TreeIncrementAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
direction = dir; putValue(Action.NAME, name); direction = dir; putValue(Action.NAME, name); direction = dir; putValue(Action.NAME, name); direction = dir; putValue(Action.NAME, name); publicdirection = dir; putValue(Action.NAME, name); TreeIncrementAction(intdirection = dir; putValue(Action.NAME, name); direction,direc...
23,252
public void actionPerformed(ActionEvent e) { TreePath currentPath = tree.getLeadSelectionPath(); int currentRow; if (currentPath != null) currentRow = treeState.getRowForPath(currentPath); else currentRow = 0; int rows = treeState.getRowCount(); int nextRow = currentRo...
public void actionPerformed(ActionEvent e) { TreePath currentPath = tree.getLeadSelectionPath(); int currentRow; if (currentPath != null) currentRow = treeState.getRowForPath(currentPath); else currentRow = 0; int rows = treeState.getRowCount(); int nextRow = currentRo...
23,253
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
public boolean isEnabled() { // TODO: Implement this properly return false; }
23,254
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return (tree != null) && tree.isEnabled(); }
23,255
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
public void actionPerformed(ActionEvent e) { // TODO: Implement this properly. }
23,257
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeSelection") || command.equals("scrollDownChangeSelection"); if (!extendSelection && !changeSelect...
23,258
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
public boolean isEnabled() { // FIXME: Not implemented. return false; }
23,259
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return (tree != null) && tree.isEnabled(); }
23,260
public TreeToggleAction(String name) { // Nothing to do here. }
putValue(Action.NAME, name); putValue(Action.NAME, name); putValue(Action.NAME, name); putValue(Action.NAME, name); publicputValue(Action.NAME, name); TreeToggleAction(StringputValue(Action.NAME, name); name)putValue(Action.NAME, name); putValue(Action.NAME, name); putValue(Action.NAME, name); putValue(Action.NAME, nam...
23,261
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
public void actionPerformed(ActionEvent e) { // TODO: Implement this properly. }
23,262
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
int selected = tree.getLeadSelectionRow(); if (selected != -1 && isLeaf(selected)) { TreePath anchorPath = tree.getAnchorSelectionPath(); TreePath leadPath = tree.getLeadSelectionPath(); toggleExpandState(getPathForRow(tree, selected)); tree.setLeadSelectionPath(leadPath); tree.setAnchorSelectionPath(anchorPath); } i...
23,263
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
public boolean isEnabled() { // FIXME: Not implemented. return false; }
23,264
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return (tree != null) && tree.isEnabled(); }
23,265
public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) { if (current == null) return; if (tree.isExpanded(current)) { ...
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.isExpand...
23,267
public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) { if (current == null) return; if (tree.isExpanded(current)) { ...
public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) { if (current == null) return; if (tree.isExpanded(current)) { ...
23,268
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
public boolean isEnabled() { // TODO: Implement this properly return false; }
23,269
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return (tree != null) && tree.isEnabled(); }
23,270
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis...
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis...
23,271
protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY) { if (isLocationInExpandControl(path, mouseX, mouseY)) toggleExpandState(path); }
protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY) { if (isLocationInExpandControl(path, mouseX, mouseY)) handleExpandControlClick(path, mouseX, mouseY); }
23,272
protected void completeUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
protected void completeUIInstall() { // TODO: Implement this properly. }
23,273
protected void completeUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize(); setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updat...
23,274
protected void completeUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
protected void completeUIUninstall() { // TODO: Implement this properly. }
23,275
protected void completeUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
tree = null; tree = null; protectedtree = null; voidtree = null; completeUIUninstall()tree = null; tree = null; throwstree = null; NotImplementedExceptiontree = null; tree = null; {tree = null; tree = null; tree = null; tree = null; //tree = null; TODO:tree = null; Implementtree = null; thistree = null; properly.tree =...
23,276
protected TreeCellEditor createDefaultCellEditor() { if (currentCellRenderer != null) return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return...
protected TreeCellEditor createDefaultCellEditor() { if (currentCellRenderer != null) return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return...
23,277
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
23,278
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); for (int i = 0; i < keys.length; i++) ...
23,279
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
23,280
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
23,281
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionMod...
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseListener); tree.addKeyListener(keyListener); selectionModelPropertyChangeListener = cre...
23,282
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
public void installUI(JComponent c) { tree = (JTree) c; prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; setMo...
23,284
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; ...
23,285
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
23,286
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
23,287
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { int width = 8; Icon expandedIcon = getExpandedIcon(); if (expandedIcon != nul...
23,288
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
23,289
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; }
protected boolean isToggleEvent(MouseEvent event) { // FIXME: Not implemented. return true; }
23,290
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; }
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. boolean toggle = false; if (SwingUtilities.isLeftMouseButton(event)) { int clickCount = tree.getToggleClickCount(); if (clickCount > 0 && event.getClickCount() == clickCount) toggle = true; } return to...
23,291
protected void prepareForUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
protected void prepareForUIInstall() { // TODO: Implement this properly. }
23,292
protected void prepareForUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
lastSelectedRow = -1; preferredSize = new Dimension(); largeModel = tree.isLargeModel(); preferredSize = new Dimension(); setModel(tree.getModel()); lastSelectedRow = -1; preferredSize = new Dimension(); largeModel = tree.isLargeModel(); preferredSize = new Dimension(); setModel(tree.getModel()); protectedlastSelectedR...
23,293
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
protected void prepareForUIUninstall() { // TODO: Implement this properly. }
23,294
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
23,295
protected void selectPathForEvent(TreePath path, MouseEvent event) { if (isToggleSelectionEvent(event)) { // The event selects or unselects the clicked row. if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); ...
protected void selectPathForEvent(TreePath path, MouseEvent event) { if (isToggleSelectionEvent(event)) { // The event selects or unselects the clicked row. if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); ...
23,296
protected void setModel(TreeModel model) { tree.setModel(model); treeModel = tree.getModel(); treeState.setModel(treeModel); }
protected void setModel(TreeModel model) { completeEditing(); if (treeModel != null && treeModelListener != null) treeModel.removeTreeModelListener(treeModelListener); treeModel = tree.getModel(); treeState.setModel(treeModel); }
23,297
protected void setShowsRootHandles(boolean newValue) { tree.setShowsRootHandles(newValue); }
protected void setShowsRootHandles(boolean newValue) { completeEditing(); updateDepthOffset(); if (treeState != null) { treeState.invalidateSizes(); updateSize(); } }
23,299
public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; uninstallComponents(); completeUIUninstall(); }
public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); uninstallComponents(); completeUIUninstall(); }
23,300
protected void updateLayoutCacheExpandedNodes() { if (treeModel != null) updateExpandedDescendants(new TreePath(treeModel.getRoot())); }
protected void updateLayoutCacheExpandedNodes() { if (treeModel != null && treeModel.getRoot() != null) updateExpandedDescendants(new TreePath(treeModel.getRoot())); }
23,301
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); }
public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); }
23,304
public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); }
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); }
23,305
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); }
public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); }
23,306
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,...
public Object createValue(UIDefaults table) { Color lineColor = new Color(238, 238, 238); Border inner = BorderFactory.createLineBorder(lineColor, 1); Color shadowInner = new Color(184, 207, 229); Color shadowOuter = new Color(122, 138, 153); Border outer = BorderFactory.createBevelBorder(BevelBorder.RAISED,...
23,307
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
23,308
public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); }
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
23,309
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or array, do the slow test ...
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or array, do the slow test ...
23,310
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or array, do the slow test ...
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType resolvedType = classRef.getResolvedVmClass(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or array, do the slow test ...
23,311
protected CertificateRep(String type, byte[] data) { this.type = type; this.data = data; }
protected CertificateRep(String type, byte[] data) { this.type = type; this.data = data; }
23,312
protected Object readResolve() throws ObjectStreamException { try { return new ObjectInputStream( new ByteArrayInputStream( data ) ).readObject(); } catch ( Exception e ) { e.printStackTrace(); throw new RuntimeException ( e.toString() ); } }
protected Object readResolve() throws ObjectStreamException { try { return new ObjectInputStream( new ByteArrayInputStream( data ) ).readObject(); } catch ( Exception e ) { e.printStackTrace(); throw new RuntimeException ( e.toString() ); } }
23,313
protected Object readResolve() throws ObjectStreamException { try { return new ObjectInputStream( new ByteArrayInputStream( data ) ).readObject(); } catch ( Exception e ) { e.printStackTrace(); throw new RuntimeException ( e.toString() ); } }
protected Object readResolve() throws ObjectStreamException { try { return new ObjectInputStream( new ByteArrayInputStream( data ) ).readObject(); } catch ( Exception e ) { e.printStackTrace(); throw new RuntimeException ( e.toString() ); } }
23,314
static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h, Color light, Color dark) { //if (g instanceof Graphics2D) if (false /* we don't have propper g2d in jnode yet, use the simple graphics here*/ && g instanceof Graphics2D) fillMetalPat...
static void fillMetalPattern(Component c, Graphics g, int x, int y, int w, int h, Color light, Color dark) { //if (g instanceof Graphics2D) if (false /* we don't have propper g2d in jnode yet, use the simple graphics here*/ && g instanceof Graphics2D) fillMetalPat...
23,315
public void write_value(Serializable value) { ValueBaseHelper.write(this, value); }
public void write_value(Serializable value) { Vio.write(this, value); }
23,316
public String getCharsetName () { return getMessage (); }
public String getCharsetName () { return charsetName; }
23,317
public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomEx e) { if (e.code != DomEx.NOT_FOUND_ERR) { throw e; } } }
public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomDOMException e) { if (e.code != DomEx.NOT_FOUND_ERR) { throw e; } } }
23,318
public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomEx e) { if (e.code != DomEx.NOT_FOUND_ERR) { throw e; } } }
public void removeAttribute(String name) { if (attributes == null) { return; } try { attributes.removeNamedItem(name); } catch (DomEx e) { if (e.code != DOMException.NOT_FOUND_ERR) { throw e; } } }
23,319
public void removeAttributeNS(String namespace, String localPart) { if (attributes == null) { throw new DomEx(DomEx.NOT_FOUND_ERR, localPart, null, 0); } attributes.removeNamedItemNS (namespace, localPart); }
public void removeAttributeNS(String namespace, String localPart) { if (attributes == null) { throw new DomDOMException(DOMException.NOT_FOUND_ERR, localPart, null, 0); } attributes.removeNamedItemNS (namespace, localPart); }
23,320
public Attr removeAttributeNode(Attr node) { if (attributes == null) { throw new DomEx(DomEx.NOT_FOUND_ERR, null, node, 0); } return (Attr) attributes.removeNamedItem(node.getNodeName()); }
public Attr removeAttributeNode(Attr node) { if (attributes == null) { throw new DomDOMException(DOMException.NOT_FOUND_ERR, null, node, 0); } return (Attr) attributes.removeNamedItem(node.getNodeName()); }
23,321
public void setAttributeNS(String uri, String aname, String value) { if (("xmlns".equals (aname) || aname.startsWith ("xmlns:")) && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals (uri)) { throw new DomEx(DomEx.NAMESPACE_ERR, "setting xmlns attribute to illegal value", this, ...
public void setAttributeNS(String uri, String aname, String value) { if (("xmlns".equals (aname) || aname.startsWith ("xmlns:")) && !XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals (uri)) { throw new DomDOMException(DOMException.NAMESPACE_ERR, "setting xmlns attribute to illeg...
23,322
public void setIdAttributeNode(Attr attr, boolean isId) { if (readonly) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (attr == null || attr.getOwnerElement() != this) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (isId) { if (userIdAttrs == null) ...
public void setIdAttributeNode(Attr attr, boolean isId) { if (readonly) { throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR); } if (attr == null || attr.getOwnerElement() != this) { throw new DomEx(DomEx.NOT_FOUND_ERR); } if (isId) { if (userIdA...
23,323