rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public boolean isBorderOpaque() { return false; }
public boolean isBorderOpaque () { if ((insideBorder == null) || (outsideBorder == null)) return false; return insideBorder.isBorderOpaque() && outsideBorder.isBorderOpaque(); }
public boolean isBorderOpaque() { return false; }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { if (outsideBorder != null)
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
if (insideBorder != null) insideBorder.paintBorder(c, g, x, y, width, height); }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
break;
public boolean emit(String mnemonic, List operands, int operandSize) { this.operands = operands; Integer key = (Integer) INSTRUCTION_MAP.get(mnemonic); if (key == null) return false; switch (key.intValue()) { case BITS_ISN: emitBITS(); case DB_ISN: ...
throws InconsistentTypeCode
public DynAny create_basic_dyn_any(org.omg.CORBA.TypeCode t) { throw new NO_IMPLEMENT(); };
throws InconsistentTypeCode
public DynArray create_dyn_array(org.omg.CORBA.TypeCode t) { throw new NO_IMPLEMENT(); };
throws InconsistentTypeCode
public DynEnum create_dyn_enum(org.omg.CORBA.TypeCode t) { throw new NO_IMPLEMENT(); };
throws InconsistentTypeCode
public DynSequence create_dyn_sequence(org.omg.CORBA.TypeCode t) { throw new NO_IMPLEMENT(); };
throws InconsistentTypeCode
public DynStruct create_dyn_struct(org.omg.CORBA.TypeCode t) { throw new NO_IMPLEMENT(); };
throws InconsistentTypeCode
public DynUnion create_dyn_union(org.omg.CORBA.TypeCode t) { throw new NO_IMPLEMENT(); };
throws PolicyError
public Policy create_policy(int type, Any value) { throw new NO_IMPLEMENT(); }
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progressBar.setBorder(defaults.getBorder("ProgressBar.bord...
LookAndFeel.installColorsAndFont(progressBar, "ProgressBar.background", "ProgressBar.foreground", "ProgressBar.font"); LookAndFeel.installBorder(progressBar, "ProgressBar.border");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
selectionForeground = defaults.getColor("ProgressBar.selectionForeground"); selectionBackground = defaults.getColor("ProgressBar.selectionBackground"); cellLength = defaults.getInt("ProgressBar.cellLength"); cellSpacing = defaults.getInt("ProgressBar.cellSpacing");
selectionForeground = UIManager.getColor("ProgressBar.selectionForeground"); selectionBackground = UIManager.getColor("ProgressBar.selectionBackground"); cellLength = UIManager.getInt("ProgressBar.cellLength"); cellSpacing = UIManager.getInt("ProgressBar.cellSpacing");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
int repaintInterval = defaults.getInt("ProgressBar.repaintInterval"); int cycleTime = defaults.getInt("ProgressBar.cycleTime");
int repaintInterval = UIManager.getInt("ProgressBar.repaintInterval"); int cycleTime = UIManager.getInt("ProgressBar.cycleTime");
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); progressBar.setFont(defaults.getFont("ProgressBar.font")); progressBar.setForeground(defaults.getColor("ProgressBar.foreground")); progressBar.setBackground(defaults.getColor("ProgressBar.background")); progre...
doInput = true;
public Connection(URL url) { super (url); // @classpath-bugfix /* Set up some variables */ doInput = true; permission = new FilePermission(getURL().getFile(), DEFAULT_PERMISSION); }
} else { if (doInput) { inputStream = new ByteArrayInputStream(getDirectoryListing()); } if (doOutput) throw new ProtocolException ("file: protocol does not support output on directories"); }
public void connect() throws IOException { // Call is ignored if already connected. if (connected) return; // If not connected, then file needs to be openned. file = new File (getURL().getFile()); if (doInput) inputStream = new BufferedInputStream(new FileInputStream(file)); if (d...
if (file.isDirectory()) { return getDirectoryListing().length; }
public int getContentLength() { try { if (!connected) connect(); return (int) file.length(); } catch (IOException e) { return -1; } }
throws IOException, NotImplementedException
throws IOException
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { // FIXME: Not implemented }
Enumeration e = a.getAttributeNames(); while (e.hasMoreElements()) { Object oldKey = e.nextElement(); Object newKey = getStaticAttribute(oldKey); Object key = (newKey == null) ? oldKey : newKey; out.writeObject(key); out.writeObject(a.getAttribute(oldKey)); } out.writeObject(null); out.writeObject(null);
public static void writeAttributeSet(ObjectOutputStream out, AttributeSet a) throws IOException, NotImplementedException { // FIXME: Not implemented }
public InvalidAddressHolder(InvalidAddress initialValue)
public InvalidAddressHolder()
public InvalidAddressHolder(InvalidAddress initialValue) { value = initialValue; }
value = initialValue;
public InvalidAddressHolder(InvalidAddress initialValue) { value = initialValue; }
LongSeqHolder h = new LongSeqHolder(); h._read(input); return h.value;
int[] value = new int[ input.read_long() ]; input.read_long_array(value, 0, value.length); return value;
public static int[] read(InputStream input) { LongSeqHolder h = new LongSeqHolder(); h._read(input); return h.value; }
LongSeqHolder h = new LongSeqHolder(value); h._write(output);
output.write_long(value.length); output.write_long_array(value, 0, value.length);
public static void write(OutputStream output, int[] value) { LongSeqHolder h = new LongSeqHolder(value); h._write(output); }
else if (tag.equals(HTML.Tag.IMG)) view = new ImageView(element);
public View create(Element element) { View view = null; Object attr = element.getAttributes().getAttribute(StyleConstants.NameAttribute); if (attr instanceof HTML.Tag) { HTML.Tag tag = (HTML.Tag) attr; if (tag.equals(HTML.Tag.IMPLIED) || tag.equals(HTML.Tag.P) ...
if (list.size() == 0) { list.add(object); selectedItem = object; fireContentsChanged(this, -1, -1); } else { list.add(object); fireIntervalAdded(this, list.size() - 1, list.size() - 1); }
list.add(object); fireIntervalAdded(this, list.size() - 1, list.size() - 1); if (list.size() == 1) setSelectedItem(object);
public void addElement(Object object) { if (list.size() == 0) { list.add(object); selectedItem = object; fireContentsChanged(this, -1, -1); } else { list.add(object); fireIntervalAdded(this, list.size() - 1, list.size() - 1); } }
super(command);
public TransferAction(String command) { this.command = command; }
proc.disableReschedule();
proc.disableReschedule(false);
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
proc.enableReschedule();
proc.enableReschedule(false);
public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;...
"SplitPane.darkShadow", new ColorUIResource(getControlDarkShadow()), "SplitPane.highlight", new ColorUIResource(getControlHighlight()),
protected void initComponentDefaults(UIDefaults defaults) { super.initComponentDefaults(defaults); Object[] myDefaults = new Object[] { "Button.background", new ColorUIResource(getControl()), "Button.border", MetalBorders.getButtonBorder(), "Button.darkShadow", new ColorUIResource(getControlDark...
throw new IOException("BlockDeviceAPI not found on device", ex);
final IOException ioe = new IOException("BlockDeviceAPI not found on device"); ioe.initCause(ex); throw ioe;
protected void formatDevice(Device device) throws IOException { /* Format the MBR & partitiontable */ GrubBootSector mbr = (GrubBootSector) (createFormatter() .getBootSector()); mbr.getPartition(0).clear(); mbr.getPartition(1).clear(); mbr.getPartition(2).clear(); ...
return null;
if (accessibleContext == null) accessibleContext = new AccessibleJMenuBar(); return accessibleContext;
public AccessibleContext getAccessibleContext() { return null; }
private void makeTabs(AbstractColorChooserPanel[] panels)
void makeTabs(AbstractColorChooserPanel[] panels)
private void makeTabs(AbstractColorChooserPanel[] panels) { pane.removeAll(); for (int i = 0; i < panels.length; i++) pane.addTab(panels[i].getDisplayName(), panels[i].getSmallDisplayIcon(), panels[i]); }
private void updatePreviewPanel(JComponent preview)
void updatePreviewPanel(JComponent preview)
private void updatePreviewPanel(JComponent preview) { if (prevContainer == null) { prevContainer = new JPanel(); prevContainer.setLayout(new BorderLayout()); chooser.add(prevContainer, BorderLayout.CENTER); } prevContainer.removeAll(); prevContainer.add(preview, BorderLayout.CENTER); }
else { String oldText = this.getText(); this.setText(" "); Dimension d = super.getPreferredSize(); this.setText(oldText); return d; }
public Dimension getPreferredSize() { return super.getPreferredSize(); }
synchronized (sc.getTreeLock ()) {
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
Point viewPos = viewport.getViewPosition();
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
x3 = x4 - vsb.getPreferredSize().width; y3 = y4 - hsb.getPreferredSize().height;
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
&& viewSize.height > (y3 - y2)));
&& viewSize.height > (y4 - y2)));
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
&& viewSize.width > (x3 - x2)));
&& viewSize.width > (x4 - x2)));
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
}
public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { JViewport viewport = sc.getViewport(); Dimension viewSize = viewport.getViewSize(); Point view...
if (parent instanceof JScrollPane)
if (parent != null && parent instanceof JScrollPane)
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0...
Dimension viewportSize = viewport.getMinimumSize(); int width = viewportSize.width; int height = viewportSize.height; if (hsb != null && hsb.isVisible()) height += hsb.getMinimumSize().height; if (vsb != null && vsb.isVisible()) width += vsb.getMinimumSize().width; if (rowHead != null && rowHead.isVisible()) width += r...
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
} else {
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
}
public Dimension minimumLayoutSize(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); ...
synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dimension(0,0); Dimension viewportInsetsSize = new Dimension(0,0); Dimension columnHeaderSize = new Dimension(0,0); Dimension rowHeaderSize = new Dimension(0,0); Dimension verticalScrollBarSize = new Dimension(0,0...
Dimension viewportSize = viewport.getPreferredSize(); int width = viewportSize.width; int height = viewportSize.height; if (hsb != null && hsb.isVisible()) height += hsb.getPreferredSize().height; if (vsb != null && vsb.isVisible()) width += vsb.getPreferredSize().width; if (rowHead != null && rowHead.isVisible()) widt...
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
else {
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
}
public Dimension preferredLayoutSize(Container parent) { if (parent != null && parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Dimension insetsSize = new Dimension(0,0); Dimension viewportSize = new Dime...
return (scheme != null);
return scheme != null;
public boolean isAbsolute() { return (scheme != null); }
} finally { debug--;
public static Address findThrowableHandler(Throwable ex, Address frame, Address address) throws PrivilegedActionPragma { try { if (ex == null) { Unsafe.debug("NPE"); throw new NullPointerException(); } if (frame == null) { ...
public static void setErr(PrintStream err) {
public static void setErr(PrintStream err) throws PrivilegedActionPragma {
public static void setErr(PrintStream err) { setStaticField(System.class, "err", err); }
public static void setOut(PrintStream out) {
public static void setOut(PrintStream out) throws PrivilegedActionPragma {
public static void setOut(PrintStream out) { setStaticField(System.class, "out", out); }
if (comp == rootPane)
if (!initStageDone)
protected void addImpl(Component comp, Object constraints, int index) { // If we're adding the rootPane (initialization stages) use super.add. // Otherwise pass the add onto the content pane. if (comp == rootPane) super.addImpl(comp, constraints, index); else { if (isRootPaneCheckingEna...
Component focusOwner = getGlobalPermanentFocusOwner ();
Component focusOwner = getFocusOwner(); if (focusOwner == null) focusOwner = getFocusedWindow();
public boolean dispatchKeyEvent (KeyEvent e) { Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) redispatchEvent(focusOwner, e); // Loop through all registered KeyEventPostProcessors, giving // each a chance to process this event. Iterator i = getKeyEventPostProcesso...
public InetAddress[] getHostByName(String hostname)
public byte[][] getHostByName(String hostname)
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
list.add(pa.toInetAddress());
list.add(pa.toByteArray());
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
if (list == null) { return null;
if ((list == null) || list.isEmpty()) { throw new UnknownHostException(hostname);
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
return (InetAddress[])list.toArray(new InetAddress[list.size()]);
return (byte[][])list.toArray(new byte[list.size()][]);
public InetAddress[] getHostByName(String hostname) throws UnknownHostException { ArrayList list = null; for (Iterator i = nlm.getNetworkLayers().iterator(); i.hasNext(); ) { final NetworkLayer layer = (NetworkLayer)i.next(); final ProtocolAddress[] addrs = layer.getHo...
public static Pattern compile(String regex)
public static Pattern compile (String regex) throws PatternSyntaxException
public static Pattern compile(String regex) { throw new InternalError("Not implemented yet"); }
throw new InternalError("Not implemented yet");
return compile(regex, 0);
public static Pattern compile(String regex) { throw new InternalError("Not implemented yet"); }
throw new InternalError("Not implemented yet");
return new Matcher(this, input);
public Matcher matcher(CharSequence input) { throw new InternalError("Not implemented yet"); }
throw new InternalError("Not implemented yet");
return compile(regex).matcher(input).matches();
public static boolean matches(String regex, CharSequence input) { throw new InternalError("Not implemented yet"); }
public String[] split(CharSequence input, int limit)
public String[] split (CharSequence input)
public String[] split(CharSequence input, int limit) { throw new InternalError("Not implemented yet"); }
throw new InternalError("Not implemented yet");
return split(input, 0);
public String[] split(CharSequence input, int limit) { throw new InternalError("Not implemented yet"); }
throw new Error("not implemented");
return new ChannelReader(ch, dec, minBufferCap);
public static Reader newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap) { throw new Error("not implemented"); }
mediaCache.add(this);
public MediaSize(float x, float y, int units) { super(x, y, units); }
if (end != toRec.getEndOffset()) { recreateLeaves(end, toRec, onlyContent); if (onlyContent) edit.addRemovedElement(target); }
private void insertContentTag(ElementSpec tag) { BranchElement paragraph = (BranchElement) elementStack.peek(); int len = tag.getLength(); int dir = tag.getDirection(); AttributeSet tagAtts = tag.getAttributes(); if (dir == ElementSpec.JoinNextDirection) { int index...
case TC_ENUM: { if (dump) dumpElementln("ENUM="); ObjectStreamClass osc = (ObjectStreamClass) readObject(); String constantName = (String) readObject(); if (dump) dumpElementln("CONSTANT NAME = " + constantName); Class clazz = osc.forClass(); Enum instance = Enum.valueOf(clazz, constantName); assignNewHandle(instance)...
private Object parseContent(byte marker) throws ClassNotFoundException, IOException { Object ret_val; boolean is_consumed = false; switch (marker) { case TC_ENDBLOCKDATA: { ret_val = null; is_consumed = true; break; } case TC_BLOCKDATA: case TC_BLOCKDATALONG: {...
catch (InvocationTargetException ignore)
catch (InvocationTargetException exception)
private Object processResolution(ObjectStreamClass osc, Object obj, int handle) throws IOException { if (osc != null && obj instanceof Serializable) { try { Method m = osc.readResolveMethod; if(m != null) { obj = m.invoke(obj, new Object[] {}); } } catch (IllegalAccessException ignor...
Throwable cause = exception.getCause(); if (cause instanceof ObjectStreamException) throw (ObjectStreamException) cause; else if (cause instanceof RuntimeException) throw (RuntimeException) cause; else if (cause instanceof Error) throw (Error) cause;
private Object processResolution(ObjectStreamClass osc, Object obj, int handle) throws IOException { if (osc != null && obj instanceof Serializable) { try { Method m = osc.readResolveMethod; if(m != null) { obj = m.invoke(obj, new Object[] {}); } } catch (IllegalAccessException ignor...
ClassLoader callersClassLoader = currentLoader();
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
new ObjectStreamField(field_name, class_name, callersClassLoader);
new ObjectStreamField(field_name, class_name);
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
while (Serializable.class.isAssignableFrom(first_nonserial) || Modifier.isAbstract(first_nonserial.getModifiers()))
while (Serializable.class.isAssignableFrom(first_nonserial))
protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { if(dump) dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); if(dump) dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); if(dump) dumpElement(Long.toHexSt...
readNextBlock(this.realInputStream.readByte());
byte marker = this.realInputStream.readByte(); while (marker == TC_RESET) { if(dump) dumpElementln("RESET"); clearHandles(); marker = this.realInputStream.readByte(); } readNextBlock(marker);
private void readNextBlock() throws IOException { readNextBlock(this.realInputStream.readByte()); }
String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname, algorithm, p[i]);
return getInstance(algorithm, p[i]);
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
catch (NoSuchAlgorithmException ignored) {}
public static AlgorithmParameters getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { String classname = p[i].getProperty("AlgorithmParameters." + algorithm); if (classname != null) return getInstance(classname...
if (!this.isLightweight() && dispatcher == null) dispatcher = new LightweightDispatcher (this); if (dispatcher != null) dispatcher.enableEvents(component[i].eventMask);
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
public GroupDescriptor(byte src[]) { data = new byte[src.length]; System.arraycopy(src, 0, data, 0, src.length);
public GroupDescriptor(int groupNr, Ext2FileSystem fs) throws IOException{ byte[] blockData = fs.getBlock( fs.getSuperblock().getFirstDataBlock() + 1); byte[] data = new byte[GROUPDESCRIPTOR_LENGTH]; System.arraycopy(blockData, 0, data, 0, GROUPDESCRIPTOR_LENGTH); this.groupNr = groupNr; this.fs = fs; setDirty(false);...
public GroupDescriptor(byte src[]) { data = new byte[src.length]; System.arraycopy(src, 0, data, 0, src.length); }
String string = null; if (source instanceof Component) string = getClass ().getName () + "[" + paramString () + "] on " + ((Component) source).getName (); else if (source instanceof MenuComponent) string = getClass ().getName () + "[" + paramString () + "] on " + ((MenuComponent) source).getName (); else string = getC...
String string = getClass ().getName () + "[" + paramString () + "] on "
public String toString () { String string = null; if (source instanceof Component) string = getClass ().getName () + "[" + paramString () + "] on " + ((Component) source).getName (); else if (source instanceof MenuComponent) string = getClass ().getName () + "[" + paramString () + "] on " ...
if (next == root)
if (next == root.getParentNode())
private Node successor(Node here, boolean forward) { Node next; // the "leftmost" end is funky if (here == null) { return forward ? root : null; } // // Forward, this is preorder: children before siblings. // Backward, it's postorder: we saw the children already. // if (forwa...
private IconvProvider()
public IconvProvider()
private IconvProvider() { IconvMetaData.setup(); }
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping)
ValueOfNode(Expr select, boolean disableOutputEscaping)
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping) { super(children, next); this.select = select; this.disableOutputEscaping = disableOutputEscaping; }
super(children, next);
ValueOfNode(TemplateNode children, TemplateNode next, Expr select, boolean disableOutputEscaping) { super(children, next); this.select = select; this.disableOutputEscaping = disableOutputEscaping; }
return new ValueOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet),
TemplateNode ret = new ValueOfNode(select.clone(stylesheet),
TemplateNode clone(Stylesheet stylesheet) { return new ValueOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet), ...
if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret;
TemplateNode clone(Stylesheet stylesheet) { return new ValueOfNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), select.clone(stylesheet), ...
String value = Expr._string(context, ret);
String value; if (ret instanceof Collection) { StringBuffer buf = new StringBuffer(); for (Iterator i = ((Collection) ret).iterator(); i.hasNext(); ) { Node node = (Node) i.next(); buf.append(Expr.stringValue(node)); } value = buf.toString(); } else { value = Expr._string(context, ret); }
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Object ret = select.evaluate(context, pos, len); String value = Expr._string(context, ret); //System.err.println("value-of: "+context+" "+ s...
ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); }
ic.setHints(ImageConsumer.TOPDOWNLEFTRIGHT); if (props != null) ic.setProperties(props);
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ic.setPixels( 0, 0, width, height, cm, pixelb, offset, scansize ); }
if (pixeli != null) ic.setPixels(0, 0, width, height, cm, pixeli, offset, scansize); else ic.setPixels(0, 0, width, height, cm, pixelb, offset, scansize);
private void sendPicture ( ImageConsumer ic ) { ic.setHints( ImageConsumer.TOPDOWNLEFTRIGHT ); if( props != null ) { ic.setProperties( props ); } ic.setDimensions(width, height); ic.setColorModel(cm); if( pixeli != null ) { ic.setPixels( 0, 0, width, height, cm, pixeli, offset, scansize ); } else { ...
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) {
public void startProduction(ImageConsumer ic) { if (! (consumers.contains(ic)))
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
}
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE );
sendPicture(ic); if (animated) ic.imageComplete(ImageConsumer.SINGLEFRAME); else ic.imageComplete(ImageConsumer.STATICIMAGEDONE);
public void startProduction(ImageConsumer ic) { if (!(consumers.contains(ic))) { consumers.addElement(ic); } Vector list = (Vector) consumers.clone(); for(int i = 0; i < list.size(); i++) { ic = (ImageConsumer) list.elementAt(i); sendPicture( ic ); ic.imageComplete( ImageConsumer.STATICIMAGEDONE ); } }
{
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ChooseNode(); 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 ChooseNode(); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; }
StringBuffer buf = new StringBuffer(getClass().getName());
StringBuffer buf = new StringBuffer("choose");
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append(']'); return buf.toString(); }
SwingUtilities.calculateInnerArea(m, br); SwingUtilities.calculateInsetArea(br, m.getInsets(), vr);
SwingUtilities.calculateInnerArea(m, vr);
protected void paintMenuItem(Graphics g, JComponent c, Icon checkIcon, Icon arrowIcon, Color background, Color foreground, int defaultTextIconGap) { JMenuItem m = (JMenuItem) c; Rectangle tr = new Rectangle(); // text rectangle Rectangle ir = new R...
cls = loader.loadClass(className).getVmClass();
final Class<?> javaType = loader.loadClass(className); cls = javaType.getVmClass();
public final VmType loadClass(String className, boolean resolve) throws ClassNotFoundException, PrivilegedActionPragma { final VmType<?> cls; if (className.charAt(0) == '[') { cls = loadArrayClass(className, resolve); addLoadedClass(className, cls); } else { ...
keys = new HashSet (); selected = new HashSet ();
keys = new HashSet<SelectionKey> (); selected = new HashSet<SelectionKey> ();
public SelectorImpl (SelectorProvider provider) { super (provider); keys = new HashSet (); selected = new HashSet (); }
Set ckeys = cancelledKeys ();
Set<SelectionKey> ckeys = cancelledKeys ();
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } }
Iterator it = ckeys.iterator();
Iterator<SelectionKey> it = ckeys.iterator();
private final void deregisterCancelledKeys() { Set ckeys = cancelledKeys (); synchronized (ckeys) { Iterator it = ckeys.iterator(); while (it.hasNext ()) { keys.remove ((SelectionKeyImpl) it.next ()); it.remove (); } } }
Iterator it = keys.iterator ();
Iterator<SelectionKey> it = keys.iterator ();
private final int[] getFDsAsArray (int ops) { int[] result; int counter = 0; Iterator it = keys.iterator (); // Count the number of file descriptors needed while (it.hasNext ()) { SelectionKeyImpl key = (SelectionKeyImpl) it.next (); if ((key.interestOps () & ops) != 0) { ...
public final Set keys()
public final Set<SelectionKey> keys()
public final Set keys() { if (!isOpen()) throw new ClosedSelectorException(); return Collections.unmodifiableSet (keys); }