bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
protected String paramString() { if (layoutMgr != null) return super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); }
protected String paramString() { if (layoutMgr == null) return super.paramString(); StringBuffer sb = new StringBuffer(); sb.append(super.paramString()); sb.append(",layout="); sb.append(layoutMgr.getClass().getName()); return sb.toString(); }
11,601
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizontalScrollBar().getModel().addChangeListener(hsbChangeListener); if (vsbChangeListener == null) vsbChangeListener = createVSBChangeListener(); sp.getVerticalScrollBar().getModel().addChangeListener(vsbChangeListener); if (viewportChangeListener == null) viewportChangeListener = createViewportChangeListener(); sp.getViewport().addChangeListener(viewportChangeListener); if (mouseWheelListener == null) mouseWheelListener = new MouseWheelHandler(); sp.addMouseWheelListener(mouseWheelListener); }
protected void installListeners(JScrollPane sp) { if (spPropertyChangeListener == null) spPropertyChangeListener = createPropertyChangeListener(); sp.addPropertyChangeListener(spPropertyChangeListener); if (hsbChangeListener == null) hsbChangeListener = createHSBChangeListener(); sp.getHorizontalScrollBar().getModel().addChangeListener(hsbChangeListener); if (vsbChangeListener == null) vsbChangeListener = createVSBChangeListener(); sp.getVerticalScrollBar().getModel().addChangeListener(vsbChangeListener); if (viewportChangeListener == null) viewportChangeListener = createViewportChangeListener(); sp.getViewport().addChangeListener(viewportChangeListener); if (mouseWheelListener == null) mouseWheelListener = createMouseWheelListener(); sp.addMouseWheelListener(mouseWheelListener); }
11,602
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; } if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); } } if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } } }
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) continue; } if (as.uas != null) StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); } } if (as.children != null) as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } } }
11,603
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; } if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); } } if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } } }
void addAttributeSet(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling, String attributeSet) throws TransformerException { for (Iterator i = stylesheet.attributeSets.iterator(); i.hasNext(); ) { AttributeSet as = (AttributeSet) i.next(); if (!as.name.equals(attributeSet)) { continue; if (as.uas != null) { StringTokenizer st = new StringTokenizer(as.uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, parent, nextSibling, st.nextToken()); if (as.children != null) { as.children.apply(stylesheet, mode, context, pos, len, parent, nextSibling);
11,604
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new CopyNode(uas); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
11,605
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new CopyNode(uas); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret;
11,606
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.COMMENT_NODE: Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); copy = context.cloneNode(false); copy = doc.adoptNode(copy); if (copy.getNodeType() == Node.ATTRIBUTE_NODE) { if (parent.getFirstChild() != null) { // Ignore attempt to add attribute after children } else { NamedNodeMap attrs = parent.getAttributes(); if (attrs != null) { attrs.setNamedItemNS(copy); } } } else { if (nextSibling != null) { parent.insertBefore(copy, nextSibling); } else { parent.appendChild(copy); } } } if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, copy, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, copy, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Node copy = parent; switch (context.getNodeType()) case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.COMMENT_NODE: Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); copy = context.cloneNode(false); copy = doc.adoptNode(copy); if (copy.getNodeType() == Node.ATTRIBUTE_NODE) if (parent.getFirstChild() != null) // Ignore attempt to add attribute after children } else NamedNodeMap attrs = parent.getAttributes(); if (attrs != null) attrs.setNamedItemNS(copy); } } } else if (nextSibling != null) parent.insertBefore(copy, nextSibling); } else parent.appendChild(copy); } } } if (uas != null) StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) addAttributeSet(stylesheet, mode, context, pos, len, copy, null, st.nextToken()); } } if (children != null) children.apply(stylesheet, mode, context, pos, len, copy, null); } if (next != null) next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
11,607
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.COMMENT_NODE: Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); copy = context.cloneNode(false); copy = doc.adoptNode(copy); if (copy.getNodeType() == Node.ATTRIBUTE_NODE) { if (parent.getFirstChild() != null) { // Ignore attempt to add attribute after children } else { NamedNodeMap attrs = parent.getAttributes(); if (attrs != null) { attrs.setNamedItemNS(copy); } } } else { if (nextSibling != null) { parent.insertBefore(copy, nextSibling); } else { parent.appendChild(copy); } } } if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, copy, null, st.nextToken()); } } if (children != null) { children.apply(stylesheet, mode, context, pos, len, copy, null); } if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling); } }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Node copy = parent; switch (context.getNodeType()) { case Node.TEXT_NODE: case Node.ATTRIBUTE_NODE: case Node.ELEMENT_NODE: case Node.PROCESSING_INSTRUCTION_NODE: case Node.COMMENT_NODE: Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); copy = context.cloneNode(false); copy = doc.adoptNode(copy); if (copy.getNodeType() == Node.ATTRIBUTE_NODE) { if (parent.getFirstChild() != null) { // Ignore attempt to add attribute after children else { NamedNodeMap attrs = parent.getAttributes(); if (attrs != null) { attrs.setNamedItemNS(copy); else { if (nextSibling != null) { parent.insertBefore(copy, nextSibling); else { parent.appendChild(copy); if (uas != null) { StringTokenizer st = new StringTokenizer(uas, " "); while (st.hasMoreTokens()) { addAttributeSet(stylesheet, mode, context, pos, len, copy, null, st.nextToken()); if (children != null) { children.apply(stylesheet, mode, context, pos, len, copy, null); if (next != null) { next.apply(stylesheet, mode, context, pos, len, parent, nextSibling);
11,608
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("copy"); if (uas != null) { buf.append('['); buf.append(']'); return buf.toString(); }
11,609
private final void compileClasses(NativeStream os, VmArchitecture arch) throws ClassNotFoundException { final NativeCodeCompiler[] compilers = arch.getCompilers(); final int optLevel = compilers.length - 1; // Use the most optimizing compiler here final NativeCodeCompiler compiler = compilers[optLevel]; int oldCount; int newCount; boolean again; do { again = false; oldCount = clsMgr.getLoadedClassCount(); for (VmType< ? > vmClass : clsMgr.getLoadedClasses()) { vmClass.link(); final boolean compHigh = isCompileHighOptLevel(vmClass); try { if (!vmClass.isCpRefsResolved() && compHigh) { // log("Resolving CP of " + vmClass.getName(), // Project.MSG_VERBOSE); vmClass.resolveCpRefs(clsMgr); again = true; } final int mcnt; final int startLength = os.getLength(); if (compHigh) { log("Full Compile " + vmClass.getName(), Project.MSG_VERBOSE); mcnt = vmClass.compileBootstrap(compiler, os, optLevel); totalHighMethods += mcnt; totalHighMethodSize += (os.getLength() - startLength); } else { log("Min. Compile " + vmClass.getName(), Project.MSG_VERBOSE); mcnt = vmClass.compileBootstrap(compilers[0], os, 0); totalLowMethods += mcnt; totalLowMethodSize += (os.getLength() - startLength); } again |= (mcnt > 0); } catch (Throwable ex) { throw new BuildException("Compile of " + vmClass.getName() + " failed", ex); } if (!vmClass.isCompiled()) { throw new BuildException( "Class should have been compiled by now"); } } newCount = clsMgr.getLoadedClassCount(); if (false) { log("oldCount " + oldCount + ", newCount " + newCount, Project.MSG_INFO); } } while ((oldCount != newCount) || again); log("End of compileClasses", Project.MSG_VERBOSE); }
private final void compileClasses(NativeStream os, VmArchitecture arch) throws ClassNotFoundException { final NativeCodeCompiler[] compilers = arch.getCompilers(); final int optLevel = compilers.length - 1; // Use the most optimizing compiler here final NativeCodeCompiler compiler = compilers[optLevel]; int oldCount; int newCount; boolean again; do { again = false; oldCount = clsMgr.getLoadedClassCount(); for (VmType< ? > vmClass : clsMgr.getLoadedClasses()) { vmClass.link(); final boolean compHigh = isCompileHighOptLevel(vmClass); try { if (!vmClass.isCpRefsResolved() && compHigh) { // log("Resolving CP of " + vmClass.getName(), // Project.MSG_VERBOSE); vmClass.resolveCpRefs(); again = true; } final int mcnt; final int startLength = os.getLength(); if (compHigh) { log("Full Compile " + vmClass.getName(), Project.MSG_VERBOSE); mcnt = vmClass.compileBootstrap(compiler, os, optLevel); totalHighMethods += mcnt; totalHighMethodSize += (os.getLength() - startLength); } else { log("Min. Compile " + vmClass.getName(), Project.MSG_VERBOSE); mcnt = vmClass.compileBootstrap(compilers[0], os, 0); totalLowMethods += mcnt; totalLowMethodSize += (os.getLength() - startLength); } again |= (mcnt > 0); } catch (Throwable ex) { throw new BuildException("Compile of " + vmClass.getName() + " failed", ex); } if (!vmClass.isCompiled()) { throw new BuildException( "Class should have been compiled by now"); } } newCount = clsMgr.getLoadedClassCount(); if (false) { log("oldCount " + oldCount + ", newCount " + newCount, Project.MSG_INFO); } } while ((oldCount != newCount) || again); log("End of compileClasses", Project.MSG_VERBOSE); }
11,611
public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; }
public void setLexicalHandler(LexicalHandler lexHandler) { this.lexhandler = lexHandler; }
11,612
public void setSystemId(String systemID) { this.systemId = systemID; }
public void setSystemId(String systemID) { this.systemId = systemID; }
11,613
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(); return (localName.equals(node.getLocalName())); }
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)); }
11,614
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
public CertPathValidatorException() { super(msg); index = -1; certPath = null; }
11,615
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
public CertPathValidatorException(String msg) { super(msg); index = -1; certPath = null; }
11,616
private void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.validate(); parent.repaint(); parent = currentTip.getParent(); if (parent == null) return; parent.remove(currentTip); containerPanel = null; } if (tooltipWindow != null) { tooltipWindow.hide(); tooltipWindow.dispose(); tooltipWindow = null; } }
void hideTip() { if (currentTip == null || ! currentTip.isVisible() || ! enabled) return; currentTip.setVisible(false); if (containerPanel != null) { Container parent = containerPanel.getParent(); if (parent == null) return; parent.remove(containerPanel); parent.invalidate(); parent.validate(); parent.repaint(); parent = currentTip.getParent(); if (parent == null) return; parent.remove(currentTip); containerPanel = null; } if (tooltipWindow != null) { tooltipWindow.hide(); tooltipWindow.dispose(); tooltipWindow = null; } }
11,618
private void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension dims = currentTip.getPreferredSize(); if (canToolTipFit(currentTip)) { JLayeredPane pane = ((JRootPane) SwingUtilities.getAncestorOfClass(JRootPane.class, currentComponent)) .getLayeredPane(); // This should never happen, but just in case. if (pane == null) return; if (containerPanel != null) hideTip(); if (isLightWeightPopupEnabled()) { containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); } else { containerPanel = new JPanel(); containerPanel.add(currentTip); } LayoutManager lm = containerPanel.getLayout(); if (lm instanceof FlowLayout) { FlowLayout fm = (FlowLayout) lm; fm.setVgap(0); fm.setHgap(0); } p = getGoodPoint(p, pane, currentTip, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); pane.revalidate(); pane.repaint(); } else { SwingUtilities.convertPointToScreen(p, currentComponent); tooltipWindow = new JWindow(); tooltipWindow.getContentPane().add(currentTip); tooltipWindow.setFocusable(false); tooltipWindow.pack(); tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); tooltipWindow.show(); } currentTip.setVisible(true); }
void showTip() { if (! enabled || currentComponent == null) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Point p = currentPoint; Dimension dims = currentTip.getPreferredSize(); if (canToolTipFit(currentTip)) { JLayeredPane pane = ((JRootPane) SwingUtilities.getAncestorOfClass(JRootPane.class, currentComponent)) .getLayeredPane(); // This should never happen, but just in case. if (pane == null) return; if (containerPanel != null) hideTip(); if (isLightWeightPopupEnabled()) { containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); } else { containerPanel = new JPanel(); containerPanel.add(currentTip); } LayoutManager lm = containerPanel.getLayout(); if (lm instanceof FlowLayout) { FlowLayout fm = (FlowLayout) lm; fm.setVgap(0); fm.setHgap(0); } p = getGoodPoint(p, pane, currentTip, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); pane.revalidate(); pane.repaint(); } else { SwingUtilities.convertPointToScreen(p, currentComponent); tooltipWindow = new JWindow(); tooltipWindow.getContentPane().add(currentTip); tooltipWindow.setFocusable(false); tooltipWindow.pack(); tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); tooltipWindow.show(); } currentTip.setVisible(true); }
11,619
public void setVgap (int vgap) { if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); this.vgap = vgap; }
public void setVgap (int vgap) { if (vgap < 0) throw new IllegalArgumentException ("vertical gap must be nonnegative"); this.vgap = vgap; }
11,620
public void setHgap (int hgap) { if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); this.hgap = hgap; }
public void setHgap (int hgap) { if (hgap < 0) throw new IllegalArgumentException ("horizontal gap must be nonnegative"); this.hgap = hgap; }
11,621
public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } }
public String getCurrencyCode () { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return null; } }
11,622
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
11,623
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
public String toString() { try { return res.getString ("intlCurrencySymbol"); } catch (Exception _) { return "(unknown currency)"; } }
11,624
public String toString() { StringBuilder b = new StringBuilder(32); b.append('['); b.append(getBootIndicator() ? 'A' : ' '); b.append(' '); b.append(NumberUtils.hex(getSystemIndicator(), 2)); b.append(' '); b.append("s:"+getStartLba()); b.append(' '); long tmp = getStartLba() + getNrSectors(); b.append("e:"+ tmp); //b.append(NumberUtils.hex(getStartLba(), 8)); //b.append('+'); //b.append(NumberUtils.hex(getNrSectors(), 8)); //b.append(' '); //b.append(getStartCHS()); //b.append('-'); //b.append(getEndCHS()); b.append(']'); return b.toString(); }
public String toString() { StringBuilder b = new StringBuilder(32); b.append('['); b.append(getBootIndicator() ? 'A' : ' '); b.append(' '); b.append(NumberUtils.hex(getSystemIndicator(), 2)); b.append(' '); b.append("s:"+getStartLba()); b.append(' '); long tmp = getStartLba() + getNrSectors() - 1; b.append("e:"+ tmp); //b.append(NumberUtils.hex(getStartLba(), 8)); //b.append('+'); //b.append(NumberUtils.hex(getNrSectors(), 8)); //b.append(' '); //b.append(getStartCHS()); //b.append('-'); //b.append(getEndCHS()); b.append(']'); return b.toString(); }
11,625
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 }; fields = tempFields; for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; }
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 }; fields = tempFields; for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; }
11,626
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 }; fields = tempFields; for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; }
public final void clear() { isTimeSet = false; areFieldsSet = false; int zoneOffs = zone.getRawOffset(); int hour = zoneOffs / (60 * 60 * 1000); int minute = (zoneOffs - 60 * 60 * 1000 * hour) / (60 * 1000); int seconds = (zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute) / 1000; int millis = zoneOffs - 60 * 60 * 1000 * hour - 60 * 1000 * minute - seconds * 1000; int[] tempFields = { 1, 1970, JANUARY, 1, 1, 1, 1, THURSDAY, 1, AM, hour, hour, minute, seconds, millis, zoneOffs, 0 }; fields = tempFields; for (int i = 0; i < FIELD_COUNT; i++) isSet[i] = false; }
11,627
private void checkDiscarding() throws TRANSIENT { if (m_manager.get_state() == State.DISCARDING) throw new TRANSIENT("Discarding mode", 1, CompletionStatus.COMPLETED_MAYBE); }
void checkDiscarding() throws TRANSIENT { if (m_manager.get_state() == State.DISCARDING) throw new TRANSIENT("Discarding mode", 1, CompletionStatus.COMPLETED_MAYBE); }
11,628
public AdapterAlreadyExists(String why) { super(why); }
public AdapterAlreadyExists() { super(why); }
11,629
public AdapterAlreadyExists(String why) { super(why); }
public AdapterAlreadyExists(String why) { }
11,630
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
public Obj add(gnuServantObject object, Servant servant, gnuPOA poa) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
11,631
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
public Obj add(ServantDelegateImpl delegate) { Obj rec = new Obj(delegate.object, delegate.servant_id, delegate.servant, delegate.poa ); objects.put(delegate.servant_id, rec); return rec; }
11,632
public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter = objects.entrySet().iterator(); Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_object.equals(ref.object)) return ref; } return null; }
public Obj findObject(org.omg.CORBA.Object stored_object) { if (stored_object == null) return null; Map.Entry item; Iterator iter; Obj ref; while (iter.hasNext()) { item = (Map.Entry) iter.next(); ref = (Obj) item.getValue(); if (stored_object.equals(ref.object)) return ref; } return null; }
11,633
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
public OBJ_ADAPTER(String message) { super(reason, minor, completed); }
11,635
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
public OBJ_ADAPTER(String reason, int minor, CompletionStatus completed) { super(message, 0, CompletionStatus.COMPLETED_NO); }
11,636
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected() && b.isEnabled()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
11,638
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else if (!b.isSelected() && b.isEnabled()) currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
11,639
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus() && b.isFocusPainted()) paintFocus(g, tr, null); }
11,640
public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. }
public void setSelectedIcon(Icon selectedIcon) { // Sets the selected icon for the button. }
11,641
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); }
public void setDisabledIcon(Icon disabledIcon) { disabled_button = disabledIcon; revalidate(); repaint(); }
11,642
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { // Sets the disabled selection icon for the button. }
public void setDisabledSelectedIcon(Icon disabledSelectedIcon) { // Sets the disabled selection icon for the button. }
11,643
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
public final void resolveCpRefs() { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
11,644
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
11,645
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
11,646
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
11,647
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(clc); } } } resolvedCpRefs = true; } }
public final void resolveCpRefs(VmClassLoader clc) { if (!resolvedCpRefs) { prepare(); if (superClass != null) { superClass.resolveCpRefs(clc); } /** * Step 2b: Load the classes of my fields */ final int fcnt = getNoDeclaredFields(); for (int i = 0; i < fcnt; i++) { final VmField fs = fieldTable[i]; fs.resolve(clc); } /** * Step 2c: Load the classes of my methods */ final int mcnt = getNoDeclaredMethods(); for (int i = 0; i < mcnt; i++) { final VmMethod mts = methodTable[i]; mts.resolve(clc); } VmCP cp = this.cp; if (cp != null) { for (int i = 0; i < cp.getLength(); i++) { final Object obj = cp.getAny(i); if (obj instanceof VmResolvableConstObject) { ((VmResolvableConstObject) obj).resolve(loader); } } } resolvedCpRefs = true; } }
11,648
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
public ExceptionInInitializerError() { super(null); initCause(t); exception = t; }
11,649
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
public ExceptionInInitializerError(Throwable t) { super(null); initCause(t); exception = t; }
11,650
protected void resolve(VmClassLoader clc) throws ClassNotFoundException { final Object data = this.data; if (data instanceof String) { final String className = (String)data; final VmType<?> type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.data = (VmInterfaceClass)type; } else { throw new ClassNotFoundException("Class " + className + " is not an interface"); } type.link(); } }
protected void resolve(VmClassLoader clc) throws ClassNotFoundException { final Object data = this.data; if (data instanceof String) { final String className = (String)data; final VmType<?> type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.data = (VmInterfaceClass<?>)type; } else { throw new ClassNotFoundException("Class " + className + " is not an interface"); } type.link(); } }
11,651
protected synchronized void resolve(VmClassLoader cl) { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } }
protected final synchronized void resolve() { try { type = new Signature(getSignature(), declaringClass.getLoader()).getType(); } catch (ClassNotFoundException ex) { throw (Error)new NoClassDefFoundError().initCause(ex); } }
11,652
protected void resolve(VmClassLoader cl) { resolveTypes(); }
protected final void resolve() { resolveTypes(); }
11,653
public Object get(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } return sequence[index]; }
public Object get(int index) { if (index < 0 || index >= size()) { throw new IndexOutOfBoundsException("index=" + index + ", size=" + size()); } return sequence[index]; }
11,654
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
11,655
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { super(children, next); this.name = name; this.withParams = withParams; }
CallTemplateNode(TemplateNode children, TemplateNode next, QName name, List withParams) { this.name = name; this.withParams = withParams; }
11,656
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } return new CallTemplateNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, withParams2); }
TemplateNode clone(Stylesheet stylesheet) { int len = withParams.size(); List withParams2 = new ArrayList(len); for (int i = 0; i < len; i++) { withParams2.add(((WithParam) withParams.get(i)).clone(stylesheet)); } return new CallTemplateNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), name, withParams2); }
11,657
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((SeparatorUI) UIManager.getUI(this)); }
11,658
public boolean add (Object targetChild) { throw new Error ("Not implemented"); }
public boolean add (Object targetChild) { if (targetChild == null) throw new IllegalArgumentException(); if (children.containsKey(targetChild)) return false; children.put(targetChild, targetChild); return true; }
11,659
public boolean addAll (Collection c) { throw new Error ("Not implemented"); }
public boolean addAll (Collection c) { throw new UnsupportedOperationException(); }
11,660
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); }
public void addBeanContextMembershipListener (BeanContextMembershipListener listener) { throw new Error ("Not implemented"); }
11,661
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { throw new Error ("Not implemented"); }
public void addBeanContextMembershipListener (BeanContextMembershipListener bcml) { if (! bcmListeners.contains(listener)) bcmListeners.add(listener); }
11,662
public void clear () { throw new Error ("Not implemented"); }
public void clear () { throw new UnsupportedOperationException(); }
11,663
public Locale getLocale () { throw new Error ("Not implemented"); }
public Locale getLocale () { return locale; }
11,664
protected void initialize () { throw new Error ("Not implemented"); }
protected void initialize () { bcmListeners = new ArrayList(); children = new HashMap(); }
11,665
public Iterator iterator () { throw new Error ("Not implemented"); }
public Iterator iterator () { return children.keySet().iterator(); }
11,666
public boolean remove (Object targetChild) { throw new Error ("Not implemented"); }
public boolean remove (Object targetChild) { return remove(targetChild, true); }
11,667
public boolean removeAll (Collection c) { throw new Error ("Not implemented"); }
public boolean removeAll (Collection c) { throw new UnsupportedOperationException(); }
11,668
public boolean retainAll (Collection c) { throw new Error ("Not implemented"); }
public boolean retainAll (Collection c) { throw new UnsupportedOperationException(); }
11,669
public Object[] toArray () { throw new Error ("Not implemented"); }
public Object[] toArray () { return children.keySet().toArray(); }
11,670
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
public int getLeafCount() { // Variables Enumeration e; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
11,671
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants e = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
11,672
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
public int getLeafCount() { // Variables Enumeration enum; int count; TreeNode current; // Get Enumeration of all descendants enum = depthFirstEnumeration(); // Process Nodes count = 0; while (enum.hasMoreElements() == true) { current = (TreeNode) enum.nextElement(); if (current.isLeaf() == true) { count++; } // if } // if
11,673
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelectionBackground(defaults.getColor("List.selectionBackground")); list.setOpaque(true); }
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); list.setForeground(defaults.getColor("List.foreground")); list.setBackground(defaults.getColor("List.background")); list.setSelectionForeground(defaults.getColor("List.selectionForeground")); list.setSelectionBackground(defaults.getColor("List.selectionBackground")); list.setOpaque(true); }
11,675
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); }
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight() - 1); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); }
11,676
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth(), 0); return getUI().locationToIndex(this, r.getLocation()); }
public int getLastVisibleIndex() { ComponentOrientation or = getComponentOrientation(); Rectangle r = getVisibleRect(); r.translate(0, (int) r.getHeight()); if (or == ComponentOrientation.LEFT_TO_RIGHT) r.translate((int) r.getWidth() - 1, 0); return getUI().locationToIndex(this, r.getLocation()); }
11,677
public VmProcess(String mainClassName, String[] args, InputStream in, PrintStream out, PrintStream err) { synchronized (getClass()) { this.id = lastId++; } this.running = true; this.threadGroup = new ThreadGroup("Process-" + id, this); this.mainClassName = mainClassName; if (args == null) { this.args = new String[0]; } else { this.args = new String[args.length]; System.arraycopy(args, 0, this.args, 0, args.length); } if (System.in == null) { Unsafe.debug("Set System.in."); System.setIn(in); } if (System.out == null) { Unsafe.debug("Set System.out."); System.setOut(out); } if (System.err == null) { Unsafe.debug("Set System.err."); System.setErr(err); } final Thread mainThread = new Thread(threadGroup, new ProcessRunner()); mainThread.start(); }
public VmProcess(String mainClassName, String[] args, InputStream in, PrintStream out, PrintStream err) { synchronized (getClass()) { this.id = lastId++; } this.running = true; this.threadGroup = new ThreadGroup("Process-" + id); this.mainClassName = mainClassName; if (args == null) { this.args = new String[0]; } else { this.args = new String[args.length]; System.arraycopy(args, 0, this.args, 0, args.length); } if (System.in == null) { Unsafe.debug("Set System.in."); System.setIn(in); } if (System.out == null) { Unsafe.debug("Set System.out."); System.setOut(out); } if (System.err == null) { Unsafe.debug("Set System.err."); System.setErr(err); } final Thread mainThread = new Thread(threadGroup, new ProcessRunner()); mainThread.start(); }
11,678
JMenuBar() { }
JMenuBar() { }
11,679
FileDescriptor(ByteChannel channel) { this.channel = channel; }
public FileDescriptor() { this.channel = channel; }
11,680
FileDescriptor(ByteChannel channel) { this.channel = channel; }
FileDescriptor(ByteChannel channel) { channel = null; }
11,681
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JTextComponent tc = (JTextComponent) c; if (tc.isEnabled() && tc.isEditable()) super.paintBorder(c, g, x, y, w, h); else { Color savedColor = g.getColor(); g.setColor(MetalLookAndFeel.getControlShadow()); g.drawRect(x, y, w - 1, h - 1); g.setColor(savedColor); } }
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JTextComponent tc = (JTextComponent) c; enabledTextBorder = tc.isEnabled() && tc.isEditable(); } else enabledTextBorder = false; if (enabledTextBorder) super.paintBorder(c, g, x, y, w, h); else { Color savedColor = g.getColor(); g.setColor(MetalLookAndFeel.getControlShadow()); g.drawRect(x, y, w - 1, h - 1); g.setColor(savedColor); } }
11,682
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. fxchST1(os, fpuStack, reg); final X86RegisterPool pool = ec.getPool(); pool.request(EAX); final Register resr = pool.request(JvmType.INT); if (gt) { // Reverse order fxch(os, fpuStack, Register.ST1); } os.writeFUCOMPP(); // Compare, Pop twice os.writeFNSTSW_AX(); // Store fp status word in AX os.writeSAHF(); // Store AH to Flags // Pop fpu stack twice (FUCOMPP) fpuStack.pop(); fpuStack.pop(); final Label eqLabel = new Label(curInstrLabel + "eq"); final Label ltLabel = new Label(curInstrLabel + "lt"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(eqLabel, X86Constants.JE); os.writeJCC(ltLabel, X86Constants.JB); // Greater if (gt) { os.writeMOV_Const(resr, -1); } else { os.writeMOV_Const(resr, 1); } os.writeJMP(endLabel); // Equal os.setObjectRef(eqLabel); os.writeXOR(resr, resr); os.writeJMP(endLabel); // Less os.setObjectRef(ltLabel); if (gt) { os.writeMOV_Const(resr, 1); } else { os.writeMOV_Const(resr, -1); } // End os.setObjectRef(endLabel); // Push result final IntItem res = IntItem.createReg(resr); pool.transferOwnerTo(resr, res); vstack.push(res); // Release pool.release(EAX); }
final static void compare(AbstractX86Stream os, EmitterContext ec, VirtualStack vstack, boolean gt, int type, Label curInstrLabel) { final Item v2 = vstack.pop(type); final Item v1 = vstack.pop(type); // Prepare operands final FPUStack fpuStack = vstack.fpuStack; final Register reg; reg = prepareForOperation(os, ec, vstack, fpuStack, v2, v1, false); // We need reg to be ST1. fxchST1(os, fpuStack, reg); final X86RegisterPool pool = ec.getPool(); pool.request(EAX); final Register resr = pool.request(JvmType.INT); if (!gt) { // Reverse order fxch(os, fpuStack, Register.ST1); } os.writeFUCOMPP(); // Compare, Pop twice os.writeFNSTSW_AX(); // Store fp status word in AX os.writeSAHF(); // Store AH to Flags // Pop fpu stack twice (FUCOMPP) fpuStack.pop(); fpuStack.pop(); final Label eqLabel = new Label(curInstrLabel + "eq"); final Label ltLabel = new Label(curInstrLabel + "lt"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(eqLabel, X86Constants.JE); os.writeJCC(ltLabel, X86Constants.JB); // Greater if (!gt) { os.writeMOV_Const(resr, -1); } else { os.writeMOV_Const(resr, 1); } os.writeJMP(endLabel); // Equal os.setObjectRef(eqLabel); os.writeXOR(resr, resr); os.writeJMP(endLabel); // Less os.setObjectRef(ltLabel); if (!gt) { os.writeMOV_Const(resr, 1); } else { os.writeMOV_Const(resr, -1); } // End os.setObjectRef(endLabel); // Push result final IntItem res = IntItem.createReg(resr); pool.transferOwnerTo(resr, res); vstack.push(res); // Release pool.release(EAX); }
11,683
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); return null; }}); } catch (PrivilegedActionException ex) { throw new IOException(ex.getException()); } }
public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, len); p.setSocketAddress(address); socket.send(p); return null; }}); } catch (PrivilegedActionException ex) { final IOException ioe = new IOException(); ioe.initCause(ex.getException()); throw ioe; } }
11,685
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
11,686
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
11,687
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; }
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
11,688
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); // put a dot in each of the top corners g.drawLine(0, 0, 0, 0); g.drawLine(d.width - 1, 0, d.width - 1, 0); g.drawLine(0, d.height - 1, d.width - 1, d.height - 1); // draw the metal pattern Rectangle b = title.getBounds(); int startX = b.x + b.width + 5; int endX = startX; if (iconButton.isVisible()) endX = Math.max(iconButton.getX(), endX); else if (maxButton.isVisible()) endX = Math.max(maxButton.getX(), endX); else if (closeButton.isVisible()) endX = Math.max(closeButton.getX(), endX); endX -= 7; if (endX > startX) MetalUtils.fillMetalPattern(g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); } g.setColor(savedColor); }
public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); // put a dot in each of the top corners g.drawLine(0, 0, 0, 0); g.drawLine(d.width - 1, 0, d.width - 1, 0); g.drawLine(0, d.height - 1, d.width - 1, d.height - 1); // draw the metal pattern Rectangle b = title.getBounds(); int startX = b.x + b.width + 5; int endX = startX; if (iconButton.isVisible()) endX = Math.max(iconButton.getX(), endX); else if (maxButton.isVisible()) endX = Math.max(maxButton.getX(), endX); else if (closeButton.isVisible()) endX = Math.max(closeButton.getX(), endX); endX -= 7; if (endX > startX) MetalUtils.fillMetalPattern(this, g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); } g.setColor(savedColor); }
11,689
public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width - paletteCloseIcon.getIconWidth() - 13, b.height - 5, MetalLookAndFeel.getPrimaryControlHighlight(), MetalLookAndFeel.getBlack()); // draw a line separating the title pane from the frame content Dimension d = getSize(); g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); g.drawLine(0, d.height - 1, d.width - 1, d.height - 1); g.setColor(savedColor); }
public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width - paletteCloseIcon.getIconWidth() - 13, b.height - 5, MetalLookAndFeel.getPrimaryControlHighlight(), MetalLookAndFeel.getBlack()); // draw a line separating the title pane from the frame content Dimension d = getSize(); g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); g.drawLine(0, d.height - 1, d.width - 1, d.height - 1); g.setColor(savedColor); }
11,690
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance = (MetalTextFieldUI) o; return instance; }
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance = (MetalTextFieldUI) o; return instance; }
11,691
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
11,692
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); }
11,693
public AbstractAction() { this(""); // TODO: default name }
public AbstractAction() { this(null); // TODO: default name }
11,694
public void removePropertyChangeListener(PropertyChangeListener listener);
void removePropertyChangeListener(PropertyChangeListener listener);
11,695
private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; }
private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; }
11,696
public NameAlreadyBoundException (String msg) { super (msg); }
public NameAlreadyBoundException () { super (msg); }
11,697
public NameAlreadyBoundException (String msg) { super (msg); }
public NameAlreadyBoundException (String msg) { super (); }
11,698
public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; }
public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; }
11,699
public static Border createEtchedBorder() { /* Create a border with an "etched" look using the component's current background color for highlighting and shading. Returns: the Border object createEtchedBorder */ return null; }
public static Border createEtchedBorder() { /* Create a border with an "etched" look using the component's current background color for highlighting and shading. Returns: the Border object createEtchedBorder */ return null; }
11,700
public static Border createLoweredBevelBorder() { /* Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.) Returns: the Border object createBevelBorder */ return null; }
public static Border createLoweredBevelBorder() { /* Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.) Returns: the Border object createBevelBorder */ return null; }
11,701
public static MatteBorder createMatteBorder( int top, int left, int bottom, int right, Color color) { /* Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.) Parameters: top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelscolor - a Color to use for the borderReturns: the MatteBorder object createMatteBorder */ return null; }
public static MatteBorder createMatteBorder( int top, int left, int bottom, int right, Color color) { /* Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.) Parameters: top - an int specifying the width of the top in pixelsleft - an int specifying the width of the left side in pixelsbottom - an int specifying the width of the right side in pixelsright - an int specifying the width of the bottom in pixelscolor - a Color to use for the borderReturns: the MatteBorder object createMatteBorder */ return null; }
11,702
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border object createLoweredBevelBorder */ return null; }
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border object createLoweredBevelBorder */ return null; }
11,703
public static TitledBorder createTitledBorder(String title) { /* Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel. Parameters: title - a String containing the text of the titleReturns: the TitledBorder object createTitledBorder */ return null; }
public static TitledBorder createTitledBorder(String title) { /* Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the current look and feel. Parameters: title - a String containing the text of the titleReturns: the TitledBorder object createTitledBorder */ return null; }
11,704
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(180); if (dateFormat == null) dateFormat = DateFormat.getDateTimeInstance(); buf.append(dateFormat.format(new Date(record.getMillis()))); buf.append(' '); buf.append(record.getLoggerName()); buf.append(lineSep); buf.append(record.getLevel()); buf.append(": "); buf.append(formatMessage(record)); buf.append(lineSep); return buf.toString(); }
public String format(LogRecord record) { StringBuffer buf = new StringBuffer(180); if (dateFormat == null) dateFormat = DateFormat.getDateTimeInstance(); buf.append(dateFormat.format(new Date(record.getMillis()))); buf.append(' '); buf.append(record.getSourceClassName()); buf.append(' '); buf.append(record.getSourceMethodName()); buf.append(lineSep); buf.append(record.getLevel()); buf.append(": "); buf.append(formatMessage(record)); buf.append(lineSep); return buf.toString(); }
11,705
Menu(String label){ this(label, false);}
Menu(){ this(label, false);}
11,706