rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public short getType() { return type;
public int getType() { return Ext2Utils.get8(data, offset+7);
public short getType() { return type; }
static void updateComponentTreeUI(JFrame comp) { }
public static void updateComponentTreeUI(Component comp) { if (comp == null) return; if (comp instanceof Container) { Component[] children = ((Container)comp).getComponents(); for (int i = 0; i < children.length; ++i) updateComponentTreeUI(children[i]); } if (comp instanceof JComponent) ((JComponent)comp).updateUI();...
static void updateComponentTreeUI(JFrame comp) { }
return put((PrinterStateReason) reason, (Severity) severity);
return super.put((PrinterStateReason) reason, (Severity) severity);
public Object put(Object reason, Object severity) { if (reason == null) throw new NullPointerException("reason is null"); if (severity == null) throw new NullPointerException("severity is null"); return put((PrinterStateReason) reason, (Severity) severity); }
private void updateLFN() {
private void updateLFN() throws IOException{
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
int size = destination.size();
final int size = destination.size(); if(entries.size()<size){ if (!canChangeSize(size)) { throw new IOException("Directory is full"); } } boolean useAdd=false;
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
entries.set(i, destination.get(i));
if(!useAdd){ try{ entries.set(i, destination.get(i)); }catch(ArrayIndexOutOfBoundsException aEx){ useAdd=true; } } if(useAdd){ entries.add(i, destination.get(i)); }
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
int entireSize = entries.size();
final int entireSize = entries.size();
private void updateLFN() { //System.out.println("Update LFN"); Iterator allEntries = shortNameIndex.values().iterator(); Vector destination = new Vector(); while (allEntries.hasNext()) { LfnEntry currentEntry = (LfnEntry)allEntries.next(); FatBasicDirEntry[] encoded = currentEntry.compactForm(); for (int i =...
init();
public RasterGraphics(WritableRaster r, ColorModel cm) { raster = r; colorModel = cm; }
if (comp.parent != null) comp.parent.remove(comp); comp.parent = this; if (peer != null) { comp.addNotify();
if (comp.parent != null) comp.parent.remove(comp); comp.parent = this; if (peer != null) { comp.addNotify(); if (comp.isLightweight ()) { enableEvents (comp.eventMask); if (!isLightweight ()) enableEvents (AWTEvent.PAINT_EVENT_MASK); } }
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
if (comp.isLightweight()) enableEvents(comp.eventMask); }
invalidate();
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
invalidate();
if (component == null) component = new Component[4];
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
if (component == null) component = new Component[4];
if (ncomponents >= component.length) { int nl = component.length * 2; Component[] c = new Component[nl]; System.arraycopy(component, 0, c, 0, ncomponents); component = c; } if (index == -1) component[ncomponents++] = comp; else { System.arraycopy(component, index, component, index + 1, ncomponents - index); component[...
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
if (ncomponents >= component.length) { int nl = component.length * 2; Component[] c = new Component[nl]; System.arraycopy(component, 0, c, 0, ncomponents); component = c; }
if (layoutMgr != null) { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; lm2.addLayoutComponent(comp, constraints); } else if (constraints instanceof String) layoutMgr.addLayoutComponent((String) constraints, comp); else layoutMgr.addLayoutComponent(null, comp); }
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
if (index == -1) component[ncomponents++] = comp; else { System.arraycopy(component, index, component, index + 1, ncomponents - index); component[index] = comp; ++ncomponents; } if (layoutMgr != null) { if (layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; lm2.addLayoutComponent(...
ContainerEvent ce = new ContainerEvent(this, ContainerEvent.COMPONENT_ADDED, comp); getToolkit().getSystemEventQueue().postEvent(ce); } }
protected void addImpl(Component comp, Object constraints, int index) { synchronized (getTreeLock()) { if (index > ncomponents || (index < 0 && index != -1) || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf(this))) throw new IllegalArgumentException(); // Repar...
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); }
public void addNotify() { super.addNotify(); addNotifyContainerChildren(); }
public void addNotify() { addNotifyContainerChildren(); super.addNotify(); }
private void addNotifyContainerChildren() { synchronized (getTreeLock()) { for (int i = ncomponents; --i >= 0;) { component[i].addNotify(); if (component[i].isLightweight()) enableEvents(component[i].eventMask); } } }
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { if (! this.isLightweight() && dispatcher == null) { dispatcher = new LightweightDispatcher (this); dispatcher.enableEvents (component[i]....
private void addNotifyContainerChildren() { synchronized (getTreeLock()) { for (int i = ncomponents; --i >= 0;) { component[i].addNotify(); if (component[i].isLightweight()) enableEvents(component[i].eventMask); } } }
public void addPropertyChangeListener(PropertyChangeListener l) { }
public void addPropertyChangeListener (PropertyChangeListener listener) { if (listener == null) return; if (changeSupport == null) changeSupport = new PropertyChangeSupport (this); changeSupport.addPropertyChangeListener (listener); }
public void addPropertyChangeListener(PropertyChangeListener l) { }
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); }
public void applyComponentOrientation (ComponentOrientation orientation) { if (orientation == null) throw new NullPointerException (); }
public void applyComponentOrientation(ComponentOrientation o) { if (orientation == null) throw new NullPointerException(); }
public int countComponents() { return getComponentCount(); }
public int countComponents() { return ncomponents; }
public int countComponents() { return getComponentCount(); }
void dispatchEventImpl(AWTEvent e) { if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
void dispatchEventImpl(AWTEvent e) { if (dispatcher != null && dispatcher.handleEvent (e)) return; if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e);...
void dispatchEventImpl(AWTEvent e) { if ((e.id <= ContainerEvent.CONTAINER_LAST && e.id >= ContainerEvent.CONTAINER_FIRST) && (containerListener != null || (eventMask & AWTEvent.CONTAINER_EVENT_MASK) != 0)) processEvent(e); else super.dispatchEventImpl(e); }
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); }
public void doLayout() { layout (); }
public void doLayout() { if (layoutMgr != null) layoutMgr.layoutContainer(this); }
public Component getComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (component[i].contains(x2, y2)) return component[i]; } return t...
public Component getComponentAt(int x, int y) { return locate (x, y); }
public Component getComponentAt(int x, int y) { synchronized (getTreeLock()) { if (!contains(x, y)) return null; for (int i = 0; i < ncomponents; ++i) { // Ignore invisible children... if (!component[i].isVisible()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (comp...
public int getComponentCount() { return ncomponents; }
public int getComponentCount() { return countComponents (); }
public int getComponentCount() { return ncomponents; }
public Insets getInsets() { if (peer == null) return new Insets(0, 0, 0, 0); return ((ContainerPeer) peer).getInsets(); }
public Insets getInsets() { return insets (); }
public Insets getInsets() { if (peer == null) return new Insets(0, 0, 0, 0); return ((ContainerPeer) peer).getInsets(); }
public Dimension getMinimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize(this); else return super.getMinimumSize(); }
public Dimension getMinimumSize() { return minimumSize (); }
public Dimension getMinimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize(this); else return super.getMinimumSize(); }
public Dimension getPreferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize(this); else return super.getPreferredSize(); }
public Dimension getPreferredSize() { return preferredSize (); }
public Dimension getPreferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize(this); else return super.getPreferredSize(); }
public Insets insets() { return getInsets(); }
public Insets insets() { if (peer == null) return new Insets (0, 0, 0, 0); return ((ContainerPeer) peer).getInsets (); }
public Insets insets() { return getInsets(); }
public void layout() { doLayout(); }
public void layout() { if (layoutMgr != null) layoutMgr.layoutContainer (this); }
public void layout() { doLayout(); }
public Component locate(int x, int y) { return getComponentAt(x, y); }
public Component locate(int x, int y) { synchronized (getTreeLock ()) { if (!contains (x, y)) return null; for (int i = 0; i < ncomponents; ++i) { if (!component[i].isVisible ()) continue; int x2 = x - component[i].x; int y2 = y - component[i].y; if (component[i].contains (x2, y2)) return component[i]; } return this;...
public Component locate(int x, int y) { return getComponentAt(x, y); }
public Dimension minimumSize() { return getMinimumSize(); }
public Dimension minimumSize() { if (layoutMgr != null) return layoutMgr.minimumLayoutSize (this); else return super.minimumSize (); }
public Dimension minimumSize() { return getMinimumSize(); }
public void paint(Graphics g) { if (!isShowing()) return; super.paint(g); visitChildren(g, GfxPaintVisitor.INSTANCE, true); }
public void paint(Graphics g) { if (!isShowing()) return; visitChildren(g, GfxPaintVisitor.INSTANCE, false); }
public void paint(Graphics g) { if (!isShowing()) return; super.paint(g); visitChildren(g, GfxPaintVisitor.INSTANCE, true); }
public Dimension preferredSize() { return getPreferredSize(); }
public Dimension preferredSize() { if (layoutMgr != null) return layoutMgr.preferredLayoutSize (this); else return super.preferredSize (); }
public Dimension preferredSize() { return getPreferredSize(); }
public void setFocusTraversalKeys(int id, Set keys) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException(); }
public void setFocusTraversalKeys(int id, Set keystrokes) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException (); i...
public void setFocusTraversalKeys(int id, Set keys) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentException();...
public void validate() { synchronized (getTreeLock()) { if (!isValid()) { validateTree(); } } }
public void validate() { synchronized (getTreeLock ()) { if (! isValid() && peer != null) { validateTree(); } } }
public void validate() { synchronized (getTreeLock()) { if (!isValid()) { validateTree(); } } }
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds);
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle oldClip = gfx.getClipBounds(); if (oldClip == null) oldClip = bounds; Rectangle clip = oldClip.intersection(bounds);
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, bounds.y); visitor.visit(comp, gfx2); }
boolean clipped = false; boolean translated = false; try { gfx.setClip(clip.x, clip.y, clip.width, clip.height); clipped = true; gfx.translate(bounds.x, bounds.y); translated = true; visitor.visit(comp, gfx); } finally { if (translated) gfx.translate (-bounds.x, -bounds.y); if (clipped) gfx.setClip (oldClip.x, oldClip....
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, b...
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly);
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock ()) { for (int i = ncomponents - 1; i >= 0; --i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly && ! (comp instanceof Container));
private void visitChildren(Graphics gfx, GfxVisitor visitor, boolean lightweightOnly) { synchronized (getTreeLock()) { for (int i = 0; i < ncomponents; ++i) { Component comp = component[i]; boolean applicable = comp.isVisible() && (comp.isLightweight() || !lightweightOnly); if (applicable) visitChild(g...
LightweightDispatcher(Container c) { }
LightweightDispatcher(Container c) { nativeContainer = c; }
LightweightDispatcher(Container c) { }
void enableEvents(long l) { }
void enableEvents(long l) { eventMask |= l; }
void enableEvents(long l) { }
splitPane.setOpaque(true);
protected void installDefaults() { divider = createDefaultDivider(); resetLayoutManager(); nonContinuousLayoutDivider = createDefaultNonContinuousLayoutDivider(); splitPane.add(divider, JSplitPane.DIVIDER); // There is no need to add the nonContinuousLayoutDivider UIDefaults defaults = UIManager.ge...
MetalUtils.fillMetalPattern(g, thumbBounds.x + 3, thumbBounds.y + 3,
MetalUtils.fillMetalPattern(c, g, thumbBounds.x + 3, thumbBounds.y + 3,
protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) { // a disabled scrollbar has no thumb in the metal look and feel if (!c.isEnabled()) return; // first we fill the background g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, ...
if (progressListeners == null) progressListeners = new ArrayList ();
public void addIIOWriteProgressListener(IIOWriteProgressListener listener) { if (listener == null) return; progressListeners.add(listener); }
if (warningListeners == null) warningListeners = new ArrayList ();
public void addIIOWriteWarningListener (IIOWriteWarningListener listener) { if (listener == null) return; warningListeners.add(listener); }
}
protected void processImageComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageComplete(this); } }
}
protected void processImageProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageProgress(this, percentageDone); } }
}
protected void processImageStarted(int imageIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.imageStarted(this, imageIndex); } }
}
protected void processThumbnailComplete() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailComplete(this); } }
}
protected void processThumbnailProgress(float percentageDone) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailProgress(this, percentageDone); } }
}
protected void processThumbnailStarted(int imageIndex, int thumbnailIndex) { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.thumbnailStarted(this, imageIndex, thumbnailIndex); } }
}
protected void processWarningOccurred(int imageIndex, String warning) { Iterator it = warningListeners.iterator(); while (it.hasNext()) { IIOWriteWarningListener listener = (IIOWriteWarningListener) it.next(); listener.warningOccurred(this, imageIndex, warning); } }
}
protected void processWriteAborted() { Iterator it = progressListeners.iterator(); while (it.hasNext()) { IIOWriteProgressListener listener = (IIOWriteProgressListener) it.next(); listener.writeAborted(this); } }
}
public void removeAllIIOWriteProgressListeners() { progressListeners.clear(); }
}
public void removeAllIIOWriteWarningListeners() { progressListeners.clear(); }
if (progressListeners != null) {
public void removeIIOWriteProgressListener (IIOWriteProgressListener listener) { if (listener == null) return; progressListeners.remove(listener); }
}
public void removeIIOWriteProgressListener (IIOWriteProgressListener listener) { if (listener == null) return; progressListeners.remove(listener); }
if (warningListeners != null) {
public void removeIIOWriteWarningListener (IIOWriteWarningListener listener) { if (listener == null) return; warningListeners.remove(listener); }
}
public void removeIIOWriteWarningListener (IIOWriteWarningListener listener) { if (listener == null) return; warningListeners.remove(listener); }
public ImageWriteParam(Locale locale)
protected ImageWriteParam()
public ImageWriteParam(Locale locale) { this.locale = locale; }
this.locale = locale;
public ImageWriteParam(Locale locale) { this.locale = locale; }
PrivilegedAction a = new GetSystemPropertyAction("user.name");
PrivilegedAction a = new GetPropertyAction("user.name");
public void connect() throws IOException { if (connected) { return; } String host = url.getHost(); int port = url.getPort(); String username = url.getUserInfo(); String password = null; if (username != null) { int ci = username.indexOf(':'); if (ci != -1) ...
if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG)
if (fc.getDialogType() == JFileChooser.SAVE_DIALOG)
public String getApproveButtonText(JFileChooser fc) { if (fc.getApproveButtonText() != null) return fc.getApproveButtonText(); else if (fc.getDialogType() == JFileChooser.SAVE_DIALOG) return saveButtonText; else return openButtonText; }
if (fc.getFileView() != null) return fc.getFileView();
public FileView getFileView(JFileChooser fc) { if (fc.getFileView() != null) return fc.getFileView(); return fv; }
else if (datainput != null) input = new DataInputStreamWrapper(datainput);
public void startProduction (ImageConsumer ic) { if (!isConsumer(ic)) addConsumer(ic); Vector list = (Vector) consumers.clone (); try { // Create the input stream here rather than in the // ImageDecoder constructors so that exceptions cause // imageComplete to be called with an appropriate error ...
switch (source.getNodeType())
int sourceNodeType = source.getNodeType(); switch (sourceNodeType)
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
return null;
else { Node dst = null; switch (sourceNodeType) { case Node.ATTRIBUTE_NODE: { Attr src = (Attr) source; String nodeName = src.getNodeName(); String localName = src.getLocalName(); String namespaceUri = src.getNamespaceURI(); dst = (localName == null) ? createAttribute(nodeName) : createAttributeNS(namespaceUri, nodeNa...
public Node adoptNode(Node source) { switch (source.getNodeType()) { case DOCUMENT_NODE: case DOCUMENT_TYPE_NODE: throw new DomDOMException(DOMException.NOT_SUPPORTED_ERR); case ENTITY_NODE: case NOTATION_NODE: throw new DomDOMException(DOMException.NO_MODIFICATION_ALLOWED_E...
System.arraycopy(value, end, value, start, count - end);
VMSystem.arraycopy(value, end, value, start, count - end);
public synchronized StringBuffer delete(int start, int end) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); if (end > count) end = count; // This will unshare if required. ensureCapacity_unsynchronized(count); if (count - end != 0) Syst...
System.arraycopy(value, 0, nb, 0, count);
VMSystem.arraycopy(value, 0, nb, 0, count);
private void ensureCapacity_unsynchronized(int minimumCapacity) { if (shared || minimumCapacity > value.length) { // We don't want to make a larger vector when `shared' is // set. If we do, then setLength becomes very inefficient // when repeatedly reusing a StringBuffer in a loop. ...
System.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset);
VMSystem.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset);
public synchronized void getChars(int srcOffset, int srcEnd, char[] dst, int dstOffset) { if (srcOffset < 0 || srcEnd > count || srcEnd < srcOffset) throw new StringIndexOutOfBoundsException(); System.arraycopy(value, srcOffset, dst, dstOffset, srcEnd - srcOffset); }
System.arraycopy(value, offset, value, offset + len, count - offset); System.arraycopy(str, str_offset, value, offset, len);
VMSystem.arraycopy(value, offset, value, offset + len, count - offset); VMSystem.arraycopy(str, str_offset, value, offset, len);
public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) { if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchroni...
System.arraycopy(value, end, value, end + delta, count - end);
VMSystem.arraycopy(value, end, value, end + delta, count - end);
public synchronized StringBuffer replace(int start, int end, String str) { if (start < 0 || start > count || start > end) throw new StringIndexOutOfBoundsException(start); int len = str.count; // Calculate the difference in 'count' after the replace. int delta = len - (end > count ? count : end) + s...
types[i] = override;
types[j] = override;
private void resolveNeutralTypes() { // This implements rules N1 and N2. final int runCount = getRunCount(); int previousLevel = baseEmbedding; for (int run = 0; run < runCount; ++run) { int start = getRunStart(run); int end = getRunLimit(run); int level = getRunLevel(run); ...
int multiplier = 1; if(size.endsWith("T")) {
long multiplier = 1; if(size.endsWith("B")) size = size.substring(0, size.length() - 1); if(size.endsWith("T")) {
public static long getSize(String size) { if((size == null) || size.trim().equals("")) return 0; int multiplier = 1; if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) { ...
return String.valueOf(v) + "b";
return String.valueOf(v) + "B";
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
return String.valueOf(v) + "K";
return String.valueOf(v) + "KB";
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
return String.valueOf(v) + "M";
return String.valueOf(v) + "MB";
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
return String.valueOf(v) + "G";
return String.valueOf(v) + "GB";
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
return String.valueOf(v) + "T";
return String.valueOf(v) + "TB";
public static String size(long v) { // Is < 1Kb? if (v < K) { return String.valueOf(v) + "b"; } // Is < 1Mb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "K"; } // Is < 1Gb? v = v >>> 10; if (v < K) { return String.valueOf(v) + "M"; } // ...
if (status != null)
if (status != null) {
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
}
public boolean desiredAssertionStatus() { ClassLoader c = getClassLoader(); Object status; if (c == null) return VMClassLoader.defaultAssertionStatus(); if (c.classAssertionStatus != null) synchronized (c) { status = c.classAssertionStatus.get(getName...
public final VmMethod getDeclaredMethod(String name, String signature) { return getMethod(name, signature, true, false, VmMember.calcHashCode( name, signature));
public final VmMethod getDeclaredMethod(int index) { return methodTable[ index];
public final VmMethod getDeclaredMethod(String name, String signature) { return getMethod(name, signature, true, false, VmMember.calcHashCode( name, signature)); }
public final VmField getDeclaredField(String name) { return getDeclaredField(name, null);
public final VmField getDeclaredField(int index) { return fieldTable[ index];
public final VmField getDeclaredField(String name) { return getDeclaredField(name, null); }
public NoSuchFieldException(String s)
public NoSuchFieldException()
public NoSuchFieldException(String s) { super(s); }
super(s);
public NoSuchFieldException(String s) { super(s); }
public final VmMethod getMethod(String name, VmType[] argTypes) { return getMethod(name, argTypes, false);
final VmMethod getMethod(String name, String signature, boolean onlyThisClass, boolean searchInterfaces, int hashCode) { final VmMethod[] mt = this.methodTable; if (mt != null) { final int count = mt.length; for (int i = 0; i < count; i++) { final VmMethod mts = mt[ i]; int mtsHashCode = mts.getMemberHashCode(); if (...
public final VmMethod getMethod(String name, VmType[] argTypes) { return getMethod(name, argTypes, false); }
if (dispatchThread == null || !dispatchThread.isAlive()) { System.out .println("Start new dispatchThread old=" + dispatchThread);
if (dispatchThread == null || !dispatchThread.isAlive()) {
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* * Check for any events already on the queue with the same source and * ID. */...
setPriority(NORM_PRIORITY + 1);
EventDispatchThread(EventQueue queue) { super(); setName("AWT-EventQueue-" + ++dispatchThreadNum); this.queue = queue;// setPriority(NORM_PRIORITY + 1); }
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions)
public InvocationEvent(Object source, Runnable runnable)
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions);
this(source, INVOCATION_DEFAULT, runnable, null, false);
public InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchExceptions) { this(source, INVOCATION_DEFAULT, runnable, notifier, catchExceptions); }
return (password);
return password;
public char[] getPassword() { return (password); }
return (username);
return username;
public String getUserName() { return (username); }
return (index == -1);
return (index != -1);
public boolean isSelected () { return (index == -1); }
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null;
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; }
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null; }
return null; }
AbstractButton FindButton(ButtonModel m) { for (int i = 0; i < v.size(); i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel() == m) { return a; } } return null; }
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; }
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) {
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
if (sel != null) {
System.out.println("DESELECTING: " + sel); sel.setSelected(!b);
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel); if (but != null) { System.out.println("REPAINT-REQUIST: " + but.text); but.repaint(); } } else { System.out.println("NO SELECTION YET"); } sel = m; }
AbstractButton but = FindButton(sel); if (but != null) { System.out.println("REPAINT-REQUIST: " + but.text); but.repaint(); } } else { System.out.println("NO SELECTION YET"); } sel = m; }
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel=" + sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = FindButton(sel);...
public abstract boolean addEntry(Principal caller, AclEntry entry)
boolean addEntry(Principal caller, AclEntry entry)
public abstract boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException;
public abstract boolean checkPermission(Principal user, Permission perm);
boolean checkPermission(Principal user, Permission perm);
public abstract boolean checkPermission(Principal user, Permission perm);
public abstract Enumeration entries();
Enumeration entries();
public abstract Enumeration entries();
public abstract String getName();
String getName();
public abstract String getName();