rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); | public void dumpData(Logger out) { out.debug("Transmit Ring Descriptors - Software Style 2"); | public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } } |
out.println("Descriptor " + i); | out.debug("Descriptor " + i); | public void dumpData(PrintStream out) { out.println("Transmit Ring Descriptors - 16 bit mode"); for (int i = 0; i < length; i++) { out.println("Descriptor " + i); txDescriptors[i].dumpData(out); } } |
if (this == o) return true; | if (!(o instanceof BitString)) return false; | public boolean equals(Object o) { if (this == o) return true; BitString that = (BitString) o; // True for cloned instances. if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) return true; if (this.ignoredBits == that.ignoredBits) return Arrays.equals(this.bytes, that.... |
put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName(... | public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS Im... | |
put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName(... | public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCF... | |
public boolean add(E value) { if (offer(value)) return true; throw new IllegalStateException(); } | public boolean add(E e) { if (offer(e)) return true; else throw new IllegalStateException("Queue full"); } | public boolean add(E value) { if (offer(value)) return true; throw new IllegalStateException(); } |
public boolean addAll(Collection<? extends E> c) { if (c == this) throw new IllegalArgumentException(); boolean result = false; for (E val : c) { if (add(val)) result = true; } return result; } | public boolean addAll(Collection<? extends E> c) { if (c == null) throw new NullPointerException(); if (c == this) throw new IllegalArgumentException(); boolean modified = false; Iterator<? extends E> e = c.iterator(); while (e.hasNext()) { if (add(e.next())) modified = true; } return modified; } | public boolean addAll(Collection<? extends E> c) { if (c == this) throw new IllegalArgumentException(); boolean result = false; for (E val : c) { if (add(val)) result = true; } return result; } |
public E element() { E result = peek(); if (result == null) throw new NoSuchElementException(); return result; } | public E element() { E x = peek(); if (x != null) return x; else throw new NoSuchElementException(); } | public E element() { E result = peek(); if (result == null) throw new NoSuchElementException(); return result; } |
public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; } | public E remove() { E x = poll(); if (x != null) return x; else throw new NoSuchElementException(); } | public E remove() { E result = poll(); if (result == null) throw new NoSuchElementException(); return result; } |
private String complete(String partial) { | CompletionInfo complete(String partial) { | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... |
dirty = false; | completion = new CompletionInfo(); | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... |
if (!partial.equals(result) && !dirty) { dirty = true; for (int i = 0; i < partial.length() + currentPrompt.length(); i++) System.out.print("\b"); | if (!partial.equals(result) && !completion.hasItems()) { completion.setCompleted(result); completion.setNewPrompt(false); | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... |
System.out.println(); System.err.println(ex.getMessage()); | out.println(); err.println(ex.getMessage()); | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... |
result = partial; dirty = true; | completion.setCompleted(partial); completion.setNewPrompt(true); | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... |
if (dirty) { dirty = false; System.out.print(currentPrompt + result); } return result; | if(completion.hasItems()) { out.println(); String[] list = completion.getItems(); for(int i = 0 ; i < list.length ; i++) out.println(list[i]); } if(completion.needNewPrompt()) { out.print(currentPrompt); currentLine.start(console); } return completion; | private String complete(String partial) { // workaround to set the currentShell to this shell try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFoundException ex) { } dirty = false; String result = null; try { CommandLine c... |
newestLine = currentLine; | newestLine = currentLine.getContent(); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
else if (historyIndex == -1) newestLine = currentLine; | else if (historyIndex == -1) newestLine = currentLine.getContent(); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (posOnCurrentLine > 0) { posOnCurrentLine--; | if (currentLine.moveLeft()) { | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (posOnCurrentLine < currentLine.length()) { posOnCurrentLine++; | if (currentLine.moveRight()) { | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
posOnCurrentLine = 0; | currentLine.moveBegin(); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
posOnCurrentLine = currentLine.length(); | currentLine.moveEnd(); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (currentLine.length() != 0 && posOnCurrentLine > 0) { posOnCurrentLine--; currentLine = currentLine.substring(0, posOnCurrentLine) + currentLine.substring(posOnCurrentLine + 1, currentLine.length()); | if (currentLine.backspace()) { | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (posOnCurrentLine == 0 && currentLine.length() > 0) { currentLine = currentLine.substring(1); } else if (posOnCurrentLine < currentLine.length()) { currentLine = currentLine.substring(0, posOnCurrentLine) + currentLine.substring(posOnCurrentLine + 1, currentLine.length()); } | currentLine.delete(); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (posOnCurrentLine != currentLine.length()) { String ending = currentLine.substring(posOnCurrentLine); currentLine = complete(currentLine.substring(0, posOnCurrentLine)) + ending; posOnCurrentLine = currentLine.length() - ending.length(); } else { currentLine = complete(currentLine); posOnCurrentLine = currentLine.le... | if(currentLine.complete(console, this)) refreshCurrentLine(); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (!Character.isISOControl(ke.getKeyChar())) { | char ch = ke.getKeyChar(); if (!Character.isISOControl(ch)) { | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
if (posOnCurrentLine == currentLine.length()) { currentLine += ke.getKeyChar(); } else { currentLine = currentLine.substring(0, posOnCurrentLine) + ke.getKeyChar() + currentLine.substring(posOnCurrentLine); } posOnCurrentLine++; | currentLine.appendChar(ch); | public void keyPressed(KeyboardEvent ke) { // make sure we are ready to intercept the keyboard if (!isActive) return; switch (ke.getKeyCode()) { // intercept the up and down arrow keys case KeyEvent.VK_UP: ke.consume(); if (historyIndex == -1) { ... |
System.out.println(); for (int i = 0; i < items.length; i++) System.out.println(items[ i]); dirty = true; | completion.setItems(items); | public void list(String[] items) { System.out.println(); for (int i = 0; i < items.length; i++) System.out.println(items[ i]); dirty = true; } |
if (console != null) { console.clearLine(console.getCursorY()); } out.print(currentPrompt); | private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... | |
currentLine = newestLine; | currentLine.setContent(newestLine); | private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... |
currentLine = history.getCommand(historyIndex); out.print(currentLine); posOnCurrentLine = currentLine.length(); | currentLine.setContent(history.getCommand(historyIndex)); refreshCurrentLine(); currentLine.moveEnd(); | private void redisplay() { // clear the line if (console != null) { console.clearLine(console.getCursorY()); } // display the prompt out.print(currentPrompt); // display the required history/current line if (historyIndex == -1) currentLine = ... |
try { int y = console.getCursorY(); console.clearLine(y); out.print(currentPrompt + currentLine + " "); console.setCursor(currentPrompt.length() + posOnCurrentLine, console.getCursorY()); } catch (Exception e) { } | currentLine.refreshCurrentLine(console, currentPrompt, out); | private void refreshCurrentLine() { try { int y = console.getCursorY(); console.clearLine(y); /* * Uncomment this to display cursor position * console.clearLine(y-25); console.setCursor(0, y-1); * err.print("Cursor pos : x = "+currentPrompt... |
if (currentLine.length() > 0) { processCommand(currentLine.trim()); | String line = currentLine.getContent().trim(); if (line.length() > 0) { processCommand(line); | public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ... |
currentLine = ""; | public void run() { // Run commands from the JNode commandline first final String cmdLine = (String) AccessController .doPrivileged(new GetPropertyAction("jnode.cmdline", "")); final StringTokenizer tok = new StringTokenizer(cmdLine); while (tok.hasMoreTokens()) { ... | |
if (a.isDefined(Alignment)) return ((Integer)a.getAttribute(Alignment)).intValue(); | Integer i = (Integer) a.getAttribute(Alignment); if (i != null) return i.intValue(); | public static int getAlignment(AttributeSet a) { if (a.isDefined(Alignment)) return ((Integer)a.getAttribute(Alignment)).intValue(); else return ALIGN_LEFT; } |
if (a.isDefined(Background)) return (Color) a.getAttribute(Background); | Color c = (Color) a.getAttribute(Background); if (c != null) return c; | public static Color getBackground(AttributeSet a) { if (a.isDefined(Background)) return (Color) a.getAttribute(Background); else return Color.WHITE; } |
return Color.WHITE; | return Color.BLACK; | public static Color getBackground(AttributeSet a) { if (a.isDefined(Background)) return (Color) a.getAttribute(Background); else return Color.WHITE; } |
if (a.isDefined(BidiLevel)) return ((Integer)a.getAttribute(BidiLevel)).intValue(); | Integer i = (Integer) a.getAttribute(BidiLevel); if (i != null) return i.intValue(); | public static int getBidiLevel(AttributeSet a) { if (a.isDefined(BidiLevel)) return ((Integer)a.getAttribute(BidiLevel)).intValue(); else return 0; } |
if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); | Component c = (Component) a.getAttribute(ComponentAttribute); if (c != null) return c; | public static Component getComponent(AttributeSet a) { if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); else return (Component) null; } |
return (Component) null; | return null; | public static Component getComponent(AttributeSet a) { if (a.isDefined(ComponentAttribute)) return (Component) a.getAttribute(ComponentAttribute); else return (Component) null; } |
if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); | Float f = (Float) a.getAttribute(FirstLineIndent); if (f != null) return f.floatValue(); | public static float getFirstLineIndent(AttributeSet a) { if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); else return 0.f; } |
return 0.f; | return 0.0f; | public static float getFirstLineIndent(AttributeSet a) { if (a.isDefined(FirstLineIndent)) return ((Float)a.getAttribute(FirstLineIndent)).floatValue(); else return 0.f; } |
if (a.isDefined(FontFamily)) return (String) a.getAttribute(FontFamily); | String ff = (String) a.getAttribute(FontFamily); if (ff != null) return ff; | public static String getFontFamily(AttributeSet a) { if (a.isDefined(FontFamily)) return (String) a.getAttribute(FontFamily); else return "Monospaced"; } |
if (a.isDefined(FontSize)) return ((Integer)a.getAttribute(FontSize)).intValue(); | Integer i = (Integer) a.getAttribute(FontSize); if (i != null) return i.intValue(); | public static int getFontSize(AttributeSet a) { if (a.isDefined(FontSize)) return ((Integer)a.getAttribute(FontSize)).intValue(); else return 12; } |
if (a.isDefined(Foreground)) return (Color) a.getAttribute(Foreground); | Color c = (Color) a.getAttribute(Foreground); if (c != null) return c; | public static Color getForeground(AttributeSet a) { if (a.isDefined(Foreground)) return (Color) a.getAttribute(Foreground); else return Color.BLACK; } |
if (a.isDefined(IconAttribute)) | public static Icon getIcon(AttributeSet a) { if (a.isDefined(IconAttribute)) return (Icon) a.getAttribute(IconAttribute); else return (Icon) null; } | |
else return (Icon) null; | public static Icon getIcon(AttributeSet a) { if (a.isDefined(IconAttribute)) return (Icon) a.getAttribute(IconAttribute); else return (Icon) null; } | |
if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); | Float f = (Float) a.getAttribute(LeftIndent); if (f != null) return f.floatValue(); | public static float getLeftIndent(AttributeSet a) { if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); else return 0.f; } |
return 0.f; | return 0.0f; | public static float getLeftIndent(AttributeSet a) { if (a.isDefined(LeftIndent)) return ((Float)a.getAttribute(LeftIndent)).floatValue(); else return 0.f; } |
if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); | Float f = (Float) a.getAttribute(LineSpacing); if (f != null) return f.floatValue(); | public static float getLineSpacing(AttributeSet a) { if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); else return 0.f; } |
return 0.f; | return 0.0f; | public static float getLineSpacing(AttributeSet a) { if (a.isDefined(LineSpacing)) return ((Float)a.getAttribute(LineSpacing)).floatValue(); else return 0.f; } |
if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); | Float f = (Float) a.getAttribute(RightIndent); if (f != null) return f.floatValue(); | public static float getRightIndent(AttributeSet a) { if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); else return 0.f; } |
return 0.f; | return 0.0f; | public static float getRightIndent(AttributeSet a) { if (a.isDefined(RightIndent)) return ((Float)a.getAttribute(RightIndent)).floatValue(); else return 0.f; } |
if (a.isDefined(SpaceAbove)) return ((Float)a.getAttribute(SpaceAbove)).floatValue(); else return 0.f; | Float f = (Float) a.getAttribute(SpaceAbove); if (f != null) return f.floatValue(); else return 0.0f; | public static float getSpaceAbove(AttributeSet a) { if (a.isDefined(SpaceAbove)) return ((Float)a.getAttribute(SpaceAbove)).floatValue(); else return 0.f; } |
if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); | Float f = (Float) a.getAttribute(SpaceBelow); if (f != null) return f.floatValue(); | public static float getSpaceBelow(AttributeSet a) { if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); else return 0.f; } |
return 0.f; | return 0.0f; | public static float getSpaceBelow(AttributeSet a) { if (a.isDefined(SpaceBelow)) return ((Float)a.getAttribute(SpaceBelow)).floatValue(); else return 0.f; } |
if (a.isDefined(StyleConstants.TabSet)) | public static javax.swing.text.TabSet getTabSet(AttributeSet a) { if (a.isDefined(StyleConstants.TabSet)) return (javax.swing.text.TabSet) a.getAttribute(StyleConstants.TabSet); else return (javax.swing.text.TabSet) null; } | |
else return (javax.swing.text.TabSet) null; | public static javax.swing.text.TabSet getTabSet(AttributeSet a) { if (a.isDefined(StyleConstants.TabSet)) return (javax.swing.text.TabSet) a.getAttribute(StyleConstants.TabSet); else return (javax.swing.text.TabSet) null; } | |
if (a.isDefined(Bold)) return ((Boolean) a.getAttribute(Bold)).booleanValue(); | Boolean b = (Boolean) a.getAttribute(Bold); if (b != null) return b.booleanValue(); | public static boolean isBold(AttributeSet a) { if (a.isDefined(Bold)) return ((Boolean) a.getAttribute(Bold)).booleanValue(); else return false; } |
if (a.isDefined(Italic)) return ((Boolean) a.getAttribute(Italic)).booleanValue(); | Boolean b = (Boolean) a.getAttribute(Italic); if (b != null) return b.booleanValue(); | public static boolean isItalic(AttributeSet a) { if (a.isDefined(Italic)) return ((Boolean) a.getAttribute(Italic)).booleanValue(); else return false; } |
if (a.isDefined(StrikeThrough)) return ((Boolean) a.getAttribute(StrikeThrough)).booleanValue(); | Boolean b = (Boolean) a.getAttribute(StrikeThrough); if (b != null) return b.booleanValue(); | public static boolean isStrikeThrough(AttributeSet a) { if (a.isDefined(StrikeThrough)) return ((Boolean) a.getAttribute(StrikeThrough)).booleanValue(); else return false; } |
if (a.isDefined(Subscript)) return ((Boolean) a.getAttribute(Subscript)).booleanValue(); | Boolean b = (Boolean) a.getAttribute(Subscript); if (b != null) return b.booleanValue(); | public static boolean isSubscript(AttributeSet a) { if (a.isDefined(Subscript)) return ((Boolean) a.getAttribute(Subscript)).booleanValue(); else return false; } |
if (a.isDefined(Superscript)) return ((Boolean) a.getAttribute(Superscript)).booleanValue(); | Boolean b = (Boolean) a.getAttribute(Superscript); if (b != null) return b.booleanValue(); | public static boolean isSuperscript(AttributeSet a) { if (a.isDefined(Superscript)) return ((Boolean) a.getAttribute(Superscript)).booleanValue(); else return false; } |
if (a.isDefined(Underline)) return ((Boolean) a.getAttribute(Underline)).booleanValue(); | Boolean b = (Boolean) a.getAttribute(Underline); if (b != null) return b.booleanValue(); | public static boolean isUnderline(AttributeSet a) { if (a.isDefined(Underline)) return ((Boolean) a.getAttribute(Underline)).booleanValue(); else return false; } |
public static void setBackground(MutableAttributeSet a, Color fg) | public static void setBackground(MutableAttributeSet a, Color bg) | public static void setBackground(MutableAttributeSet a, Color fg) { a.addAttribute(Background, fg); } |
a.addAttribute(Background, fg); | a.addAttribute(Background, bg); | public static void setBackground(MutableAttributeSet a, Color fg) { a.addAttribute(Background, fg); } |
verticalScrollBar = (JScrollBar) component; | vsb = (JScrollBar) component; | public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else... |
horizontalScrollBar = (JScrollBar) component; | hsb = (JScrollBar) component; | public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else... |
rowHeader = (JViewport) component; | rowHead = (JViewport) component; | public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else... |
columnHeader = (JViewport) component; | colHead = (JViewport) component; | public void addLayoutComponent(String key, Component component) { if (key == VIEWPORT) viewport = (JViewport) component; else if (key == VERTICAL_SCROLLBAR) verticalScrollBar = (JScrollBar) component; else if (key == HORIZONTAL_SCROLLBAR) horizontalScrollBar = (JScrollBar) component; else... |
public JViewport getColumnHeader() { return columnHeader; | public JViewport getColumnHeader() { return colHead; | public JViewport getColumnHeader() { return columnHeader; } |
public JScrollBar getHorizontalScrollBar() { return horizontalScrollBar; | public JScrollBar getHorizontalScrollBar() { return hsb; | public JScrollBar getHorizontalScrollBar() { return horizontalScrollBar; } |
public int getHorizontalScrollBarPolicy() { return horizontalScrollBarPolicy; | public int getHorizontalScrollBarPolicy() { return hsbPolicy; | public int getHorizontalScrollBarPolicy() { return horizontalScrollBarPolicy; } |
public JViewport getRowHeader() { return rowHeader; | public JViewport getRowHeader() { return rowHead; | public JViewport getRowHeader() { return rowHeader; } |
public JScrollBar getVerticalScrollBar() { return verticalScrollBar; | public JScrollBar getVerticalScrollBar() { return vsb; | public JScrollBar getVerticalScrollBar() { return verticalScrollBar; } |
public int getVerticalScrollBarPolicy() { return verticalScrollBarPolicy; | public int getVerticalScrollBarPolicy() { return vsbPolicy; | public int getVerticalScrollBarPolicy() { return verticalScrollBarPolicy; } |
if (columnHeader != null) y2 = columnHeader.getPreferredSize().height; | if (colHead != null) y2 = colHead.getPreferredSize().height; | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
if (rowHeader != null) x2 = rowHeader.getPreferredSize().width; | if (rowHead != null) x2 = rowHead.getPreferredSize().width; | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
(verticalScrollBar != null) | (vsb != null) | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
(horizontalScrollBar != null) | (hsb != null) | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
x3 = x4 - verticalScrollBar.getPreferredSize().width; | x3 = x4 - vsb.getPreferredSize().width; | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
y3 = y4 - horizontalScrollBar.getPreferredSize().height; | y3 = y4 - hsb.getPreferredSize().height; | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
if (columnHeader != null) columnHeader.setBounds(new Rectangle(x2, y1, x3-x2, y2-y1)); | if (colHead != null) colHead.setBounds(new Rectangle(x2, y1, x3-x2, y2-y1)); | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
if (rowHeader != null) rowHeader.setBounds(new Rectangle(x1, y2, x2-x1, y3-y2)); | if (rowHead != null) rowHead.setBounds(new Rectangle(x1, y2, x2-x1, y3-y2)); | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
verticalScrollBar.setBounds(new Rectangle(x3, y2, x4-x3, y3-y2)); | vsb.setBounds(new Rectangle(x3, y2, x4-x3, y3-y2)); | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
horizontalScrollBar.setBounds(new Rectangle(x2, y3, x3-x2, y4-y3)); | hsb.setBounds(new Rectangle(x2, y3, x3-x2, y4-y3)); | public void layoutContainer(Container parent) { if (parent instanceof JScrollPane) { JScrollPane sc = (JScrollPane) parent; synchronized (sc.getTreeLock ()) { Rectangle scrollPaneBounds = sc.getBounds(); JViewport viewport = sc.getViewport(); Dimension v... |
if (columnHeader != null) columnHeaderSize.setSize(columnHeader.getMinimumSize()); | if (colHead != null) columnHeaderSize.setSize(colHead.getMinimumSize()); | 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); ... |
if (rowHeader != null) rowHeaderSize.setSize(rowHeader.getMinimumSize()); | if (rowHead != null) rowHeaderSize.setSize(rowHead.getMinimumSize()); | 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); ... |
if (verticalScrollBar != null && verticalScrollBarPolicy != VERTICAL_SCROLLBAR_NEVER) verticalScrollBarSize.setSize(verticalScrollBar.getMinimumSize()); | if (vsb != null && vsbPolicy != VERTICAL_SCROLLBAR_NEVER) verticalScrollBarSize.setSize(vsb.getMinimumSize()); | 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); ... |
if (horizontalScrollBar != null && horizontalScrollBarPolicy != HORIZONTAL_SCROLLBAR_NEVER) horizontalScrollBarSize.setSize(horizontalScrollBar.getMinimumSize()); | if (hsb != null && hsbPolicy != HORIZONTAL_SCROLLBAR_NEVER) horizontalScrollBarSize.setSize(hsb.getMinimumSize()); | 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); ... |
if (columnHeader != null) columnHeaderSize.setSize(columnHeader.getPreferredSize()); | if (colHead != null) columnHeaderSize.setSize(colHead.getPreferredSize()); | public Dimension preferredLayoutSize(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); ... |
if (rowHeader != null) rowHeaderSize.setSize(rowHeader.getPreferredSize()); | if (rowHead != null) rowHeaderSize.setSize(rowHead.getPreferredSize()); | public Dimension preferredLayoutSize(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); ... |
if (verticalScrollBar != null) verticalScrollBarSize.setSize(verticalScrollBar.getPreferredSize()); | if (vsb != null) verticalScrollBarSize.setSize(vsb.getPreferredSize()); | public Dimension preferredLayoutSize(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); ... |
if (horizontalScrollBar != null) horizontalScrollBarSize.setSize(horizontalScrollBar.getPreferredSize()); | if (hsb != null) horizontalScrollBarSize.setSize(hsb.getPreferredSize()); | public Dimension preferredLayoutSize(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 if (component == verticalScrollBar) verticalScrollBar = null; else if (component == horizontalScrollBar) horizontalScrollBar = null; else if (component == rowHeader) rowHeader = null; else if (component == columnHeader) columnHeader = null; | else if (component == vsb) vsb = null; else if (component == hsb) hsb = null; else if (component == rowHead) rowHead = null; else if (component == colHead) colHead = null; | public void removeLayoutComponent(Component component) { if (component == viewport) viewport = null; else if (component == verticalScrollBar) verticalScrollBar = null; else if (component == horizontalScrollBar) horizontalScrollBar = null; else if (component == rowHeader) rowHeader = nu... |
public void setHorizontalScrollBarPolicy(int policy) { horizontalScrollBarPolicy = policy; | public void setHorizontalScrollBarPolicy(int policy) { hsbPolicy = policy; | public void setHorizontalScrollBarPolicy(int policy) { horizontalScrollBarPolicy = policy; } |
public void setVerticalScrollBarPolicy(int policy) { verticalScrollBarPolicy = policy; | public void setVerticalScrollBarPolicy(int policy) { vsbPolicy = policy; | public void setVerticalScrollBarPolicy(int policy) { verticalScrollBarPolicy = policy; } |
return dtd; | return super.dtd; | DTD getDTD() { return dtd; } |
InvalidParameterException y = new InvalidParameterException(); | InvalidParameterException y = new InvalidParameterException(x.getMessage()); | public PublicKey decodePublicKey(byte[] input) { log.entering(this.getClass().getName(), "decodePublicKey()", input); if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI =... |
if (Configuration.DEBUG) | public PublicKey decodePublicKey(byte[] input) { log.entering(this.getClass().getName(), "decodePublicKey()", input); if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI =... | |
InvalidParameterException y = new InvalidParameterException(); | InvalidParameterException y = new InvalidParameterException(x.getMessage()); | public byte[] encodePublicKey(PublicKey key) { log.entering(this.getClass().getName(), "encodePublicKey()", key); if (! (key instanceof GnuRSAPublicKey)) throw new InvalidParameterException("key"); DERValue derOID = new DERValue(DER.OBJECT_IDENTIFIER, RSA_ALG_OID); GnuRSAPublicKey rsaKey = (GnuRSAPu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.