bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
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() && (mouseX < bounds.x) && (mouseX > (bounds.x - getCurrentControlIcon(path).getIconWidth() - gap))) cntlClick = true; } return cntlClick; }
|
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() && (mouseX < bounds.x) && (mouseX > (bounds.x - getCurrentControlIcon(path).getIconWidth() - gap))) cntlClick = true; } return cntlClick; }
| 14,633
|
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; }
|
protected boolean isToggleEvent(MouseEvent event) { // FIXME: Not implemented. return true; }
| 14,634
|
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 toggle; }
| 14,635
|
protected void prepareForUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
|
protected void prepareForUIInstall() { // TODO: Implement this properly. }
| 14,636
|
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
|
protected void prepareForUIUninstall() { // TODO: Implement this properly. }
| 14,638
|
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); tree.setAnchorSelectionPath(path); } } else if (isMultiSelectEvent(event)) { // The event extends selection form anchor till the clicked row. TreePath anchor = tree.getAnchorSelectionPath(); if (anchor != null) { int aRow = getRowForPath(tree, anchor); tree.addSelectionInterval(aRow, getRowForPath(tree, path)); } else tree.addSelectionPath(path); } else { // This is an ordinary event that just selects the clicked row. tree.setSelectionPath(path); tree.setAnchorSelectionPath(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); if (isToggleEvent(event)) toggleExpandState(path); } } else if (isMultiSelectEvent(event)) { // The event extends selection form anchor till the clicked row. TreePath anchor = tree.getAnchorSelectionPath(); if (anchor != null) { int aRow = getRowForPath(tree, anchor); tree.addSelectionInterval(aRow, getRowForPath(tree, path)); } else tree.addSelectionPath(path); } else { // This is an ordinary event that just selects the clicked row. tree.setSelectionPath(path); if (isToggleEvent(event)) toggleExpandState(path); } }
| 14,639
|
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); }
| 14,640
|
protected void setShowsRootHandles(boolean newValue) { tree.setShowsRootHandles(newValue); }
|
protected void setShowsRootHandles(boolean newValue) { completeEditing(); updateDepthOffset(); if (treeState != null) { treeState.invalidateSizes(); updateSize(); } }
| 14,642
|
public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); tree = null; uninstallComponents(); completeUIUninstall(); }
|
public void uninstallUI(JComponent c) { prepareForUIUninstall(); uninstallDefaults(); uninstallKeyboardActions(); uninstallListeners(); uninstallComponents(); completeUIUninstall(); }
| 14,643
|
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())); }
| 14,644
|
public Object createValue(UIDefaults def) { return BasicIconFactory.getMenuItemCheckIcon(); }
|
public Object createValue(UIDefaults def) { return BasicIconFactory.getCheckBoxIcon(); }
| 14,647
|
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, Color.WHITE, Color.WHITE, shadowOuter, shadowInner); Border border = new BorderUIResource.CompoundBorderUIResource(outer, inner); return border; }
|
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, Color.WHITE, Color.WHITE, shadowOuter, shadowInner); Border border = new BorderUIResource.CompoundBorderUIResource(outer, inner); return border; }
| 14,648
|
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
|
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
| 14,649
|
public Object createValue(UIDefaults def) { return BasicIconFactory.getRadioButtonIcon(); }
|
public Object createValue(UIDefaults def) { return new IconUIResource(BasicIconFactory.createEmptyFrameIcon()); }
| 14,650
|
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 // Pre-claim ECX L1AHelper.requestRegister(eContext, EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register cntr = L1AHelper.requestRegister(eContext, JvmType.INT, false); final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, cntr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it L1AHelper.releaseRegister(eContext, cntr); L1AHelper.releaseRegister(eContext, classr); L1AHelper.releaseRegister(eContext, tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); } else { // classRef is a class, do the fast test // Pre-claim EAX L1AHelper.requestRegister(eContext, EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); // Is objectref null? os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); // Is instanceof? instanceOfClass(refr, (VmClassType)resolvedType, tmpr, null, okLabel, true); // Not instanceof // Release temp registers here, so invokeJavaMethod can use it L1AHelper.releaseRegister(eContext, EAX); L1AHelper.releaseRegister(eContext, tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); } }
|
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 // Pre-claim ECX L1AHelper.requestRegister(eContext, EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register classr = EAX; final Register cntr = L1AHelper.requestRegister(eContext, JvmType.INT, false); final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); // Resolve the class writeResolveAndLoadClassToReg(classRef, classr); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); /* Is objectref null? */ os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); /* Is instanceof? */ instanceOf(refr, classr, tmpr, cntr, okLabel, true); /* Not instanceof */ // Release temp registers here, so invokeJavaMethod can use it L1AHelper.releaseRegister(eContext, cntr); L1AHelper.releaseRegister(eContext, classr); L1AHelper.releaseRegister(eContext, tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); } else { // classRef is a class, do the fast test // Pre-claim EAX L1AHelper.requestRegister(eContext, EAX); // check that top item is a reference final RefItem ref = vstack.popRef(); // Load the ref ref.load(eContext); final Register refr = ref.getRegister(); final Register tmpr = L1AHelper.requestRegister(eContext, JvmType.INT, false); final Label okLabel = new Label(this.curInstrLabel + "cc-ok"); // Is objectref null? os.writeTEST(refr, refr); os.writeJCC(okLabel, X86Constants.JZ); // Is instanceof? instanceOfClass(refr, (VmClassType)resolvedType, tmpr, null, okLabel, true); // Not instanceof // Release temp registers here, so invokeJavaMethod can use it L1AHelper.releaseRegister(eContext, EAX); L1AHelper.releaseRegister(eContext, tmpr); // Call SoftByteCodes.systemException os.writePUSH(SoftByteCodes.EX_CLASSCAST); os.writePUSH(0); invokeJavaMethod(context.getSystemExceptionMethod()); final RefItem exi = vstack.popRef(); assertCondition(exi.uses(EAX), "item must be in eax"); exi.release(eContext); /* Exception in EAX, throw it */ helper.writeJumpTableCALL(X86JumpTable.VM_ATHROW_OFS); /* Normal exit */ os.setObjectRef(okLabel); // Leave ref on stack vstack.push(ref); } }
| 14,651
|
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() ); } }
| 14,652
|
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) fillMetalPattern2D((Graphics2D) g, x, y, w, h, light, dark); else { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark); for (int mX = x + (xOff); mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY); } // increase x offset xOff++; if (xOff > 3) xOff = 0; } } }
|
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) fillMetalPattern2D((Graphics2D) g, x, y, w, h, light, dark); else { int xOff = 0; for (int mY = y; mY < (y + h); mY++) { // set color alternating with every line if (((mY - y) % 2) == 0) g.setColor(light); else g.setColor(dark); for (int mX = x + xOff; mX < (x + w); mX += 4) { g.drawLine(mX, mY, mX, mY); } // increase x offset xOff++; if (xOff > 3) xOff = 0; } } }
| 14,653
|
public void write_value(Serializable value) { ValueBaseHelper.write(this, value); }
|
public void write_value(Serializable value) { Vio.write(this, value); }
| 14,654
|
public String getCharsetName () { return getMessage (); }
|
public String getCharsetName () { return charsetName; }
| 14,655
|
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; } } }
| 14,656
|
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; } } }
| 14,657
|
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); }
| 14,658
|
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()); }
| 14,659
|
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, 0); } Attr attr = getAttributeNodeNS(uri, aname); if (attr != null) { attr.setNodeValue(value); return; } attr = owner.createAttributeNS(uri, aname); attr.setNodeValue(value); setAttributeNodeNS(attr); }
|
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 illegal value", this, 0); } Attr attr = getAttributeNodeNS(uri, aname); if (attr != null) { attr.setNodeValue(value); return; } attr = owner.createAttributeNS(uri, aname); attr.setNodeValue(value); setAttributeNodeNS(attr); }
| 14,660
|
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) { userIdAttrs = new HashSet(); } userIdAttrs.add(attr); } else if (userIdAttrs != null) { userIdAttrs.remove(attr); if (userIdAttrs.isEmpty()) { 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 (userIdAttrs == null) { userIdAttrs = new HashSet(); } userIdAttrs.add(attr); } else if (userIdAttrs != null) { userIdAttrs.remove(attr); if (userIdAttrs.isEmpty()) { userIdAttrs = null; } } }
| 14,661
|
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) { userIdAttrs = new HashSet(); } userIdAttrs.add(attr); } else if (userIdAttrs != null) { userIdAttrs.remove(attr); if (userIdAttrs.isEmpty()) { userIdAttrs = null; } } }
|
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 DomDOMException(DOMException.NOT_FOUND_ERR); } if (isId) { if (userIdAttrs == null) { userIdAttrs = new HashSet(); } userIdAttrs.add(attr); } else if (userIdAttrs != null) { userIdAttrs.remove(attr); if (userIdAttrs.isEmpty()) { userIdAttrs = null; } } }
| 14,662
|
public DefaultBoundedRangeModel() { setRangeProperties(0, 0, 0, 100, false); } // DefaultBoundedRangeModel()
|
public DefaultBoundedRangeModel() { setRangeProperties(0, 0, 0, 100, false); } // DefaultBoundedRangeModel()
| 14,663
|
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
|
protected void fireStateChanged() { Object[] listeners; // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
| 14,664
|
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
|
protected void fireStateChanged() { // Variables ChangeListener listener; EventListener[] listeners; int index; // Get Listeners listeners = listenerList.getListeners(ChangeListener.class); // Process Listeners for (index = 0; index < listeners.length; index++) { listener = (ChangeListener) listeners[index]; listener.stateChanged(changeEvent); } // for } // fireStateChanged()
| 14,665
|
public EventListener[] getListeners(Class c) { return listenerList.getListeners(c); } // getListeners()
|
public EventListener[] getListeners(Class c) { return listenerList.getListeners(c); } // getListeners()
| 14,666
|
public void setExtent(int extent) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent()
|
public void setExtent(int extent) { extent = Math.max(extent, 0); if (value + extent > maximum) extent = maximum - value; // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent()
| 14,667
|
public void setExtent(int extent) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent()
|
public void setExtent(int extent) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid extent property set"); } // if // Set Extent this.extent = extent; // Notification fireStateChanged(); } // setExtent()
| 14,668
|
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaximum()
|
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaximum()
| 14,669
|
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaximum()
|
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum minimum = Math.min(this.minimum, maximum); extent = Math.min(this.extent, maximum - minimum); value = Math.min(this.value, maximum - extent); // Notification fireStateChanged(); } // setMaximum()
| 14,670
|
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaximum()
|
public void setMaximum(int maximum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid maximum property set"); } // if // Set Maximum this.maximum = maximum; // Notification fireStateChanged(); } // setMaximum()
| 14,671
|
public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); } // setMinimum()
|
public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); } // setMinimum()
| 14,672
|
public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); } // setMinimum()
|
public void setMinimum(int minimum) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid minimum property set"); maximum = Math.max(minimum, this.maximum); value = Math.max(minimum, this.value); setRangeProperties(value, extent, minimum, maximum, isAdjusting); } // if // Set Minimum this.minimum = minimum; // Notification fireStateChanged(); maximum = Math.max(minimum, this.maximum); value = Math.max(minimum, this.value); setRangeProperties(value, extent, minimum, maximum, isAdjusting); } // setMinimum()
| 14,673
|
public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = value; this.extent = extent; this.minimum = minimum; this.maximum = maximum; this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setRangeProperties()
|
public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = value; this.extent = extent; this.minimum = minimum; this.maximum = maximum; this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setRangeProperties()
| 14,674
|
public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = value; this.extent = extent; this.minimum = minimum; this.maximum = maximum; this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setRangeProperties()
|
public void setRangeProperties(int value, int extent, int minimum, int maximum, boolean isAdjusting) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid property set"); } // if // Set Data this.value = value; this.extent = extent; this.minimum = minimum; this.maximum = maximum; this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setRangeProperties()
| 14,675
|
public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue()
|
public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue()
| 14,676
|
public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue()
|
public void setValue(int value) { // Validate Constraints if (minimum > value || value > (value + extent) || (value + extent) > maximum) { throw new IllegalArgumentException("Invalid value property set"); } // if // Set Value this.value = value; // Notification fireStateChanged(); } // setValue()
| 14,677
|
public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting()
|
public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting()
| 14,678
|
public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting()
|
public void setValueIsAdjusting(boolean isAdjusting) { // Set isAdjusting this.isAdjusting = isAdjusting; // Notification fireStateChanged(); } // setValueIsAdjusting()
| 14,679
|
public String toString() { return null; // TODO } // toString()
|
public String toString() { return null; // TODO } // toString()
| 14,680
|
public Process exec(String[] cmdarray, String[] envp) throws IOException { String command = cmdarray[0]; SecurityManager s = System.getSecurityManager(); if (s != null) s.checkExec(command); if (envp == null) { envp = new String[0]; } String mainClassName = cmdarray[0]; String[] cmdArgs = new String[cmdarray.length - 1]; System.arraycopy(cmdarray, 1, cmdArgs, 0, cmdArgs.length); try { final Process p = VmProcess.createProcess(mainClassName, cmdArgs, envp); if (p == null) { throw new IOException("Exec error"); } else { return p; } } catch (Exception ex) { throw new IOException("Exec error", ex); } }
|
public Process exec(String[] cmdarray, String[] envp) throws IOException { String command = cmdarray[0]; SecurityManager s = System.getSecurityManager(); if (s != null) s.checkExec(command); if (envp == null) { envp = new String[0]; } String mainClassName = cmdarray[0]; String[] cmdArgs = new String[cmdarray.length - 1]; System.arraycopy(cmdarray, 1, cmdArgs, 0, cmdArgs.length); try { final Process p = VmProcess.createProcess(mainClassName, cmdArgs, envp); if (p == null) { throw new IOException("Exec error"); } else { return p; } } catch (Exception ex) { final IOException ioe = new IOException("Exec error"); ioe.initCause(ex); throw ioe; } }
| 14,681
|
static void write(OutputStream ostream, short value) { ostream.write_short(value); }
|
public static void write(OutputStream ostream, short value) { ostream.write_short(value); }
| 14,682
|
private void defineLabel(String label, X86Assembler asm) { try { Label lab = new Label(label); labels.put(label, lab); NativeStream.ObjectRef ref = asm.setObjectRef(lab); assembler.putConstant(label, ref.getOffset()); } catch (Exception e) { e.printStackTrace(); } }
|
private void defineLabel(String label, X86Assembler asm) { try { Label lab = new Label(label); labels.put(label, lab); NativeStream.ObjectRef ref = asm.setObjectRef(lab); assembler.putConstant(label, ref.getOffset() + (int)asm.getBaseAddr()); } catch (Exception e) { e.printStackTrace(); } }
| 14,683
|
public DefaultTextField(Border border) { this.border = border; }
|
public DefaultTextField(Border aBorder) { this.border = border; }
| 14,684
|
public DefaultTextField(Border border) { this.border = border; }
|
public DefaultTextField(Border border) { border = aBorder; }
| 14,685
|
public void doLayout() { if (DefaultTreeCellEditor.this.tree.isEditing()) setLocation(offset, 0); super.doLayout(); }
|
public void doLayout() { if (DefaultTreeCellEditor.this.tree.isEditing()) setLocation(offset, 0); super.doLayout(); }
| 14,686
|
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; // paints icon if (editingIcon != null) { editingIcon.paintIcon(this, g, tr.x - editingIcon. getIconWidth()/2, tr.y + i.top + i.bottom); tr.x += editingIcon.getIconWidth()/2 + textIconGap; } tr.width += offset; // paint background g.translate(tr.x, tr.y); editingComponent.setSize(new Dimension(tr.width, tr.height)); editingComponent.paint(g); g.translate(-tr.x, -tr.y); } super.paint(g); }
|
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; // paints icon if (editingIcon != null) { editingIcon.paintIcon(this, g, tr.x - editingIcon. getIconWidth()/2, tr.y + i.top + i.bottom); tr.x += editingIcon.getIconWidth()/2 + textIconGap; } tr.width += offset; // paint background g.translate(tr.x, tr.y); editingComponent.setSize(new Dimension(tr.width, tr.height)); editingComponent.paint(g); g.translate(-tr.x, -tr.y); } super.paint(g); }
| 14,687
|
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; // paints icon if (editingIcon != null) { editingIcon.paintIcon(this, g, tr.x - editingIcon. getIconWidth()/2, tr.y + i.top + i.bottom); tr.x += editingIcon.getIconWidth()/2 + textIconGap; } tr.width += offset; // paint background g.translate(tr.x, tr.y); editingComponent.setSize(new Dimension(tr.width, tr.height)); editingComponent.paint(g); g.translate(-tr.x, -tr.y); } super.paint(g); }
|
public void paint(Graphics g) { Rectangle tr = tree.getPathBounds(lastPath); if (tr != null) { Insets i = ((DefaultTextField) editingComponent).getBorder() .getBorderInsets(this); int textIconGap = 3; tr.x -= i.left; // paints icon if (editingIcon != null) { editingIcon.paintIcon(this, g, tr.x - editingIcon. getIconWidth()/2, tr.y + i.top + i.bottom); tr.x += editingIcon.getIconWidth()/2 + textIconGap; } tr.width += offset; // paint background g.translate(tr.x, tr.y); editingComponent.setSize(new Dimension(tr.width, tr.height)); editingComponent.paint(g); g.translate(-tr.x, -tr.y); } super.paint(g); }
| 14,688
|
public void actionPerformed(ActionEvent e) { if (lastPath != null && tPath != null && tPath.equals(lastPath)) { tree.startEditingAtPath(lastPath); timer.stop(); } }
|
public void actionPerformed(ActionEvent e) { if (lastPath != null && tPath != null && tPath.equals(lastPath)) { tree.startEditingAtPath(lastPath); timer.stop(); } }
| 14,689
|
public void cancelCellEditing() { if (editingComponent != null) { timer.stop(); realEditor.cancelCellEditing(); } }
|
public void cancelCellEditing() { if (editingComponent != null) { timer.stop(); realEditor.cancelCellEditing(); } }
| 14,690
|
protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; }
|
protected TreeCellEditor createTreeCellEditor() { DefaultCellEditor editor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; }
| 14,692
|
protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); return realEditor; }
|
protected TreeCellEditor createTreeCellEditor() { realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( UIManager.getBorder("Tree.selectionBorder"))); editor.addCellEditorListener(new RealEditorListener()); editor.setClickCountToStart(CLICK_COUNT_TO_START); realEditor = editor; return editor; }
| 14,693
|
public Object getCellEditorValue() { return editingComponent; }
|
public Object getCellEditorValue() { return realEditor.getCellEditorValue(); }
| 14,694
|
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) createTreeCellEditor(); return realEditor.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row); }
|
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) { if (realEditor == null) realEditor = createTreeCellEditor(); return realEditor.getTreeCellEditorComponent(tree, value, isSelected, expanded, leaf, row); }
| 14,695
|
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently editable, but may need to start timer. if (shouldStartEditingTimer(event)) startEditingTimer(); else if (timer.isRunning()) timer.stop(); return false; }
|
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (editingComponent != null && realEditor.isCellEditable(event)) { prepareForEditing(); return true; } // Cell may not be currently editable, but may need to start timer. if (shouldStartEditingTimer(event)) startEditingTimer(); else if (timer.isRunning()) timer.stop(); return false; }
| 14,696
|
protected void startEditingTimer() { if (timer == null) timer = new javax.swing.Timer(1200, this); if (!timer.isRunning()) timer.start(); }
|
protected void startEditingTimer() { if (timer == null) timer = new javax.swing.Timer(1200, this); if (!timer.isRunning()) timer.start(); }
| 14,698
|
public boolean stopCellEditing() { if (editingComponent != null && realEditor.stopCellEditing()) { timer.stop(); return true; } return false; }
|
public boolean stopCellEditing() { if (editingComponent != null) { timer.stop(); return true; } return false; }
| 14,699
|
public boolean stopCellEditing() { if (editingComponent != null && realEditor.stopCellEditing()) { timer.stop(); return true; } return false; }
|
public boolean stopCellEditing() { if (editingComponent != null && realEditor.stopCellEditing()) { stopEditingTimer(); tree.stopEditing(); editingComponent = null; return true; } return false; }
| 14,700
|
public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); configureEditingComponent(tree, renderer, realEditor); }
|
public void valueChanged(TreeSelectionEvent e) { tPath = lastPath; lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); stopCellEditing(); }
| 14,701
|
protected String paramString() { return "JCheckBox"; }
|
protected String paramString() { return super.paramString() + ",borderPaintedFlat=" + borderPaintedFlat; }
| 14,702
|
public int getNumGlyphs() { return peer.getMissingGlyphCode(this); }
|
public int getNumGlyphs() { return peer.getNumGlyphs(this); }
| 14,703
|
Obj(org.omg.CORBA.Object _object, byte[] _key, Servant _servant, gnuPOA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; }
|
Obj(gnuServantObject _object, byte[] _key, Servant _servant, gnuPOA _poa) { object = _object; key = _key; servant = _servant; poa = _poa; }
| 14,704
|
private final void resolve8(int addr, int offset) { final int distance = offset - get8(addr); if (!X86Utils.isByte(distance)) { throw new IllegalArgumentException("Jump out of byte-range (" + distance + ")"); } if (isRelJump() && (distance == 0)) { if (get8(addr - 1) == 0xe9) // JMP { set8(addr - 1, 0x90); // NOP set8(addr, 0x90); // 1 NOP (overrides jmp offset) } else if (get8(addr - 2) == 0x0f) // Jcc { set8(addr - 2, 0x90); set8(addr - 1, 0x90); set8(addr, 0x90); // 1 NOP } else { set8(addr, distance); } } else { set8(addr, distance); } }
|
private final void resolve8(int addr, int offset) { final int distance = offset - addr - 1; if (!X86Utils.isByte(distance)) { throw new IllegalArgumentException("Jump out of byte-range (" + distance + ")"); } if (isRelJump() && (distance == 0)) { if (get8(addr - 1) == 0xe9) // JMP { set8(addr - 1, 0x90); // NOP set8(addr, 0x90); // 1 NOP (overrides jmp offset) } else if (get8(addr - 2) == 0x0f) // Jcc { set8(addr - 2, 0x90); set8(addr - 1, 0x90); set8(addr, 0x90); // 1 NOP } else { set8(addr, distance); } } else { set8(addr, distance); } }
| 14,705
|
protected void createDefaultTheme() { setCurrentTheme(new OceanTheme()); }
|
protected void createDefaultTheme() { setCurrentTheme(new DefaultMetalTheme()); }
| 14,706
|
public String getUIClassID() { // Returns a string that specifies the name of the l&f class that renders this component. return "JTextComponent"; }
|
public String getUIClassID() { // Returns a string that specifies the name of the l&f class that renders this component. return "TextComponentUI"; }
| 14,707
|
public List<VmInterpretedExceptionHandler> getExceptionHandlers() { if (eTable == null) { return Collections.EMPTY_LIST; } else { return Arrays.asList(eTable); } }
|
public List<VmInterpretedExceptionHandler> getExceptionHandlers() { if (eTable == null) { return Collections.emptyList(); } else { return Arrays.asList(eTable); } }
| 14,708
|
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { if (context == null) context = new ColorPaintContext(value); return context; }
|
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) { if (context == null) context = new ColorPaintContext(value); return context; }
| 14,709
|
public int getAlpha() { // Do not inline getRGB() to value, because of SystemColor. return (getRGB() & ALPHA_MASK) >> 24; }
|
public int getAlpha() { // Do not inline getRGB() to value, because of SystemColor. return (getRGB() & ALPHA_MASK) >>> 24; }
| 14,710
|
public String toString() { return getClass().getName() + "(top=" + top + ",bottom=" + bottom + ",left=" + left + ",right=" + right + ')'; }
|
public String toString() { return getClass().getName() + "(top=" + top + ",bottom=" + bottom + ",left=" + left + ",right=" + right + ')'; }
| 14,711
|
public void setContentHandler (ContentHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setContentHandler (handler); }
|
public void setContentHandler (ContentHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setContentHandler (handler); }
| 14,712
|
public void setDTDHandler (DTDHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setDTDHandler (handler); }
|
public void setDTDHandler (DTDHandler handler) { if (active) throw new IllegalStateException ("already parsing"); filter.setDTDHandler (handler); }
| 14,713
|
public void setErrorHandler (ErrorHandler handler) { if (active) throw new IllegalStateException ("already parsing"); aelfred2.setErrorHandler (handler); }
|
public void setErrorHandler (ErrorHandler handler) { if (active) throw new IllegalStateException ("already parsing"); aelfred2.setErrorHandler (handler); }
| 14,714
|
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
|
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) { throw new SAXNotSupportedException("already parsing"); } if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
| 14,715
|
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
|
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) { forceValidating(); } isValidating = state; } else aelfred2.setFeature (featureId, state); }
| 14,716
|
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
|
public void setFeature (String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException { boolean value = getFeature (featureId); if (state == value) return; if ((SAXDriver.FEATURE + "validation").equals (featureId)) { if (active) throw new SAXNotSupportedException ("already parsing"); if (state) forceValidating (); isValidating = state; } else aelfred2.setFeature (featureId, state); }
| 14,717
|
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; boolean read = ((mode & FileChannelImpl.READ) == FileChannelImpl.READ); boolean write = ((mode & FileChannelImpl.WRITE) == FileChannelImpl.WRITE); boolean append = ((mode & FileChannelImpl.APPEND) == FileChannelImpl.APPEND); if(read) { value = READ; } else if(write && !append) { value = WRITE; } else if(write && append) { value = READ_WRITE; } else { //TODO: valueOf for EXCL, SYNC, DSYNC and combination of the 6 values //FileChannelImpl.EXCL: //FileChannelImpl.SYNC: //FileChannelImpl.DSYNC: throw new IllegalArgumentException("unknown open mode: "+mode); } return value; }
|
public static VMOpenMode valueOf(int mode) { // These are mode values for open(). VMOpenMode value = null; boolean read = ((mode & FileChannelImpl.READ) == FileChannelImpl.READ); boolean write = ((mode & FileChannelImpl.WRITE) == FileChannelImpl.WRITE); boolean append = ((mode & FileChannelImpl.APPEND) == FileChannelImpl.APPEND); if(read && !write) { value = READ; } else if(write && !append) { value = WRITE; } else if(write && append) { value = READ_WRITE; } else { //TODO: valueOf for EXCL, SYNC, DSYNC and combination of the 6 values //FileChannelImpl.EXCL: //FileChannelImpl.SYNC: //FileChannelImpl.DSYNC: throw new IllegalArgumentException("unknown open mode: "+mode); } return value; }
| 14,719
|
public String toString() { return "" + m; }
|
public String toString() { if (this == READ_ONLY) return "READ_ONLY"; else if (this == READ_WRITE) return "READ_WRITE"; return "PRIVATE"; }
| 14,722
|
protected void addImpl(Component c, Object constraints, int index) { // TODO } // addImpl()
|
protected void addImpl(Component c, Object constraints, int index) { if (!isAncestorOf(c)) { super.addImpl(c, constraints, index); } // TODO } // addImpl()
| 14,735
|
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { // TODO } // paintComponent()
|
public void paintComponent(Graphics graphics, Component c, Container p, int x, int y, int w, int h, boolean shouldValidate) { addImpl(c, null, 0); graphics.translate(x, y); c.setBounds(0, 0, w, h); if (shouldValidate) { c.validate(); } c.paint(graphics); graphics.translate(-x, -y); // TODO } // paintComponent()
| 14,736
|
public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); };
|
public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }
| 14,737
|
public DynAny create_dyn_any(org.omg.CORBA.Any a) { throw new NO_IMPLEMENT(); };
|
public DynAny create_dyn_any(org.omg.CORBA.Any a) { throw new NO_IMPLEMENT(); }
| 14,738
|
public DynArray create_dyn_array(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); };
|
public DynArray create_dyn_array(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }
| 14,739
|
public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); };
|
public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }
| 14,740
|
public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); };
|
public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }
| 14,741
|
public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); };
|
public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }
| 14,742
|
public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); };
|
public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t) throws InconsistentTypeCode { throw new NO_IMPLEMENT(); }
| 14,743
|
public abstract void setTransform(AffineTransform Tx);
|
public abstract void setTransform(AffineTransform transform);
| 14,744
|
public abstract void transform(AffineTransform Tx);
|
public abstract void transform(AffineTransform transform);
| 14,745
|
public Object getParameter(String name) throws DOMException { if ("discard-default-content".equals(name)) { return discardDefaultContent ? "true" : "false"; } else if ("xml-declaration".equals(name)) { return xmlDeclaration ? "true" : "false"; } else { throw new DomEx(DomEx.NOT_SUPPORTED_ERR); } }
|
public Object getParameter(String name) throws DOMException { if ("discard-default-content".equals(name)) { return discardDefaultContent ? "true" : "false"; } else if ("xml-declaration".equals(name)) { return xmlDeclaration ? "true" : "false"; } else { throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); } }
| 14,746
|
public void setParameter(String name, Object value) throws DOMException { if ("discard-default-content".equals(name)) { discardDefaultContent = "true".equals(value.toString()); } else if ("xml-declaration".equals(name)) { xmlDeclaration = "false".equals(value.toString()); } else { throw new DomEx(DomEx.NOT_SUPPORTED_ERR); } }
|
public void setParameter(String name, Object value) throws DOMException { if ("discard-default-content".equals(name)) { discardDefaultContent = "true".equals(value.toString()); } else if ("xml-declaration".equals(name)) { xmlDeclaration = "false".equals(value.toString()); } else { throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); } }
| 14,747
|
public boolean write(Node node, LSOutput output) throws LSException { OutputStream out = output.getByteStream(); try { if (out == null) { String systemId = output.getSystemId(); try { URL url = new URL(systemId); URLConnection connection = url.openConnection(); connection.setDoOutput(true); if (connection instanceof HttpURLConnection) { ((HttpURLConnection) connection).setRequestMethod("PUT"); } out = connection.getOutputStream(); } catch (MalformedURLException e) { File file = new File(systemId); out = new FileOutputStream(file); } } serialize(node, out); out.flush(); return true; } catch (IOException e) { throw new DomLSEx(LSException.SERIALIZE_ERR, e); } }
|
public boolean write(Node node, LSOutput output) throws LSException { OutputStream out = output.getByteStream(); try { if (out == null) { String systemId = output.getSystemId(); try { URL url = new URL(systemId); URLConnection connection = url.openConnection(); connection.setDoOutput(true); if (connection instanceof HttpURLConnection) { ((HttpURLConnection) connection).setRequestMethod("PUT"); } out = connection.getOutputStream(); } catch (MalformedURLException e) { File file = new File(systemId); out = new FileOutputStream(file); } } serialize(node, out); out.flush(); return true; } catch (IOException e) { throw new DomLSException(LSException.SERIALIZE_ERR, e); } }
| 14,748
|
protected void paintComponent(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(Color.WHITE); for (int i = 0; i < SCREEN_HEIGHT; i++) { int offset = i * SCREEN_WIDTH; int lenght = SCREEN_WIDTH; if (offset <= cursorOffset && cursorOffset < offset + SCREEN_WIDTH) { char[] line = new char[SCREEN_WIDTH]; for (int j = 0; j < SCREEN_WIDTH; j++) { line[j] = offset + j == cursorOffset ? '_' : ' '; } g.drawChars(line, 0, lenght, margin, h + i * h); } g.drawChars(buffer, offset, lenght, margin, h + i * h); } }
|
protected void paintComponent(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); g.setColor(Color.WHITE); for (int i = 0; i < SCREEN_HEIGHT; i++) { int offset = i * SCREEN_WIDTH; int lenght = SCREEN_WIDTH; if (offset <= cursorOffset && cursorOffset < offset + SCREEN_WIDTH) { char[] line = new char[SCREEN_WIDTH]; for (int j = 0; j < SCREEN_WIDTH; j++) { line[j] = offset + j == cursorOffset ? '_' : ' '; } g.drawChars(line, 0, lenght, margin, h + i * h); } g.drawChars(buffer, offset, lenght, margin, h + i * h); } }
| 14,749
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; } // Fall through default: // Only process namespace attributes return false; } if (any) { return true; } if (anyLocalName) { return true; } String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); }
|
public boolean matches(Node node, int pos, int len) switch (node.getNodeType()) case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) break; } // Fall through default: // Only process namespace attributes return false; } if (any) return true; } if (anyLocalName) return true; } String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); }
| 14,750
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; } // Fall through default: // Only process namespace attributes return false; } if (any) { return true; } if (anyLocalName) { return true; } String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); }
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; // Fall through default: // Only process namespace attributes return false; if (any) { return true; if (anyLocalName) { return true; String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); return (localName.equals(nodeLocalName));
| 14,751
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; } // Fall through default: // Only process namespace attributes return false; } if (any) { return true; } if (anyLocalName) { return true; } String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); }
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; String uri = qName.getNamespaceURI(); String nodeUri = node.getNamespaceURI(); if (!NameTest.equal(uri, nodeUri)) return false; // Fall through default: // Only process namespace attributes return false; String uri = qName.getNamespaceURI(); String nodeUri = node.getNamespaceURI(); if (!NameTest.equal(uri, nodeUri)) return false; if (any) { return true; String uri = qName.getNamespaceURI(); String nodeUri = node.getNamespaceURI(); if (!NameTest.equal(uri, nodeUri)) return false; if (anyLocalName) { return true; String uri = qName.getNamespaceURI(); String nodeUri = node.getNamespaceURI(); if (!NameTest.equal(uri, nodeUri)) return false; String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); String uri = qName.getNamespaceURI(); String nodeUri = node.getNamespaceURI(); if (!NameTest.equal(uri, nodeUri)) return false; return (localName.equals(nodeLocalName)); String uri = qName.getNamespaceURI(); String nodeUri = node.getNamespaceURI(); if (!NameTest.equal(uri, nodeUri)) return false;
| 14,752
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; } // Fall through default: // Only process namespace attributes return false; } if (any) { return true; } if (anyLocalName) { return true; } String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); }
|
public boolean matches(Node node, int pos, int len) { switch (node.getNodeType()) { case Node.ATTRIBUTE_NODE: // Only match namespace attributes String uri = node.getNamespaceURI(); if (XMLConstants.XMLNS_ATTRIBUTE_NS_URI.equals(uri) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getPrefix()) || XMLConstants.XMLNS_ATTRIBUTE.equals(node.getNodeName())) { break; } // Fall through default: // Only process namespace attributes return false; } if (any) { return true; } if (anyLocalName) { return true; } String localName = qName.getLocalPart(); String nodeLocalName = node.getLocalName(); if (nodeLocalName == null) { nodeLocalName = node.getNodeName(); } return (localName.equals(nodeLocalName)); }
| 14,753
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.