rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return (ElementChange) changes.get(elem); | return (DocumentEvent.ElementChange) changes.get(elem); | public ElementChange getChange(Element elem) { return (ElementChange) changes.get(elem); } |
if (ret_type == void.class) | if (ret_type == void.class) { code_length++; | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... |
if (ret_type == void.class) | if (ret_type == void.class) { putU1(POP); | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... |
else if (ret_type.isPrimitive()) { | } else if (ret_type.isPrimitive()) { | private void emitMethod(int i, Class[] e) { // First, we precalculate the method length and other information. Method m = methods[i]; Class[] paramtypes = m.getParameterTypes(); int wrap_overhead = 0; // max words taken by wrapped primitive int param_count = 1; //... |
catch (ClassNotFoundException e) { throw new IllegalArgumentException("not accessible in " + "classloader: " + inter); } if (! Modifier.isPublic(inter.getModifiers())) if (in_package) { String p = getPackage(inter); if (! data.pack.equals(p)) throw new IllegalArgumentException("non-public interfaces " + "from different... | if (!Modifier.isPublic(inter.getModifiers())) if (in_package) { String p = getPackage(inter); if (!data.pack.equals(p)) throw new IllegalArgumentException( "non-public interfaces " + "from different " + "packages"); } else { in_package = true; data.pack = getPackage(inter); } for (int j = i - 1; j >= 0; j--) if (data.i... | static ProxyData getProxyData(ProxyType pt) { Map method_set = (Map) ProxySignature.coreMethods.clone(); boolean in_package = false; // true if we encounter non-public interface ProxyData data = new ProxyData(); data.interfaces = pt.interfaces; // if interfaces is... |
private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); | private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode")) { return method.getParameterTypes().length == 0; } if (methodName.equal... | private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode... |
if (methodName.equals("hashCode")) { return method.getParameterTypes().length == 0; } if (methodName.equals("toString")) { return method.getParameterTypes().length == 0; } return false; } | private static boolean isCoreObjectMethod(Method method) { String methodName = method.getName(); if (methodName.equals("equals")) { return Arrays.equals(method.getParameterTypes(), new Class[] { Object.class }); } if (methodName.equals("hashCode... | |
return fm.getHeight(); | return super.getPreferredSpan(axis); | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g... |
return fm.stringWidth(text); | return fm.stringWidth(text) + 30; | public float getPreferredSpan(int axis) { if (axis != X_AXIS && axis != Y_AXIS) throw new IllegalArgumentException(); FontMetrics fm = getFontMetrics(); if (axis == Y_AXIS) return fm.getHeight(); String text; Element elem = getElement(); try { text = elem.getDocument().getText(elem.g... |
orbClassName = getORBName(props, FUNCTIONAL_ORB); | orbClassName = getCumulatedProperty(props, FUNCTIONAL_ORB); | private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getORBName(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) ObjectCreator.... |
} | private static ORB createORB(Properties props, String orbClassName) { ORB orb = null; if (orbClassName == null) { orbClassName = getORBName(props, FUNCTIONAL_ORB); if (orbClassName == null) orbClassName = DEFAULT_FUNCTIONAL_ORB; } try { orb = (ORB) ObjectCreator.... | |
generalTypeCode t = new generalTypeCode(TCKind.tk_abstract_interface); | GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_abstract_interface); | public TypeCode create_abstract_interface_tc(String id, String name) { generalTypeCode t = new generalTypeCode(TCKind.tk_abstract_interface); t.setName(name); t.setId(id); return t; } |
fixedTypeCode r = new fixedTypeCode(); | FixedTypeCode r = new FixedTypeCode(); | public TypeCode create_fixed_tc(short digits, short scale) { fixedTypeCode r = new fixedTypeCode(); r.setDigits(digits); r.setScale(scale); return r; } |
generalTypeCode t = new generalTypeCode(TCKind.tk_native); | GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_native); | public TypeCode create_native_tc(String id, String name) { generalTypeCode t = new generalTypeCode(TCKind.tk_native); t.setName(name); t.setId(id); return t; } |
recordTypeCode r = new recordTypeCode(TCKind.tk_struct); | RecordTypeCode r = new RecordTypeCode(TCKind.tk_struct); | public TypeCode create_recursive_sequence_tc(int bound, int offset) { recordTypeCode r = new recordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new primitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... |
TypeCode recurs = new primitiveTypeCode(TCKind.tk_sequence); | TypeCode recurs = new PrimitiveTypeCode(TCKind.tk_sequence); | public TypeCode create_recursive_sequence_tc(int bound, int offset) { recordTypeCode r = new recordTypeCode(TCKind.tk_struct); for (int i = 0; i < offset; i++) r.add(new StructMember()); TypeCode recurs = new primitiveTypeCode(TCKind.tk_sequence); r.add(new StructMember("", recurs, null)); return... |
return new recursiveTypeCode(id); | return new RecursiveTypeCode(id); | public TypeCode create_recursive_tc(String id) { return new recursiveTypeCode(id); } |
generalTypeCode t = new generalTypeCode(TCKind.tk_value_box); | GeneralTypeCode t = new GeneralTypeCode(TCKind.tk_value_box); | public TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type ) { generalTypeCode t = new generalTypeCode(TCKind.tk_value_box); t.setName(name); t.setId(id); t.setContentType(boxed_type); return t; } |
recordTypeCode r = new recordTypeCode(TCKind.tk_value); | RecordTypeCode r = new RecordTypeCode(TCKind.tk_value); | public TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members ) { recordTypeCode r = new recordTypeCode(TCKind.tk_value); r.setId(id); r.setName(name); r.setTypeModifier(type_modi... |
String orb_cn = getORBName(null, RESTRICTED_ORB); | String orb_cn = getCumulatedProperty(null, RESTRICTED_ORB); | public static ORB init() { String orb_cn = getORBName(null, RESTRICTED_ORB); if (orb_cn == null) return Restricted_ORB.Singleton; else return createORB(null, orb_cn); } |
return Restricted_ORB.Singleton; | return OrbRestricted.Singleton; | public static ORB init() { String orb_cn = getORBName(null, RESTRICTED_ORB); if (orb_cn == null) return Restricted_ORB.Singleton; else return createORB(null, orb_cn); } |
public void installDefaults(JPanel p) | protected void installDefaults(JPanel p) | public void installDefaults(JPanel p) { LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); p.setOpaque(true); } |
p.setOpaque(true); | public void installDefaults(JPanel p) { LookAndFeel.installColorsAndFont(p, "Panel.background", "Panel.foreground", "Panel.font"); p.setOpaque(true); } | |
s.append(actionCommand).append(",when=").append(when).append("modifiers"); | s.append(actionCommand).append(",when=").append(when).append(",modifiers"); | public String paramString() { StringBuffer s = new StringBuffer(id == ACTION_PERFORMED ? "ACTION_PERFORMED,cmd=" : "unknown type,cmd="); s.append(actionCommand).append(",when=").append(when).append("modifiers"); int len = s.length(); ... |
throws java.security.InvalidAlgorithmParameterException | throws InvalidAlgorithmParameterException | public CertStoreSpi(CertStoreParameters params) throws java.security.InvalidAlgorithmParameterException { super(); } |
public void setLocation(Point p) { this.x = p.x; this.y = p.y; | public void setLocation(Point p) { setLocation (p.x, p.y); | public void setLocation(Point p) { this.x = p.x; this.y = p.y; } |
public void setSize(Dimension d) { width = d.width; height = d.height; | public void setSize(Dimension d) { setSize (d.width, d.height); | public void setSize(Dimension d) { width = d.width; height = d.height; } |
public ColorModel coerceData(WritableRaster raster, boolean isAlphaPremultiplied) { | public final ColorModel coerceData (WritableRaster raster, boolean isAlphaPremultiplied) { | public ColorModel coerceData(WritableRaster raster, boolean isAlphaPremultiplied) { if (this.isAlphaPremultiplied == isAlphaPremultiplied) return this; /* TODO: provide better implementation based on the assumptions we can make due to the specific type of the color model. */ super.coerceData(raster, isAlp... |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("AreaAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("AreaAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("BaseAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("BaseAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("FormAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("FormAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("HeadAction.end not implemented: "+t); super.end(t); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("HeadAction.start not implemented: "+t); super.start(t, a); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("HiddenAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("HiddenAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("IsindexAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("IsindexAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("LinkAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("LinkAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("MapAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("MapAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("MetaAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("MetaAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("PreAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("PreAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("SpecialAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("SpecialAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("StyleAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("StyleAction.start not implemented"); } | |
throws NotImplementedException | public void end(HTML.Tag t) { // FIXME: Implement. print ("TitleAction.end not implemented"); } | |
throws NotImplementedException | public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("TitleAction.start not implemented"); } | |
throws NotImplementedException | protected void addSpecialElement(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement print ("HTMLReader.addSpecialElement not implemented yet"); } | |
throws NotImplementedException | public void handleEndOfLineString(String eol) { // FIXME: Implement. print ("HTMLReader.handleEndOfLineString not implemented yet"); } | |
throws NotImplementedException | protected void preContent(char[] data) { // FIXME: Implement print ("HTMLReader.preContent not implemented yet"); } | |
throws NotImplementedException | protected void textAreaContent(char[] data) { // FIXME: Implement. print ("HTMLReader.textAreaContent not implemented yet"); } | |
throws NotImplementedException | protected void fireChangedUpdate(DocumentEvent e) { // FIXME: Not implemented. System.out.println("fireChangedUpdate not implemented"); super.fireChangedUpdate(e); } | |
throws BadLocationException, IOException | throws BadLocationException, IOException, NotImplementedException | public void insertAfterEnd(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterEnd not implemente... |
throws BadLocationException, IOException | throws BadLocationException, IOException, NotImplementedException | public void insertAfterStart(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertAfterStart not implem... |
throws BadLocationException, IOException | throws BadLocationException, IOException, NotImplementedException | public void insertBeforeEnd(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeEnd not implemen... |
throws BadLocationException, IOException | throws BadLocationException, IOException, NotImplementedException | public void insertBeforeStart(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("insertBeforeStart not impl... |
throws BadLocationException, IOException | throws BadLocationException, IOException, NotImplementedException | public void setInnerHTML(Element elem, String htmlText) throws BadLocationException, IOException { if (elem.isLeaf()) throw new IllegalArgumentException("Element is a leaf"); if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use In... |
throws BadLocationException, IOException | throws BadLocationException, IOException, NotImplementedException | public void setOuterHTML(Element elem, String htmlText) throws BadLocationException, IOException { if (parser == null) throw new IllegalStateException("Parser has not been set"); // FIXME: Not implemented fully, use InsertHTML* in HTMLEditorKit? System.out.println("setOuterHTML not implem... |
throws NotImplementedException | public void setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) { // FIXME: Not implemented. System.out.println("setParagraphAttributes not implemented"); super.setParagraphAttributes(offset, length, s, replace); } | |
private static final synchronized int[] sha(int hh0, int hh1, int hh2, | private static synchronized final int[] sha(int hh0, int hh1, int hh2, | private static final synchronized int[] sha(int hh0, int hh1, int hh2, int hh3, int hh4, int hh5, int hh6, int hh7, byte[] in, int offset) { int A = hh0; int B = hh1; int C ... |
{ w[r] = (in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF)); } | w[r] = (in[offset++] << 24 | (in[offset++] & 0xFF) << 16 | (in[offset++] & 0xFF) << 8 | (in[offset++] & 0xFF)); | private static final synchronized int[] sha(int hh0, int hh1, int hh2, int hh3, int hh4, int hh5, int hh6, int hh7, byte[] in, int offset) { int A = hh0; int B = hh1; int C ... |
if (e.getPropertyName().equals("document")) | String name = e.getPropertyName(); if (name.equals("document")) | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("document")) { Document oldDoc = (Document) e.getOldValue(); oldDoc.removeDocumentListener(documentListener); Document newDoc = (Document) e.getNewValue(); newDoc.addDocumentListener... |
else if (name.equals("editable")) { active = (((Boolean) e.getNewValue()).booleanValue() && textComponent.isEnabled()); } else if (name.equals("enabled")) { active = (((Boolean) e.getNewValue()).booleanValue() && textComponent.isEditable()); } | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("document")) { Document oldDoc = (Document) e.getOldValue(); oldDoc.removeDocumentListener(documentListener); Document newDoc = (Document) e.getNewValue(); newDoc.addDocumentListener... | |
} | public void focusGained(FocusEvent event) { setVisible(true); updateTimerStatus(); } | |
if (event.isTemporary() == false) | if (textComponent.isEditable() && event.isTemporary() == false) | public void focusLost(FocusEvent event) { if (event.isTemporary() == false) { setVisible(false); // Stop the blinker, if running. if (blinkTimer != null && blinkTimer.isRunning()) blinkTimer.stop(); } } |
active = textComponent.isEditable() && textComponent.isEnabled(); | public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); propertyChangeListener = new PropertyChangeHandler(); textComponent.addPropertyChangeListener(propertyChangeListener); ... | |
return visible; | return visible && active; | public boolean isVisible() { return visible; } |
if (!textComponent.isEnabled()) return; | public void mouseClicked(MouseEvent event) { int count = event.getClickCount(); if (event.getButton() == MouseEvent.BUTTON1 && count >= 2) { int newDot = getComponent().viewToModel(event.getPoint()); JTextComponent t = getComponent(); try { if (count == 3) ... | |
else positionCaret(event); } | public void mouseDragged(MouseEvent event) { if (event.getButton() == MouseEvent.BUTTON1) moveCaret(event); } | |
if (visible) | if (visible && active) | public void paint(Graphics g) { JTextComponent comp = getComponent(); if (comp == null) return; // Make sure the dot has a sane position. dot = Math.min(dot, textComponent.getDocument().getLength()); dot = Math.max(dot, 0); Rectangle rect = null; try { rect = textComponent.modelToView(... |
if (rn == 0.0d || rn == -0.0d) | if (rn == 0.0d || rn == 0.0d) { if (ln == 0.0d || ln == -0.0d) { return new Double(Double.NaN); } else | public Object evaluate(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); double ln = _number(context, left); double rn = _number(context, right); switch (op) { case ADD: return new Double(ln + rn); cas... |
} | public Object evaluate(Node context, int pos, int len) { Object left = lhs.evaluate(context, pos, len); Object right = rhs.evaluate(context, pos, len); double ln = _number(context, left); double rn = _number(context, right); switch (op) { case ADD: return new Double(ln + rn); cas... | |
throw new RuntimeException("unknown codebase"); | throw new RuntimeException("Attempted to create" + " invalid codebase URL.", e); | public URL getCodeBase() { try { return tag.prependCodeBase(""); } catch (MalformedURLException e) { throw new RuntimeException("unknown codebase"); } } |
setCaretPosition(start + content.length()); | dot = start + content.length(); setCaretPosition(dot); caret.setMagicCaretPosition(modelToView(dot).getLocation()); | public synchronized void replaceSelection(String content) { int dot = caret.getDot(); int mark = caret.getMark(); // If content is empty delete selection. if (content == null) { caret.setDot(dot); return; } try { int start = getSelectionStart(); int end = getSelectionEnd(); // Remove s... |
private static final void appendTag(StringBuffer buf, int indent, String tag, String content) | private static void appendTag(StringBuffer buf, int indent, String tag, String content) | private static final void appendTag(StringBuffer buf, int indent, String tag, String content) { int i; if (content == null) return; for (i = 0; i < indent * 2; i++) buf.append(' '); buf.append("<"); buf.append(tag); buf.append('>'); /* Append the content, but escape for XML by r... |
if(!(dev.getDriver() instanceof FSBlockDeviceAPI)){ throw new FileSystemException( "Unsupported device by format command"); } | public static void main(String[] args) throws SyntaxErrorException { try { ParsedArguments cmdLine = HELP_INFO.parse(args); String device = ARG_DEVICE.getValue(cmdLine); String FSType = FS.getValue(cmdLine).intern(); Integer bsize; try { b... | |
return width > 0 && height > 0 && r.width > 0 && r.height > 0 | return r.width > 0 && r.height > 0 && width > 0 && height > 0 | public boolean intersects(Rectangle r) { return width > 0 && height > 0 && r.width > 0 && r.height > 0 && r.x < x + width && r.x + r.width > x && r.y < y + height && r.y + r.height > y; } |
if (damaged != null) | public void valueChanged(ListSelectionEvent e) { int index1 = e.getFirstIndex(); int index2 = e.getLastIndex(); Rectangle damaged = getCellBounds(list, index1, index2); list.repaint(damaged); } | |
Rectangle hibounds = new Rectangle(hiLoc.x, hiLoc.y, width, getCellHeight(i)); bounds = bounds.union(hibounds); | bounds = SwingUtilities.computeUnion(hiLoc.x, hiLoc.y, width, getCellHeight(i), bounds); | public Rectangle getCellBounds(JList l, int index1, int index2) { maybeUpdateLayoutState(); if (l != list || cellWidth == -1) return null; int minIndex = Math.min(index1, index2); int maxIndex = Math.max(index1, index2); Point loc = indexToLocation(list, minIndex); // When the layoutOrientatio... |
if (bounds.intersects(clip)) | if (bounds != null && bounds.intersects(clip)) | public void paint(Graphics g, JComponent c) { int nrows = list.getModel().getSize(); if (nrows == 0) return; maybeUpdateLayoutState(); ListCellRenderer render = list.getCellRenderer(); ListModel model = list.getModel(); ListSelectionModel sel = list.getSelectionModel(); int lead = sel.getLe... |
recordTypeCode r = new recordTypeCode(TCKind.tk_alias); | RecordTypeCode r = new RecordTypeCode(TCKind.tk_alias); | public static TypeCode type() { recordTypeCode r = new recordTypeCode(TCKind.tk_alias); r.setName("SyncScope"); r.setId(id()); r.setContentType(new primitiveTypeCode(TCKind.tk_short)); return r; } |
r.setContentType(new primitiveTypeCode(TCKind.tk_short)); | r.setContentType(new PrimitiveTypeCode(TCKind.tk_short)); | public static TypeCode type() { recordTypeCode r = new recordTypeCode(TCKind.tk_alias); r.setName("SyncScope"); r.setId(id()); r.setContentType(new primitiveTypeCode(TCKind.tk_short)); return r; } |
return new KeyPair(pubK, secK); | KeyPair result = new KeyPair(pubK, secK); log.exiting(this.getClass().getName(), "generate", result); return result; | public KeyPair generate() { BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper = TWO.pow(M).subtract(ONE); byte[] kb = new byte[(M + ... |
log.exiting(this.getClass().getName(), "setup"); | public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec params = (RSAKeyGenParameterSpec) attributes.get(RSA_PARAMETERS); /... | |
Rectangle br = new Rectangle(); | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle br = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, b... | |
SwingUtilities.calculateInnerArea(b, br); SwingUtilities.calculateInsetArea(br, b.getMargin(), vr); | SwingUtilities.calculateInnerArea(b, vr); | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle br = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, b... |
paintButtonNormal(g, br, c); | paintButtonNormal(g, vr, c); | public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Rectangle br = new Rectangle(); Font f = c.getFont(); g.setFont(f); SwingUtilities.calculateInnerArea(b, b... |
fileListPanel.setPreferredSize(new Dimension(405, 135)); | protected JPanel createList(JFileChooser fc) { if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); scrollPane = new JScrollPane(fileList); fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setCellRenderer(new FileRend... | |
public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); | public void addRow(Vector rowData) { int rowIndex = dataVector.size(); dataVector.add(rowData); newRowsAdded(new TableModelEvent( this, rowIndex, rowIndex, -1, TableModelEvent.INSERT) ); | public void addRow(Object[] rowData) { addRow(convertToVector(rowData)); } |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return DateTimeAtCreation.class; } |
public final String getName() | public String getName() | public final String getName() { return "date-time-at-creation"; } |
public static ComponentUI createUI(JComponent x) | public static ComponentUI createUI(JComponent panel) | public static ComponentUI createUI(JComponent x) { return new BasicPanelUI(); } |
return new BasicPanelUI(); | if (sharedUI == null) sharedUI = new BasicPanelUI(); return sharedUI; | public static ComponentUI createUI(JComponent x) { return new BasicPanelUI(); } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.