rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (argCtx != null) { | if (ctx != null || argCtx != null) | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... |
} | public boolean isEqualNode(Node arg) { if (this == arg) { return true; } if (arg == null) { return false; } if (nodeType != arg.getNodeType() || !equal(getNodeName(), arg.getNodeName()) || !equal(getLocalName(), arg.getLocalName()) || !equal(getNamespac... | |
while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) | case CDATA_SECTION_NODE: while (ctx.next != null && (ctx.next.nodeType == TEXT_NODE || ctx.next.nodeType == CDATA_SECTION_NODE)) | public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) ... |
attrs.item(i).normalize(); | DomNode attr = (DomNode) attrs.item(i); boolean saved3 = attr.readonly; attr.readonly = false; attr.normalize(); attr.readonly = saved3; | public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) ... |
ctx.readonly = saved2; | public final void normalize() { // Suspend readonly status boolean saved = readonly; readonly = false; for (DomNode ctx = first; ctx != null; ctx = ctx.next) { switch (ctx.nodeType) { case TEXT_NODE: while (ctx.next != null && ctx.next.nodeType == TEXT_NODE) ... | |
for (int i = 0; i < current.nListeners; i++) | while (iter.hasNext()) | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... |
ListenerRecord rec = current.listeners[i]; | ListenerRecord rec = (ListenerRecord)iter.next(); | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... |
for (int j = 0; j < current.nListeners; j++) | while (iter.hasNext()) | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... |
if (current.listeners[j].equals(notificationSet[i])) | ListenerRecord rec = (ListenerRecord)iter.next(); if (rec.equals(notificationSet[i])) | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... |
iter = null; | private void notifyNode(DomEvent e, DomNode current, boolean capture, ListenerRecord[] notificationSet) { int count = 0; // do any of this set of listeners get notified? for (int i = 0; i < current.nListeners; i++) { List... | |
for (int i = 0; i < nListeners; i++) { if (listeners[i].listener != listener) { continue; } if (listeners[i].useCapture != useCapture) { continue; } if (!listeners[i].type.equals(type)) { continue; } if (nListeners == 1) { listeners = null; nListeners = 0; } else { for (int j = i + 1; j < nListeners; j++) { listeners[... | listeners.remove(new ListenerRecord(type, listener, useCapture)); nListeners = listeners.size(); | public final void removeEventListener(String type, EventListener listener, boolean useCapture) { for (int i = 0; i < nListeners; i++) { if (listeners[i].listener != listener) { continue; } ... |
if (listeners != null && listeners.length != nListeners) { ListenerRecord[] newKids = new ListenerRecord[length]; System.arraycopy(listeners, 0, newKids, 0, nListeners); listeners = newKids; } | public void trimToSize() { if (listeners != null && listeners.length != nListeners) { ListenerRecord[] newKids = new ListenerRecord[length]; System.arraycopy(listeners, 0, newKids, 0, nListeners); listeners = newKids; } } | |
AWTEventMulticaster.add (adjustmentListener, listener); | if (listener == null) return; adjustmentListener = AWTEventMulticaster.add (adjustmentListener, listener); | public void addAdjustmentListener (AdjustmentListener listener) { AWTEventMulticaster.add (adjustmentListener, listener); } |
AWTEventMulticaster.remove (adjustmentListener, listener); | if (listener == null) return; adjustmentListener = AWTEventMulticaster.remove (adjustmentListener, listener); | public void removeAdjustmentListener (AdjustmentListener listener) { AWTEventMulticaster.remove (adjustmentListener, listener); } |
if (nt == Node.TEXT_NODE) | if (nt == Node.TEXT_NODE || nt == Node.CDATA_SECTION_NODE) | void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ... |
} else { String text = node.getNodeValue(); String stripped = text.trim(); if (!text.equals(stripped)) { node.setNodeValue(stripped); } | void strip(Node node) throws TransformerConfigurationException { short nt = node.getNodeType(); if (nt == Node.ENTITY_REFERENCE_NODE) { // Replace entity reference with its content Node parent = node.getParentNode(); Node child = node.getFirstChild(); if (child != null) ... | |
String cdataSectionElements = outputProperties.getProperty(OutputKeys.CDATA_SECTION_ELEMENTS); boolean indent = "yes".equals(outputProperties.getProperty(OutputKeys.INDENT)); | 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.... | |
if (cdataSectionElements != null) { List list = new LinkedList(); StringTokenizer st = new StringTokenizer(cdataSectionElements); while (st.hasMoreTokens()) { String name = st.nextToken(); String localName = name; String uri = null; String prefix = null; int ci = name.indexOf(':'); if (ci != -1) { prefix = name.subst... | 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.... | |
private static final CharsetProvider provider () | private static CharsetProvider provider () | private static final CharsetProvider provider () { return Provider.provider (); } |
TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) | TextNode(boolean disableOutputEscaping) | TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) { super(children, next); this.disableOutputEscaping = disableOutputEscaping; } |
super(children, next); | TextNode(TemplateNode children, TemplateNode next, boolean disableOutputEscaping) { super(children, next); this.disableOutputEscaping = disableOutputEscaping; } | |
return new TextNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), disableOutputEscaping); | TemplateNode ret = new TextNode(disableOutputEscaping); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; | TemplateNode clone(Stylesheet stylesheet) { return new TextNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), disableOutputEscaping); } |
private void writeObject(ObjectOutputStream value0) throws IOException | private void writeObject(ObjectOutputStream obj) throws IOException | private void writeObject(ObjectOutputStream value0) throws IOException { // TODO } |
public MessageFormat(String pattern) | private MessageFormat () | public MessageFormat(String pattern) { this(pattern, Locale.getDefault()); } |
this(pattern, Locale.getDefault()); | public MessageFormat(String pattern) { this(pattern, Locale.getDefault()); } | |
public int getIconHeight() { return 10; } | public int getIconHeight() { return 12; } | public int getIconHeight() { return 10; } |
public int getIconWidth() { return 10; } | public int getIconWidth() { return 12; } | public int getIconWidth() { return 10; } |
{ if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("CheckBox.highlight"); Color low = defaults.getColor("CheckBox.darkShadow"); Color sel = defaults.getColor("CheckBox.foreground"); Color dim = defaults.getColor("CheckBox.shadow"); Polyg... | { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.translate(-x, -y); } | public void paintIcon(Component c, Graphics g, int x, int y) { if (c instanceof AbstractButton) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("CheckBox.highlight"); Color low = def... |
return 12; | return 10; | public int getIconHeight() { return 12; } |
return 12; | return 10; | public int getIconWidth() { return 12; } |
UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel = defaults.getColor("RadioButton.foreground"); Color dim = defaults.getColor("RadioButton.shadow"); | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... | |
g.drawOval(x, y, 12, 12); | g.drawRect(x, y, 10, 10); | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... |
g.drawOval(x+1, y+1, 12, 12); | g.drawRect(x+1, y+1, 10, 10); | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... |
g.fillOval(x+4, y+4, 6, 6); | if (b.isSelected()) { g.drawLine(x+3, y+5, x+3, y+8); g.drawLine(x+4, y+5, x+4, y+8); g.drawLine(x+3, y+8, x+8, y+3); g.drawLine(x+4, y+8, x+8, y+3); } | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... |
g.fillOval(x+4, y+4, 6, 6); | { g.drawLine(x+3, y+5, x+3, y+9); g.drawLine(x+3, y+9, x+8, y+3); } | public void paintIcon(Component c, Graphics g, int x, int y) { UIDefaults defaults; defaults = UIManager.getLookAndFeelDefaults(); Color hi = defaults.getColor("RadioButton.highlight"); Color low = defaults.getColor("RadioButton.darkShadow"); Color sel =... |
public NotFoundHolder(NotFound initialValue) | public NotFoundHolder() | public NotFoundHolder(NotFound initialValue) { value = initialValue; } |
value = initialValue; | public NotFoundHolder(NotFound initialValue) { value = initialValue; } | |
public RTFParser(InputStream stream, Document doc, int pos) | private RTFParser(Document doc, int pos) | public RTFParser(InputStream stream, Document doc, int pos) { this(doc, pos); scanner = new RTFScanner(stream); } |
this(doc, pos); scanner = new RTFScanner(stream); | this.doc = doc; this.pos = pos; | public RTFParser(InputStream stream, Document doc, int pos) { this(doc, pos); scanner = new RTFScanner(stream); } |
if (progressListeners == null) progressListeners = new ArrayList (); | public void addIIOReadProgressListener(IIOReadProgressListener listener) { if (listener == null) return; progressListeners.add(listener); } | |
if (updateListeners == null) updateListeners = new ArrayList (); | public void addIIOReadUpdateListener(IIOReadUpdateListener listener) { if (listener == null) return; updateListeners.add(listener); } | |
if (warningListeners == null) warningListeners = new ArrayList (); | public void addIIOReadWarningListener(IIOReadWarningListener listener) { if (listener == null) return; warningListeners.add(listener); } | |
if (input == null) throw new IllegalStateException("input is null"); | public float getAspectRatio(int imageIndex) throws IOException { return (float) (getWidth(imageIndex) / getHeight(imageIndex)); } | |
} | protected void processImageComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.imageComplete (this); } } | |
} | protected void processImageProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.imageProgress(this, percentageDone); } } | |
} | protected void processImageStarted(int imageIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.imageStarted(this, imageIndex); } } | |
listener.imageUpdate(this, image, minX, minY, width, height, periodX, periodY, bands); | listener.imageUpdate(this, image, minX, minY, width, height, periodX, periodY, bands); } | protected void processImageUpdate(BufferedImage image, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listener.imageUpdate... |
} | protected void processPassComplete(BufferedImage image) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listener.passComplete(this, image); } } | |
listener.passStarted(this, image, pass, minPass, maxPass, minX, minY, periodX, periodY, bands); | listener.passStarted(this, image, pass, minPass, maxPass, minX, minY, periodX, periodY, bands); } | protected void processPassStarted(BufferedImage image, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listene... |
} | protected void processReadAborted() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.readAborted(this); } } | |
} | protected void processSequenceComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.sequenceComplete(this); } } | |
} | protected void processSequenceStarted(int minIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.sequenceStarted(this, minIndex); } } | |
} | protected void processThumbnailComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.thumbnailComplete(this); } } | |
} | protected void processThumbnailPassComplete(BufferedImage thumbnail) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listener.thumbnailPassComplete(this, thumbnail); } } | |
listener.thumbnailPassStarted(this, thumbnail, pass, minPass, maxPass, minX, minY, periodX, periodY, bands); | listener.thumbnailPassStarted(this, thumbnail, pass, minPass, maxPass, minX, minY, periodX, periodY, bands); } | protected void processThumbnailPassStarted(BufferedImage thumbnail, int pass, int minPass, int maxPass, int minX, int minY, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateLi... |
} | protected void processThumbnailProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.thumbnailProgress(this, percentageDone); } } | |
} | protected void processThumbnailStarted(int imageIndex, int thumbnailIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOReadProgressListener listener = (IIOReadProgressListener) it.next(); listener.thumbnailStarted(this, imageIndex, thumbnailIndex); } } | |
} | protected void processThumbnailUpdate(BufferedImage image, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands) { Iterator it = updateListeners.iterator(); while (it.hasNext()) { IIOReadUpdateListener listener = (IIOReadUpdateListener) it.next(); listener.thumbnailUpda... | |
Iterator it = warningListeners.iterator(); | if (warning == null) throw new IllegalArgumentException ("null argument"); if (warningListeners != null) { Iterator it = warningListeners.iterator(); | protected void processWarningOccurred(String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); } } |
while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); | while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); } | protected void processWarningOccurred(String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOReadWarningListener listener = (IIOReadWarningListener) it.next(); listener.warningOccurred(this, warning); } } |
progressListeners.clear(); | progressListeners = null; | public void removeAllIIOReadProgressListeners() { progressListeners.clear(); } |
updateListeners.clear(); | updateListeners = null; | public void removeAllIIOReadUpdateListeners() { updateListeners.clear(); } |
warningListeners.clear(); | warningListeners = null; | public void removeAllIIOReadWarningListeners() { warningListeners.clear(); } |
if (progressListeners != null) { | public void removeIIOReadProgressListener(IIOReadProgressListener listener) { if (listener == null) return; progressListeners.remove(listener); } | |
} | public void removeIIOReadProgressListener(IIOReadProgressListener listener) { if (listener == null) return; progressListeners.remove(listener); } | |
} | public void removeIIOReadUpdateListener(IIOReadUpdateListener listener) { if (listener == null) return; updateListeners.remove(listener); } | |
if (warningListeners != null) { | public void removeIIOReadWarningListener(IIOReadWarningListener listener) { if (listener == null) return; warningListeners.remove(listener); } | |
} | public void removeIIOReadWarningListener(IIOReadWarningListener listener) { if (listener == null) return; warningListeners.remove(listener); } | |
if (b.isFocusOwner()) | if (b.isFocusOwner() && b.isFocusPainted()) | 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); if (b.isBorderPainted()) SwingUtilities.calculateInnerArea(b, vr); ... |
AnySeqHolder h = new AnySeqHolder(); h._read(input); return h.value; | Any[] value = new Any[ input.read_long() ]; for (int i = 0; i < value.length; i++) { value [ i ] = input.read_any(); } return value; | public static Any[] read(InputStream input) { AnySeqHolder h = new AnySeqHolder(); h._read(input); return h.value; } |
AnySeqHolder h = new AnySeqHolder(value); h._write(output); | output.write_long(value.length); for (int i = 0; i < value.length; i++) { output.write_any(value [ i ]); } | public static void write(OutputStream output, Any[] value) { AnySeqHolder h = new AnySeqHolder(value); h._write(output); } |
final ArrayList list = new ArrayList(cnt); | final ArrayList<Class> list = new ArrayList<Class>(cnt); | public Class[] getExceptionTypes() { if (exceptionTypes == null) { final VmExceptions exceptions = vmMethod.getExceptions(); final int cnt = exceptions.getLength(); final ArrayList list = new ArrayList(cnt); for (int i = 0; i < cnt; i++) { list.add(exceptions.getException(i).getResolvedVmClass().asClass())... |
return getDeclaringClass().getName(); | final Class<?> declClass = getDeclaringClass(); return declClass.getName(); | public String getName() { return getDeclaringClass().getName(); } |
return getDeclaringClass().getName().hashCode(); | final Class<?> declClass = getDeclaringClass(); return declClass.getName().hashCode(); | public int hashCode() { return getDeclaringClass().getName().hashCode(); } |
sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); | final Class<?> declClass = getDeclaringClass(); sb.append(declClass.getName()).append('('); Class<?>[] c = getParameterTypes(); | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... |
for (int i = 1; i < c.length; i++) | for (int i = 1; i < c.length; i++) { | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... |
} | public String toString() { // 128 is a reasonable buffer initial size for constructor StringBuffer sb = new StringBuffer(128); Modifier.toString(getModifiers(), sb).append(' '); sb.append(getDeclaringClass().getName()).append('('); Class[] c = getParameterTypes(); if (c.length > 0) { sb.append(c[0].getName());... | |
Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; boolean controlPressed = event.isControlDown(); if (controlPressed) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) BasicListUI.this.list.setSelectedIndex(index); el... | public void mouseClicked(MouseEvent event) { } | |
Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; BasicListUI.this.list.setSelectedIndex(index); | public void mousePressed(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; BasicListUI.this.list.setSelectedIndex(index); } | |
keyListener = new KeyHandler(); | public BasicListUI() { focusListener = new FocusHandler(); listDataListener = new ListDataHandler(); listSelectionListener = new ListSelectionHandler(); mouseInputListener = new MouseInputHandler(); propertyChangeListener = new PropertyChangeHandler(); componentListener = new ComponentHandler(); ... | |
list.addKeyListener(keyListener); | protected void installListeners() { list.addFocusListener(focusListener); list.getModel().addListDataListener(listDataListener); list.addListSelectionListener(listSelectionListener); list.addMouseListener(mouseInputListener); list.addMouseMotionListener(mouseInputListener); list.addPropertyChangeLi... | |
list.removeKeyListener(keyListener); | protected void uninstallListeners() { list.removeFocusListener(focusListener); list.getModel().removeListDataListener(listDataListener); list.removeListSelectionListener(listSelectionListener); list.removeMouseListener(mouseInputListener); list.removeMouseMotionListener(mouseInputListener); list.re... | |
if (buffer instanceof DataBufferByte) return ((DataBufferByte) buffer).getData(); if (buffer instanceof DataBufferShort) return ((DataBufferShort) buffer).getData(); if (buffer instanceof DataBufferUShort) return ((DataBufferUShort) buffer).getData(); if (buffer instanceof DataBufferInt) return ((DataBufferInt) buff... | return getData(buffer, 0, null, 0, buffer.getSize()); | public static Object getData(DataBuffer buffer) { if (buffer instanceof DataBufferByte) return ((DataBufferByte) buffer).getData(); if (buffer instanceof DataBufferShort) return ((DataBufferShort) buffer).getData(); if (buffer instanceof DataBufferUShort) return ((DataBufferUShort) buffer).getData(); ... |
return mf.format(arguments, sb, fp).toString(); | return mf.formatInternal(arguments, sb, fp, null).toString(); | public static String format (String pattern, Object arguments[]) { MessageFormat mf = new MessageFormat (pattern); StringBuffer sb = new StringBuffer (); FieldPosition fp = new FieldPosition (NumberFormat.INTEGER_FIELD); return mf.format(arguments, sb, fp).toString(); } |
throw new IllegalArgumentException (); | throw new IllegalArgumentException("Failed to parse integer string"); | private static final int scanFormat (String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number. ... |
throw new IllegalArgumentException (); | throw new IllegalArgumentException("Missing '}' at end of message format"); | private static final int scanFormat (String pat, int index, StringBuffer buffer, Vector elts, Locale locale) { MessageFormatElement mfe = new MessageFormatElement (); elts.addElement(mfe); int max = pat.length(); // Skip the opening `{'. ++index; // Fetch the argument number. ... |
throw new IllegalArgumentException (); | throw new IllegalArgumentException("Found '}' without '{'"); | private static final int scanString (String pat, int index, StringBuffer buffer) { int max = pat.length(); buffer.setLength(0); for (; index < max; ++index) { char c = pat.charAt(index); if (c == '\'' && index + 2 < max && pat.charAt(index + 2) == '\'') { buffer.append(pat.charAt(index ... |
throw new IllegalArgumentException (); | throw new IllegalArgumentException("Not enough format objects"); | public void setFormats (Format[] newFormats) { if (newFormats.length < elements.length) throw new IllegalArgumentException (); int len = Math.min(newFormats.length, elements.length); for (int i = 0; i < len; ++i) elements[i].setFormat = newFormats[i]; } |
if (!isGuiActive()){ System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); startGui(); | if (!isGuiActive()) { throw new AWTError("AWT is currently not available"); | protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... |
if (!isGuiActive()){ System.err.println( "<SwingToolkit.createFrame> gui still not yet active after startGui(). We should abort here." ); | if (target instanceof DesktopFrame) { setTop(target); log.debug("createFrame:desktopFramePeer(" + target + ")"); return new DesktopFramePeer(this, target); } else { if (!isGuiActive()) { throw new AWTError("Gui is not active"); } log.debug("createFrame:normal(" + target + ")"); return new SwingFramePeer(this, desktop... | protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... |
if (target instanceof DesktopFrame) { setTop(target); log.debug("createFrame:desktopFramePeer(" + target + ")"); return new DesktopFramePeer(this, target); } else { if (!isGuiActive()) { throw new AWTError("Gui is not active"); } log.debug("createFrame:normal(" + target + ")"); return new SwingFramePeer(this, desktop... | } | protected FramePeer createFrame(Frame target) { if (!isGuiActive()){ //Automatically starts the gui if not yet started. This may be a bad idea. System.err.println( "<SwingToolkit.createFrame> gui was not yet active. Starting..." ); System.err.println( "Manually starting the gui..." ); ... |
divider.repaint(); | public void focusGained(FocusEvent ev) { // FIXME: implement. } | |
divider.repaint(); | public void focusLost(FocusEvent ev) { // FIXME: implement. } | |
InputMap keyMap = getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); SwingUtilities.replaceUIInputMap(splitPane, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, keyMap); ActionMap map = getActionMap(); SwingUtilities.replaceUIActionMap(splitPane, map); | protected void installKeyboardActions() throws NotImplementedException { // FIXME: implement. } | |
SwingUtilities.replaceUIActionMap(splitPane, null); SwingUtilities.replaceUIInputMap(splitPane, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null); | protected void uninstallKeyboardActions() throws NotImplementedException { // FIXME: implement. } | |
{ return false; } | { return ((highlight == null) || (highlight.getAlpha() == 255)) && ((shadow == null) || (shadow.getAlpha() == 255)); } | public boolean isBorderOpaque() { return false; } |
} | this(SwingConstants.TOP, WRAP_TAB_LAYOUT); } | public JTabbedPane() { } |
public void addTab(String name, Component panel) { addTab(name, null, panel, null); } | public void addTab(String title, Icon icon, Component component, String tip) { insertTab(title, icon, component, tip, tabs.size()); } | public void addTab(String name, Component panel) { addTab(name, null, panel, null); } |
{ return null; } | { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(this); return accessibleContext; } | public AccessibleContext getAccessibleContext() { return null; } |
public Component getComponentAt(int i) { Tab t = (Tab) tabs.elementAt(i); return t.tab; } | public Component getComponentAt(int index) { checkIndex(index, 0, tabs.size()); return ((Page) tabs.elementAt(index)).getComponent(); } | public Component getComponentAt(int i) { Tab t = (Tab) tabs.elementAt(i); return t.tab; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.