bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void setMinimumSize(Dimension minimumSize) { min = minimumSize; }
public void setMinimumSize(Dimension minimumSize) { min = minimumSize; }
15,011
public void setPreferredSize(Dimension preferredSize) { pref = preferredSize; }
public void setPreferredSize(Dimension preferredSize) { pref = preferredSize; }
15,012
public void setRequestFocusEnabled(boolean aFlag) { }
public void setRequestFocusEnabled(boolean aFlag) { }
15,013
public void setToolTipText(String text) { tool_tip_text = text; }
public void setToolTipText(String text) { toolTipText = text; }
15,014
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); }
protected void setUI(ComponentUI newUI) if (ui != null) ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) ui.installUI(this); } revalidate(); repaint(); }
15,015
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); } // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); } revalidate(); repaint(); }
protected void setUI(ComponentUI newUI) { if (ui != null) { ui.uninstallUI(this); // Set the look and feel delegate for this component. ui = newUI; if (ui != null) { ui.installUI(this); revalidate(); repaint();
15,016
public void setVisible(boolean aFlag) { // Makes the component visible or invisible. super.setVisible(aFlag); if (getParent() != null) { Rectangle dims = getBounds(); getParent().repaint((int)dims.getX(), (int)dims.getY(), (int)dims.getWidth(), ...
public void setVisible(boolean aFlag) { // Makes the component visible or invisible. super.setVisible(aFlag); if (getParent() != null) { Rectangle dims = getBounds(); getParent().repaint((int)dims.getX(), (int)dims.getY(), (int)dims.getWidth(), ...
15,017
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
public void transform(Source xmlSource, Result outputTarget) throws TransformerException { // Get the source tree DOMSource source; synchronized (factory.resolver) { factory.resolver.setUserResolver(uriResolver); factory.resolver.setUserListener(errorListener); source = factory....
15,018
public boolean equals(Object obj) { if (!(obj instanceof ColorModel)) return false; ColorModel o = (ColorModel) obj; return (pixel_bits == o.pixel_bits) && (transferType == o.transferType) && (transparency == o.transparency) && (hasAlpha == o.hasAlpha) && (isAlphaPremultiplied == isA...
public boolean equals(Object obj) { if (!(obj instanceof ColorModel)) return false; ColorModel o = (ColorModel) obj; return (pixel_bits == o.pixel_bits) && (transferType == o.transferType) && (transparency == o.transparency) && (hasAlpha == o.hasAlpha) && (isAlphaPremultiplied == isA...
15,020
public void replaceRange(String text, int start, int end) { Document doc = getDocument(); if (start > end || start < doc.getStartPosition().getOffset() || end >= doc.getEndPosition().getOffset()) throw new IllegalArgumentException(); try { doc.remove(start, end); doc.insertString(start, text, ...
public void replaceRange(String text, int start, int end) { Document doc = getDocument(); if (start > end || start < doc.getStartPosition().getOffset() || end >= doc.getEndPosition().getOffset()) throw new IllegalArgumentException(); try { doc.remove(start, end - start); doc.insertString(start...
15,021
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
private static void adjustFromLeft(SizeRequirements reqs, float baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * re...
15,023
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
15,024
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
private static void adjustFromLeft(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float left = baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxLeft = ((float) reqs.maximum) * reqs...
15,025
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
private static void adjustFromRight(SizeRequirements reqs, float baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) re...
15,026
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
15,027
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
private static void adjustFromRight(SizeRequirements reqs, int baseline, int allocated, int[] spanAndOffset) { float right = allocated - baseline; // If the resulting span exceeds the maximum of the component, then adjust // accordingly. float maxRight = ((float) reqs...
15,028
protected DragController(MouseEvent e) { }
protected DragController(MouseEvent e) { offset = e.getX(); }
15,030
protected int getNeededLocation(int x, int y) { return 0; }
protected int getNeededLocation(int x, int y) { return x; }
15,033
protected int positionForMouseEvent(MouseEvent e) { return 0; }
protected int positionForMouseEvent(MouseEvent e) { return e.getX() + getX() - offset; }
15,034
protected JButton createLeftOneTouchButton() { return new OneTouchButton(/* left */ true); }
protected JButton createLeftOneTouchButton() { return new OneTouchButton(/* left */ true); }
15,039
protected JButton createRightOneTouchButton() { return new OneTouchButton(/* left */ false); }
protected JButton createRightOneTouchButton() { return new OneTouchButton(/* left */ false); }
15,040
public Dimension getPreferredSize() { return new Dimension(dividerSize, dividerSize); }
public Dimension getPreferredSize() { return getLayout().preferredLayoutSize(this); }
15,041
public SentenceBreakIterator () { iter = null; }
public SentenceBreakIterator () { }
15,048
public static Object instantiate (ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { ...
public static Object instantiate (ClassLoader cl, String beanName) throws IOException, ClassNotFoundException { Object bean; InputStream serStream; if (cl == null) { serStream = ClassLoader.getSystemResourceAsStream (beanName.replace ('.','/')+".ser"); } else { ...
15,049
public Request newRequest(String method, String path) { if (method == null || method.length() == 0) { throw new IllegalArgumentException("method must have non-zero length"); } if (path == null || path.length() == 0) { throw new IllegalArgumentException("path must have non-zero leng...
public Request newRequest(String method, String path) { if (method == null || method.length() == 0) { throw new IllegalArgumentException("method must have non-zero length"); } if (path == null || path.length() == 0) { path = "/"; } Request ret = new Request(this, method, pa...
15,050
public int getMnemonic() { return (int) mnemonicKey; }
public int getMnemonic() { return mnemonicKey; }
15,052
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { throw new Error("not implemente...
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { throw new Error("not implemente...
15,053
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { throw new Error("not implemente...
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) throws NotImplementedException { return new TexturePaintContext(...
15,054
public int getTransparency() throws NotImplementedException { throw new Error("not implemented"); }
public int getTransparency() { throw new Error("not implemented"); }
15,055
public int getTransparency() throws NotImplementedException { throw new Error("not implemented"); }
public int getTransparency() throws NotImplementedException { return texture.getTransparency(); }
15,056
public final boolean equals (Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } re...
public final boolean equals (Object obj) { // InetSocketAddress objects are equal when addr and port are equal. // The hostname may differ. if (obj instanceof InetSocketAddress) { InetSocketAddress a = (InetSocketAddress) obj; return addr.equals(a.addr) && a.port == port; } re...
15,057
public String toString() { return addr + ":" + port; }
public String toString() { return (addr == null ? hostname : addr.getHostName()) + ":" + port; }
15,058
BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
public BoxLayout(JComponent p, int way) { int width = 0; int height = 0; this.way = way; if (way == X_AXIS) { width = 1; } else { height = 1; } gridbag = new GridLayout(width, height); }
15,061
public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2002 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. T...
public static void version() { System.out.println("rmiregistry (" + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println("Copyright 2005 Free Software Foundation, Inc."); System.out.println("This is free software; see the source for copying conditions. T...
15,062
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
public void paint(Graphics g) { RepaintManager rm = RepaintManager.currentManager(this); // We do a little stunt act here to switch on double buffering if it's // not already on. If we are not already doublebuffered, then we jump // into the method paintDoubleBuffered, which turns on the double buffer ...
15,063
public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); }
public void installUI(JComponent c) { super.installUI(c); }
15,065
public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); }
public void installUI(JComponent c) { c.setBackground(UIManager.getColor("control")); super.installUI(c); if (c instanceof JRootPane) { JRootPane rp = (JRootPane) c; installDefaults(rp); installComponents(rp); installListeners(rp); installKeyboardActions(rp); } }
15,066
public static AffineTransform getTranslateInstance(double tx, double ty) { AffineTransform t = new AffineTransform(); t.setToTranslation(tx, ty); return t; }
public static AffineTransform getTranslateInstance(double tx, double ty) { AffineTransform t = new AffineTransform(); t.m02 = tx; t.m12 = ty; t.type = (tx == 0 && ty == 0) ? TYPE_UNIFORM_SCALE : TYPE_TRANSLATION; return t; }
15,067
protected AbstractDocument.AbstractElement createDefaultRoot() { rootElement = createBranchElement(null, null); reindex(); return (AbstractElement) rootElement; }
protected AbstractDocument.AbstractElement createDefaultRoot() { rootElement = createBranchElement(null, null); reindex(); return (AbstractElement) rootElement; }
15,068
public Element getParagraphElement(int pos) { return null; }
public Element getParagraphElement(int pos) { Element root = getDefaultRootElement(); return root.getElement(root.getElementIndex(pos)); }
15,069
protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr) { reindex(); }
protected void insertUpdate(DefaultDocumentEvent event, AttributeSet attributes) { reindex(); }
15,070
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
15,072
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
15,073
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
protected void reindex() { Element[] lines; try { String str = content.getString(0, content.length()); ArrayList elts = new ArrayList(); int j = 0; for (int i = str.indexOf('\n', 0); i != -1; i = str.indexOf('\n', i+1)) { elts.add(createLeafElement(rootElem...
15,074
protected void removeUpdate(DefaultDocumentEvent chng) { reindex(); }
protected void removeUpdate(DefaultDocumentEvent event) { reindex(); }
15,075
public MetalLookAndFeel() { if (theme == null) createDefaultTheme(); }
public MetalLookAndFeel() { createDefaultTheme(); }
15,077
public String getDescription() { return "Metal look and feel"; }
public String getDescription() { return "The Java(tm) Look and Feel"; }
15,091
public String getID() { return "MetalLookAndFeel"; }
public String getID() { return "Metal"; }
15,095
public String getName() { return "MetalLookAndFeel"; }
public String getName() { return "Metal"; }
15,104
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
15,125
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", getControl(), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", getControlDarkShadow(), "Button.disabledText", get...
15,127
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
final private void flushDirectories() { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
15,129
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { log.debug("flush: flushing directory "+d); //TODO: uncomment this line //d.flush(); } }
final private void flushDirectories() throws IOException { log.info("flushing directories ..."); for (FSDirectory d : directories.values()) { if(log.isDebugEnabled()) { log.debug("flush: flushing directory "+d); } //TODO: uncomment this line //d.flush(); } }
15,130
final private void flushFiles() throws IOException { log.info("flushing files ..."); for (FSFile f : files.values()) { log.debug("flush: flushing file "+f); f.flush(); } }
final private void flushFiles() throws IOException { log.info("flushing files ..."); for (FSFile f : files.values()) { if(log.isDebugEnabled()) { log.debug("flush: flushing file "+f); } f.flush(); } }
15,131
final public synchronized FSDirectory getDirectory(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSDirectory dir = (FSDirectory)directories.get(entry); if (dir == null) { dir = createDirectory(entry); directories.put(entry, dir); } return dir; ...
final public synchronized FSDirectory getDirectory(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSDirectory dir = directories.get(entry); if (dir == null) { dir = createDirectory(entry); directories.put(entry, dir); } return dir; }
15,132
final public FSBlockDeviceAPI getFSApi() throws ApiNotFoundException { return (FSBlockDeviceAPI) device.getAPI(FSBlockDeviceAPI.class); }
final public FSBlockDeviceAPI getFSApi() throws ApiNotFoundException { return device.getAPI(FSBlockDeviceAPI.class); }
15,133
final public synchronized FSFile getFile(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSFile file = (FSFile)files.get(entry); if (file == null) { file = createFile(entry); files.put(entry, file); } return file; }
final public synchronized FSFile getFile(FSEntry entry) throws IOException { if(isClosed()) throw new IOException("FileSystem is closed"); FSFile file = files.get(entry); if (file == null) { file = createFile(entry); files.put(entry, file); } return file; }
15,134
public Rectangle getViewRect() { return new Rectangle(getViewPosition(), getViewSize()); }
public Rectangle getViewRect() { return new Rectangle(getViewPosition(), getExtentSize()); }
15,135
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
15,136
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewExtent; }
public Dimension getViewSize() { if (viewExtent == null) return getPreferredSize(); else return viewSize; }
15,137
public void setViewSize(Dimension newSize) { viewExtent = newSize; fireStateChanged(); }
public void setViewSize(Dimension newSize) { viewSize = newSize; Component view = getView(); if (view != null) view.setSize(newSize); fireStateChanged(); }
15,138
public void remove(MenuComponent menu) { menuBar.remove(menu); }
public void remove(MenuComponent menu) { if (menu == menuBar) { if (menuBar != null) { if (peer != null) { ((FramePeer) peer).setMenuBar(null); menuBar.removeNotify(); } menuBar.setParent(null); } menuBar = null; } else super.remove(menu); }
15,139
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
15,140
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; }
15,141
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
15,143
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
public void paintComponent(Graphics g) { super.paintComponent(g); if (iconOnly) { Rectangle bounds = getBounds(); int x = (bounds.width - comboIcon.getIconWidth()) / 2; int y = (bounds.height - comboIcon.getIconHeight()) / 2; comboIcon.paintIcon(comboBox, g, x, y); } ...
15,144
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTScrollbar(); return accessibleContext; }
public AccessibleContext getAccessibleContext() { /* Create the context if this is the first request */ if (accessibleContext == null) accessibleContext = new AccessibleAWTScrollBar(); return accessibleContext; }
15,145
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); 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 ApplyImportsNode(); if (children != null) ret.children = children.clone(stylesheet); } if (next != null) ret.next = next.clone(stylesheet); } return ret; }
15,146
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ApplyImportsNode(); 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 ApplyImportsNode(); if (children != null) { ret.children = children.clone(stylesheet); if (next != null) { ret.next = next.clone(stylesheet); return ret;
15,147
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) t.apply(stylesheet, mode, context, pos, len, ...
15,148
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { TemplateNode t = stylesheet.getTemplate(mode, context, true); if (t != null) { t.apply(stylesheet, mode, context, pos, len, ...
15,149
public String toString() { StringBuilder builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.a...
public String toString() { StringBuffer builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.ap...
15,154
public String toString() { StringBuilder builder; builder = new StringBuilder(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.a...
public String toString() { StringBuilder builder; builder = new StringBuffer(getClass().getName()); builder.append("[field="); builder.append(field); builder.append(", size="); builder.append(size); builder.append(", character="); builder.append(character); builder.ap...
15,155
public String toString() { StringBuilder output = new StringBuilder(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append("...
public String toString() { StringBuffer output = new StringBuffer(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append(", ...
15,157
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. return is_def; }
public boolean isDefaultButton() { // Returns whether or not this button is the default button on the // RootPane. JRootPane rp = SwingUtilities.getRootPane(this); boolean isDefault = false; if (rp != null) isDefault = rp.getDefaultButton() == this; return isDefault; }
15,158
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return def; }
public boolean isDefaultCapable() { // Returns whether or not this button is capable of being the default // button on the RootPane. return defaultCapable; }
15,159
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString(); }
protected String paramString() { String superParam = super.paramString(); // 41 is the maximum number of chars which may be needed. StringBuffer sb = new StringBuffer(41); sb.append(",defaultButton=").append(is_def); sb.append(",defaultCapable=").append(def); return superParam + sb.toString(); }
15,160
public void setDefaultCapable(boolean defaultCapable) { def = defaultCapable; }
public void setDefaultCapable(boolean defaultCapable) { this.defaultCapable = defaultCapable; }
15,161
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) { throw new Error("not implemented"); }
15,163
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleJTableHeaderEntry(int c, JTableHeader p, JTable t) throws NotImplementedException { columnIndex = c; parent = p; table = t; }
15,164
public void addFocusListener(FocusListener l) throws NotImplementedException { throw new Error("not implemented"); }
public void addFocusListener(FocusListener l) { throw new Error("not implemented"); }
15,165
public void addFocusListener(FocusListener l) throws NotImplementedException { throw new Error("not implemented"); }
public void addFocusListener(FocusListener l) throws NotImplementedException { AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) c.addFocusListener(l); }
15,166
public void addPropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { throw new Error("not implemented"); }
public void addPropertyChangeListener(PropertyChangeListener l) { throw new Error("not implemented"); }
15,167
public void addPropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { throw new Error("not implemented"); }
public void addPropertyChangeListener(PropertyChangeListener l) throws NotImplementedException { AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) ac.addPropertyChangeListener(l); }
15,168
public boolean contains(Point p) throws NotImplementedException { throw new Error("not implemented"); }
public boolean contains(Point p) { throw new Error("not implemented"); }
15,169
public boolean contains(Point p) throws NotImplementedException { throw new Error("not implemented"); }
public boolean contains(Point p) throws NotImplementedException { AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.contains(p); else return false; }
15,170
public AccessibleAction getAccessibleAction() throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleAction getAccessibleAction() { throw new Error("not implemented"); }
15,171
public AccessibleAction getAccessibleAction() throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleAction getAccessibleAction() throws NotImplementedException { AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac instanceof AccessibleAction) return (AccessibleAction) ac; else return null; }
15,172
public Accessible getAccessibleAt(Point p) throws NotImplementedException { throw new Error("not implemented"); }
public Accessible getAccessibleAt(Point p) { throw new Error("not implemented"); }
15,173
public Accessible getAccessibleAt(Point p) throws NotImplementedException { throw new Error("not implemented"); }
public Accessible getAccessibleAt(Point p) throws NotImplementedException { AccessibleContext ac = getAccessibleColumnHeaderRenderer(); AccessibleComponent c = ac.getAccessibleComponent(); if (c != null) return c.getAccessibleAt(p); else return null; }
15,174
public Accessible getAccessibleChild(int i) throws NotImplementedException { throw new Error("not implemented"); }
public Accessible getAccessibleChild(int i) { throw new Error("not implemented"); }
15,175
public Accessible getAccessibleChild(int i) throws NotImplementedException { throw new Error("not implemented"); }
public Accessible getAccessibleChild(int i) throws NotImplementedException { return null; }
15,176
public int getAccessibleChildrenCount() throws NotImplementedException { throw new Error("not implemented"); }
public int getAccessibleChildrenCount() { throw new Error("not implemented"); }
15,177
public int getAccessibleChildrenCount() throws NotImplementedException { throw new Error("not implemented"); }
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
15,178
public AccessibleComponent getAccessibleComponent() throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleComponent getAccessibleComponent() { throw new Error("not implemented"); }
15,179
public AccessibleComponent getAccessibleComponent() throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleComponent getAccessibleComponent() throws NotImplementedException { return this; }
15,180
public AccessibleContext getAccessibleContext() throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleContext getAccessibleContext() { throw new Error("not implemented"); }
15,181
public AccessibleContext getAccessibleContext() throws NotImplementedException { throw new Error("not implemented"); }
public AccessibleContext getAccessibleContext() throws NotImplementedException { return this; }
15,182
public String getAccessibleDescription() throws NotImplementedException { throw new Error("not implemented"); }
public String getAccessibleDescription() { throw new Error("not implemented"); }
15,183
public String getAccessibleDescription() throws NotImplementedException { throw new Error("not implemented"); }
public String getAccessibleDescription() throws NotImplementedException { AccessibleContext ac = getAccessibleColumnHeaderRenderer(); if (ac != null) return ac.getAccessibleDescription(); return accessibleDescription; }
15,184