rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
&& style != WARNING_DIALOG)
&& style != WARNING_DIALOG && style != PLAIN_DIALOG)
public void setWindowDecorationStyle(int style) { if (style != NONE && style != FRAME && style != INFORMATION_DIALOG && style != ERROR_DIALOG && style != COLOR_CHOOSER_DIALOG && style != FILE_CHOOSER_DIALOG && style != QUESTION_DIALOG && style != WARNING_DIALOG) throw new IllegalArgumentException("invalid st...
if (n == null) { Log.warn("in Parameter.addNote(), the Note passed in is null"); return null; }
public Note addNote(Note n) { if (n == null) { Log.warn("in Parameter.addNote(), the Note passed in is null"); return null; } getNoteList().add(n); return n; }
if (v == null) { Log.warn("in Parameter.addValue(), the Value passed in is null"); return null; }
public Value addValue(Value v) { if (v == null) { Log.warn("in Parameter.addValue(), the Value passed in is null"); return null; } getValueList().add(v); return v; }
if (group !=null) {
public ValueGroup addValueGroup (ValueGroup group) { if (group !=null) { //add the group to the groupOwnedHash valueGroupOwnedHash.add(group); return group; } else { Log.warn("in Parameter,addValueGroup(). ValueGroup passed in is null"); return null; } }
} else { Log.warn("in Parameter,addValueGroup(). ValueGroup passed in is null"); return null; }
public ValueGroup addValueGroup (ValueGroup group) { if (group !=null) { //add the group to the groupOwnedHash valueGroupOwnedHash.add(group); return group; } else { Log.warn("in Parameter,addValueGroup(). ValueGroup passed in is null"); return null; } }
cloneObj.valueGroupOwnedHash.add(iter.next());
cloneObj.valueGroupOwnedHash.add(((Group)iter.next()).clone());
public Object clone() throws CloneNotSupportedException { Parameter cloneObj = (Parameter) super.clone(); //deep copy of the valueGroupOwnedHash synchronized (this.valueGroupOwnedHash) { synchronized(cloneObj.valueGroupOwnedHash) { cloneObj.valueGroupOwnedHash = Collections.synchronizedSet(new H...
if (group == null) { Log.warn("in Axis,removeValueGroup(). ValueGroup passed in is null"); return false; }
public boolean removeValueGroup(ValueGroup group) { if (group == null) { Log.warn("in Axis,removeValueGroup(). ValueGroup passed in is null"); return false; } return valueGroupOwnedHash.remove(group); }
if (member < 1) throw new IllegalArgumentException("member may not be less than 1");
public CopiesSupported(int member) { super(member); }
return (this.getClass() + "[" + getName() + "]");
return (this.getClass() + "[type=" + getType() + ",name=" + getName() + "]");
public String toString() { return (this.getClass() + "[" + getName() + "]"); }
SwingToolkit.add(sb, this); SwingToolkit.copyAwtProperties(sb, this); setOrientation(sb.getOrientation()); setBlockIncrement(sb.getBlockIncrement()); setUnitIncrement(sb.getUnitIncrement()); setValues(sb.getValue(), sb.getVisibleAmount(), sb.getMinimum(), sb.getMaximum()); }
this.scrollbar = sb; SwingToolkit.add(sb, this); SwingToolkit.copyAwtProperties(sb, this); setOrientation(sb.getOrientation()); setBlockIncrement(sb.getBlockIncrement()); setUnitIncrement(sb.getUnitIncrement()); setValues(sb.getValue(), sb.getVisibleAmount(), sb.getMinimum(), sb .getMaximum()); }
public SwingScrollbarPeer(Scrollbar sb) { SwingToolkit.add(sb, this); SwingToolkit.copyAwtProperties(sb, this); setOrientation(sb.getOrientation()); setBlockIncrement(sb.getBlockIncrement()); setUnitIncrement(sb.getUnitIncrement()); setValues(sb.getValue(), sb.getVisibleAmo...
Ext2Debugger.debug("INode.getIMode(): "+Ext2Debugger.hexFormat(iMode), 3);
log.debug("INode.getIMode(): "+NumberUtils.hex(iMode));
public int getMode() { int iMode=Ext2Utils.get16(data, 0); Ext2Debugger.debug("INode.getIMode(): "+Ext2Debugger.hexFormat(iMode), 3); return iMode; }
specificDataFormatName = "exponent";
specificDataFormatName = "exponential";
private void init() { specificDataFormatName = "exponent"; //add attributes attribOrder.add(0,"exponent"); attribOrder.add(0,"precision"); attribOrder.add(0, "width"); attribHash.put("exponent", new XMLAttribute( new Integer(0), Constants.INTEGER_TYPE)); attribHash.put("precision", new XMLAttrib...
new Random ().nextBytes(M);
PRNG.getInstance().nextBytes(M);
public boolean selfTest() { final int[] mLen = new int[] { 16, 20, 32, 48, 64 }; final byte[] M = new byte[mLen[mLen.length - 1]]; new Random ().nextBytes(M); final byte[] EM = new byte[1024]; byte[] p; int bs, i, j; for (bs = 256; bs < 1025; bs += 256) { init(bs); for (i = 0;...
Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel((JLabel) this, fm, getText(), getIcon(), getVerticalAlignment(), getHorizontalAlignment(), getVerticalTextPosition(), getHorizontal...
Dimension size = super.getPreferredSize(); size.width += 3; return size;
public Dimension getPreferredSize() { Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel((JLabel) this, fm, getText(), getIcon(),...
this.p = p;
this.p = (1. - (p / 100.)) / 3.;
public GrayFilter(boolean b, int p) { this.b = b; //FIXME - HANDLE THIS this.p = p; }
return (int) (p * (0.299 * ((0xff0000 & rgb) >> 16) + 0.587 * ((0xff00 & rgb) >> 8) + 0.114 * (0xff & rgb)));
int alpha = 0xff000000 & rgb; int red = (0xff0000 & rgb) >> 16; int green = (0xff00 & rgb) >> 8; int blue = (0xff & rgb); int gray = (int) ((0.299 * red + 0.587 * green + 0.114 * blue) * p); if (b) gray = Math.min(gray + 128, 255); return gray | gray << 8 | gray << 16 | alpha ;
public int filterRGB(int x, int y, int rgb) { return (int) (p * (0.299 * ((0xff0000 & rgb) >> 16) + 0.587 * ((0xff00 & rgb) >> 8) + 0.114 * (0xff & rgb))); }
Font font) {
Font font,int botOffset) {
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
(fmHeight * (row + 1)),
(fmHeight * (row + 1)) - botOffset,
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
fmHeight / 2
(fmHeight / 2) - botOffset
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
fmHeight
fmHeight - botOffset
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
g2.drawLine(0,fmHeight * (row + 1),bi.getWidth(null),fmHeight * (row + 1)); s.updateImage(0,fmHeight * (row + 1),bi.getWidth(null),1);
g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset); s.updateImage(0,fmHeight * (row + 1)- botOffset,bi.getWidth(null),1);
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
g2.drawLine(0,fmHeight * (row + 1),bi.getWidth(null),fmHeight * (row + 1));
g2.drawLine(0,(fmHeight * (row + 1))- botOffset,bi.getWidth(null),(fmHeight * (row + 1))- botOffset);
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
s.updateImage(0,fmHeight * (row + 1),bi.getWidth(null),1);
s.updateImage(0,(fmHeight * (row + 1)) - botOffset,bi.getWidth(null),1);
public void drawCursor(Screen5250 s,int row, int col, int fmWidth, int fmHeight, boolean insertMode, int crossHair, int cursorSize, Color colorCursor, Color colorBg,Color colorWhite, Font...
else
else if (span > 1)
private void distributeSizeAndWeight (int size, double weight, int start, int span, int[] sizes, double[] weights) { if (span == 1) { sizes[start] = Math.max(sizes[start], size); weights[start] = Math....
else if (clone.gridwidth < 0 && clone.gridwidth != GridBagConstraints.REMAINDER && clone.gridwidth != GridBagConstraints.RELATIVE)
else if (clone.gridwidth < 0)
public void setConstraints (Component component, GridBagConstraints constraints) { GridBagConstraints clone = (GridBagConstraints) constraints.clone(); if (clone.gridx < 0) clone.gridx = GridBagConstraints.RELATIVE; if (clone.gridy < 0) clone.gridy = GridBagConstraints.RELATIVE; if (clone.gridwidth =...
else if (clone.gridheight < 0 && clone.gridheight != GridBagConstraints.REMAINDER && clone.gridheight != GridBagConstraints.RELATIVE)
else if (clone.gridheight < 0)
public void setConstraints (Component component, GridBagConstraints constraints) { GridBagConstraints clone = (GridBagConstraints) constraints.clone(); if (clone.gridx < 0) clone.gridx = GridBagConstraints.RELATIVE; if (clone.gridy < 0) clone.gridy = GridBagConstraints.RELATIVE; if (clone.gridwidth =...
public CommandShell(TextConsole cons) throws ShellException { try { this.console = cons; this.out = this.console.getOut(); this.err = this.console.getErr(); this.currentLine = new Line(console, this, out); this.console.addKeyboardListener(this); defaultCommandInvoker = new DefaultCommandInvoker(this); threadCommandIn...
public CommandShell() throws NameNotFoundException, ShellException { this((TextConsole) ((ConsoleManager) InitialNaming .lookup(ConsoleManager.NAME)).getFocus());
public CommandShell(TextConsole cons) throws ShellException { try { this.console = cons; this.out = this.console.getOut(); this.err = this.console.getErr(); this.currentLine = new Line(console, this, out); // listen to the keyboard this.consol...
exitted = true;
exit0();
public void exit(){ exitted = true; console.close(); }
String prompt = System.getProperty(PROMPT_PROPERTY_NAME);
String prompt = (String) AccessController.doPrivileged( new GetPropertyAction(PROMPT_PROPERTY_NAME));
protected String prompt() { String prompt = System.getProperty(PROMPT_PROPERTY_NAME); final StringBuffer result = new StringBuffer(); boolean commandMode = false; try { StringReader reader = new StringReader(prompt); int i; while ((i = reader.read()) != -...
ownThread = Thread.currentThread();
public void run() { // Here, we are running in the CommandShell (main) Thread // so, we can register ourself as the current shell // (it will also be the current shell for all children Thread) try { ShellUtils.getShellManager().registerShell(this); } catch (NameNotFound...
public void start(boolean keepContent) { if (keepContent) { consoleY = console.getCursorY(); } else { consoleX = console.getCursorX(); consoleY = console.getCursorY(); setContent(""); console.setCursor( consoleX,consoleY); }
public void start() { start(false);
public void start(boolean keepContent) { if (keepContent) { // we stay at the same position in X coordinate // only Y may have changed consoleY = console.getCursorY(); } else { consoleX = console.getCursorX(); consoleY = console.getCursorY(); ...
UNKNOWN(String reason, int minor, CompletionStatus completed)
public UNKNOWN(String message)
UNKNOWN(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
super(reason, minor, completed);
super(message, 0, CompletionStatus.COMPLETED_NO);
UNKNOWN(String reason, int minor, CompletionStatus completed) { super(reason, minor, completed); }
AddressPcEntry p = list; int count = 0; while (p != null) { count++; p = p.next; } final int[] table = new int[count*2]; p = list; int i = 0; while (p != null) { table[i+0] = p.pc; table[i+1] = p.offset; i += 2; p = p.next; } this.table = table; this.list = null; }
AddressPcEntry p = list; int count = 0; while (p != null) { count++; p = p.next; } final int[] table = new int[ count * 2]; p = list; int i = 0; int lastOffset = -1; while (p != null) { table[ i + 0] = p.pc; table[ i + 1] = p.offset; if (p.offset < lastOffset) { throw new VirtualMachineError( "unordered offset found")...
final void lock() { AddressPcEntry p = list; int count = 0; while (p != null) { count++; p = p.next; } final int[] table = new int[count*2]; p = list; int i = 0; while (p != null) { table[i+0] = p.pc; table[i+1] = p.offset; i += 2; p = p.next; } this.table = table; this.list = null; }
Border outer = new MetalButtonBorder();
Border outer = new ButtonBorder();
public static Border getButtonBorder() { if (buttonBorder == null) { Border outer = new MetalButtonBorder(); Border inner = getMarginBorder(); buttonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return buttonBorder; }
Border outer = new MetalButtonBorder();
Border outer = new ButtonBorder();
static Border getToolbarButtonBorder() { if (toolbarButtonBorder == null) { Border outer = new MetalButtonBorder(); Border inner = new RolloverMarginBorder(); toolbarButtonBorder = new BorderUIResource.CompoundBorderUIResource (outer, inner); } return toolbarButtonBorder...
Color foreground = view.getForeground(); g.setColor(foreground); Utilities.drawTabbedText(txt, bounds.x, bounds.y, g, tabEx, txt.offset);
Color background = view.getBackground(); g.setColor(background); int width = Utilities.getTabbedTextWidth(txt, g.getFontMetrics(), bounds.x, tabEx, txt.offset); g.fillRect(bounds.x, bounds.y, width, height); g.setColor(view.getForeground()); g.setFont(view.getFont()); if (view.isSuperscript()) Utilities.drawTabbedTe...
public void paint(GlyphView view, Graphics g, Shape a, int p0, int p1) { int height = (int) getHeight(view); Segment txt = view.getText(p0, p1); Rectangle bounds = a.getBounds(); TabExpander tabEx = null; View parent = view.getParent(); if (parent instanceof Tab...
startOffset = element.getStartOffset(); endOffset = element.getEndOffset();
public GlyphView(Element element) { super(element); }
Element el = getElement();
float span = 0;
public float getPreferredSpan(int axis) { Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; // FIXME: Figure out how to determine the x pa...
TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; float span = painter.getSpan(this, el.getStartOffset(), el.getEndOffset(), tabEx, 0.F);
if (axis == X_AXIS) { Element el = getElement(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; span = painter.getSpan(this, getStartOffset(), getEndOffset(), tabEx, 0.F); } else span = painter.getHeight(this);
public float getPreferredSpan(int axis) { Element el = getElement(); checkPainter(); GlyphPainter painter = getGlyphPainter(); TabExpander tabEx = null; View parent = getParent(); if (parent instanceof TabExpander) tabEx = (TabExpander) parent; // FIXME: Figure out how to determine the x pa...
if (parent instanceof ParagraphView) te = (ParagraphView) parent;
if (parent instanceof TabExpander) te = (TabExpander) parent;
public TabExpander getTabExpander() { // TODO: Figure out if this is correct. TabExpander te = null; View parent = getParent(); if (parent instanceof ParagraphView) te = (ParagraphView) parent; return te; }
return 0;
checkPainter(); GlyphPainter painter = getGlyphPainter(); return painter.viewToModel(this, x, y, a, b);
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { // FIXME: not implemented return 0; }
if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction;
int block; if (orientation == SwingConstants.HORIZONTAL) { block = visibleRect.width; }
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; }
return visibleRect.width * direction;
{ int rowHeight = getRowHeight(); if (rowHeight > 0) block = Math.max(rowHeight, (visibleRect.height / rowHeight) * rowHeight); else block = visibleRect.height; } return block;
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) { if (orientation == SwingConstants.VERTICAL) return visibleRect.height * direction; else return visibleRect.width * direction; }
int h = (rowHeight + rowMargin); int delta = h * direction; if (orientation == SwingConstants.VERTICAL)
int unit; if (orientation == SwingConstants.HORIZONTAL) unit = 100; else
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ...
int near = ((visibleRect.y + delta + h / 2) / h) * h; int diff = visibleRect.y + delta - near; delta -= diff;
unit = getRowHeight(); if (rowHeights == null) { if (direction > 0) { int exposed = (visibleRect.y + visibleRect.height) % unit; if (exposed > 0 && exposed < unit - 1) unit = unit - exposed - 1; } else { int exposed = visibleRect.y % unit; if (exposed > 0 && exposed < unit) unit = exposed; }
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ...
return delta;
} return unit;
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int h = (rowHeight + rowMargin); int delta = h * direction; // Round so that the top would start from the row boundary if (orientation == SwingConstants.VERTICAL) { ...
getColumnModel().setColumnSelectionAllowed(c);
if (columnModel.getColumnSelectionAllowed() != c) { columnModel.setColumnSelectionAllowed(c); firePropertyChange("columnSelectionAllowed", !c, c);
public void setColumnSelectionAllowed(boolean c) { getColumnModel().setColumnSelectionAllowed(c); repaint(); }
}
public void setColumnSelectionAllowed(boolean c) { getColumnModel().setColumnSelectionAllowed(c); repaint(); }
}
public void setRowSelectionAllowed(boolean r) { rowSelectionAllowed = r; repaint(); }
checkSelection();
public void setSelectionModel(ListSelectionModel s) { if (s == null) throw new IllegalArgumentException(); ListSelectionModel tmp = selectionModel; if (tmp != null) tmp.removeListSelectionListener(this); if (s != null) s.addListSelectionListener(this); selectionModel = s; }
if ((event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW)) && autoCreateColumnsFromModel) { rowHeights = null; if (getAutoCreateColumnsFromModel()) createDefaultColumnsFromModel(); resizeAndRepaint(); return; } if (event == null || event.getType() == TableModelEvent.INSERT) { if (event != null) { i...
if (event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW)) handleCompleteChange(event); else if (event.getType() == TableModelEvent.INSERT) handleInsert(event); else if (event.getType() == TableModelEvent.DELETE) handleDelete(event); else handleUpdate(event);
public void tableChanged (TableModelEvent event) { // update the column model from the table model if the structure has // changed and the flag autoCreateColumnsFromModel is set if ((event == null || (event.getFirstRow() == TableModelEvent.HEADER_ROW)) && autoCreateColumnsFromModel) { row...
public static final DateFormat getDateInstance (int style)
public static final DateFormat getDateInstance ()
public static final DateFormat getDateInstance (int style) { return getDateInstance (style, Locale.getDefault()); }
return getDateInstance (style, Locale.getDefault());
return getDateInstance (DEFAULT, Locale.getDefault());
public static final DateFormat getDateInstance (int style) { return getDateInstance (style, Locale.getDefault()); }
public TableColumn(int modelIndex)
public TableColumn()
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); }
this(modelIndex, 75, null, null);
this(0, 75, null, null);
public TableColumn(int modelIndex) { this(modelIndex, 75, null, null); }
public JTableHeader(TableColumnModel cm)
public JTableHeader()
public JTableHeader(TableColumnModel cm) { accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table...
accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table = null; updateTableInRealTime = true; cellRenderer = createDefaultRendere...
this(null);
public JTableHeader(TableColumnModel cm) { accessibleContext = new AccessibleJTableHeader(); columnModel = cm == null ? createDefaultColumnModel() : cm; draggedColumn = null; draggedDistance = 0; opaque = true; reorderingAllowed = true; resizingAllowed = true; resizingColumn = null; table...
firePropertyChange(COLUMN_WIDTH_PROPERTY, oldWidth, width);
firePropertyChange("width", oldWidth, width);
public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; firePropertyChange(COLUMN_WIDTH_PROPERTY, oldWidth, width); }
public int getPosition(int index) { int position; int loop; position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; }
public int getPosition(int index) { int position; int loop;
public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition()
return position;
position = 0; for (loop = 0; loop < index; loop++) position += sizes[loop];
public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition()
}
return position; }
public int getPosition(int index) { // Variables int position; int loop; // Process Sizes position = 0; for (loop = 0; loop < index; loop++) { position += sizes[loop]; } // for // Return Position return position; } // getPosition()
int getColumnIndex(Object columnIdentifier);
int getColumnIndex(Object identifier);
int getColumnIndex(Object columnIdentifier);
public void removeEntries(int start, int length) {
public void removeEntries(int start, int length) { int[] array; int index; int arrayIndex;
public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ...
int[] array; int index; int arrayIndex;
if ((start + length) > sizes.length) throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes");
public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ...
if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } array = new int[sizes.length - length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { index += length - 1; } else { array[arrayIndex...
array = new int[sizes.length - length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) index += length - 1; else { array[arrayIndex] = sizes[index]; arrayIndex++; } } }
public void removeEntries(int start, int length) { // Variables int[] array; int index; int arrayIndex; // Sanity Check if ((start + length) > sizes.length) { throw new IllegalArgumentException("Specified start/length that " + "is greater than available sizes"); } // if // Create New Array array = new ...
public void insertEntries(int start, int length, int value) {
public void insertEntries(int start, int length, int value) { int[] array; int index; int arrayIndex; int loop;
public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ...
int[] array; int index; int arrayIndex; int loop;
array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; loop++) { array[arrayIndex] = value; arrayIndex++; } } else { array[arrayIndex] = sizes[index]; arrayIndex++; } }
public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ...
array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; loop++) { array[arrayIndex] = value; arrayIndex++; } } else { array[arrayIndex] = sizes[index]; arrayIndex++; } } }
}
public void insertEntries(int start, int length, int value) { // Variables int[] array; int index; int arrayIndex; int loop; // Create New Array array = new int[sizes.length + length]; arrayIndex = 0; for (index = 0; index < sizes.length; index++) { if (index == start) { for (loop = 0; loop < length; ...
public SizeSequence(int numEntries, int value) { insertEntries(0, numEntries, value); }
public SizeSequence() { sizes = new int[0]; }
public SizeSequence(int numEntries, int value) { insertEntries(0, numEntries, value); } // SizeSequence()
public OptionGroup(String name)
OptionGroup()
public OptionGroup(String name) { this.name = name; }
this.name = name;
public OptionGroup(String name) { this.name = name; }
String sourceMethod, Object result)
String sourceMethod)
public synchronized void exiting(String sourceClass, String sourceMethod, Object result) { if (isLoggable(Level.FINER)) logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", result); }
logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", result);
logp(Level.FINER, sourceClass, sourceMethod, "RETURN");
public synchronized void exiting(String sourceClass, String sourceMethod, Object result) { if (isLoggable(Level.FINER)) logp(Level.FINER, sourceClass, sourceMethod, "RETURN {0}", result); }
empty = other.empty;
void assignFrom(REMatch other) { start = other.start; end = other.end; index = other.index; // need to deep clone? next = other.next; empty = other.empty; }
Locale.setDefault( new Locale( "jp" ) );
protected void setUp() throws Exception { super.setUp(); i18n = (I18N) lookup( I18N.ROLE ); }
public VerifyError(String s) { super(s);
public VerifyError() {
public VerifyError(String s) { super(s); }
Authenticator() { }
public Authenticator() { }
Authenticator(){}
getPasswordAuthentication() { return(null); }
protected PasswordAuthentication getPasswordAuthentication() { return null; }
getPasswordAuthentication(){ return(null);}
{ return(host); }
{ return host; }
protected final String getRequestingHost(){ return(host);}
getRequestingPort() { return(port); }
protected final int getRequestingPort() { return port; }
getRequestingPort(){ return(port);}
getRequestingPrompt() { return(prompt); }
protected final String getRequestingPrompt() { return prompt; }
getRequestingPrompt(){ return(prompt);}
getRequestingProtocol() { return(protocol); }
protected final String getRequestingProtocol() { return protocol; }
getRequestingProtocol(){ return(protocol);}
getRequestingScheme() { return(scheme); }
protected final String getRequestingScheme() { return scheme; }
getRequestingScheme(){ return(scheme);}
getRequestingSite() { return(addr); }
protected final InetAddress getRequestingSite() { return addr; }
getRequestingSite(){ return(addr);}
requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)
public static PasswordAuthentication requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)
requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) throws SecurityException{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme));}
{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme)); }
{ return requestPasswordAuthentication(null, addr, port, protocol, prompt, scheme); }
requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme) throws SecurityException{ return(requestPasswordAuthentication (null, addr, port, protocol, prompt, scheme));}
setDefault(Authenticator def_auth) {
public static void setDefault(Authenticator defAuth) {
setDefault(Authenticator def_auth){ SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new NetPermission("setDefaultAuthenticator")); default_authenticator = def_auth;}
default_authenticator = def_auth; }
defaultAuthenticator = defAuth; }
setDefault(Authenticator def_auth){ SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkPermission(new NetPermission("setDefaultAuthenticator")); default_authenticator = def_auth;}
if (object instanceof UnboxedObject) { return ((UnboxedObject) object).toInt(); }
public int addressOf32(Object object) { final NativeStream.ObjectRef ref = os.getObjectRef(object); try { if (!ref.isResolved()) { throw new RuntimeException("Unresolved object " + object); //builder.emitObject(os, object); } final int offset = (int) os.getBaseAddr() + ref.getOffset(); return offset; ...
if (object instanceof UnboxedObject) { return ((UnboxedObject) object).toLong(); }
public long addressOf64(Object object) { final NativeStream.ObjectRef ref = os.getObjectRef(object); try { if (!ref.isResolved()) { throw new RuntimeException("Unresolved object " + object); //builder.emitObject(os, object); } final long offset = os.getBaseAddr() + ref.getOffset(); return offset; //} ...
public ClassNameArgument(String name, String description) { super(name, description);
public ClassNameArgument(String name, String description, boolean multi) { super(name, description, multi);
public ClassNameArgument(String name, String description) { super(name, description); }
dialog.show();
dialog.setVisible(true);
public void actionPerformed(ActionEvent e) { // process the save transfer information button if (e.getActionCommand().equals("SAVE")) { saveXTFRInfo(); } // process the save transfer information button if (e.getActionCommand().equals("LOAD")) { loadXTFRInfo(); } if (e.getActionCo...
show();
setVisible(true);
private void initXTFRInfo(Properties XTFRProps) { // create some reusable borders and layouts BorderLayout borderLayout = new BorderLayout(); Border emptyBorder = BorderFactory.createEmptyBorder(10, 10, 0, 10); // main panel JPanel mp = new JPanel(); mp.setLayout(borderLayout); // system panel JPanel sp = new ...
if (evt.getKeyCode() == evt.VK_ENTER) {
if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
private void txtONKeyPressed(java.awt.event.KeyEvent evt) { if (evt.getKeyCode() == evt.VK_ENTER) { xtfrButton.doClick(); } }
";decimal separator=" + decChar );
";decimal separator=" + decChar + ";extended metadata=true;translate binary=true");
public boolean connect(String host) { connection = null; hostName = host.toUpperCase(); try { printFTPInfo("Connecting to " + hostName); Driver driver2 = (Driver)Class.forName("com.ibm.as400.access.AS400JDBCDriver").newInstance(); DriverManager.registerDriver(driver2); ...
public JProgressBar(int minimum, int maximum)
public JProgressBar()
public JProgressBar(int minimum, int maximum) { this(HORIZONTAL, minimum, maximum); }
this(HORIZONTAL, minimum, maximum);
this(HORIZONTAL, 0, 100);
public JProgressBar(int minimum, int maximum) { this(HORIZONTAL, minimum, maximum); }
this.rows = rows;
if (rows != this.rows) { this.rows = rows; revalidate(); }
public void setRows(int rows) { if (rows < 0) throw new IllegalArgumentException(); this.rows = rows; }
getThread.yield();
Thread.yield();
protected boolean getFile(String remoteFile, String localFile) { boolean flag = true; if(ftpOutputStream == null) { printFTPInfo("Not connected to any server!"); return false; } if(!loggedIn) { printFTPInfo("Login was not successful! Aborting!"); return false; ...