rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
return 0;
return getAccessibleColumnAtIndex(index);
public int getAccessibleColumn(int index) { // TODO Auto-generated method stub return 0; }
return 0;
return getColumnCount();
public int getAccessibleColumnCount() { // TODO Auto-generated method stub return 0; }
return null;
Accessible descr = null; if (columnDescriptions != null) descr = columnDescriptions[c]; return descr;
public Accessible getAccessibleColumnDescription(int c) { // TODO Auto-generated method stub return null; }
return 0;
return 1;
public int getAccessibleColumnExtentAt(int r, int c) { // TODO Auto-generated method stub return 0; }
return null;
JTableHeader h = getTableHeader(); AccessibleTable header = null; if (h != null) header = new AccessibleTableHeader(h); return header;
public AccessibleTable getAccessibleColumnHeader() { // TODO Auto-generated method stub return null; }
return 0;
return getAccessibleIndexAt(r, c);
public int getAccessibleIndex(int r, int c) { // TODO Auto-generated method stub return 0; }
return 0;
return getAccessibleRowAtIndex(index);
public int getAccessibleRow(int index) { // TODO Auto-generated method stub return 0; }
return 0;
return getRowCount();
public int getAccessibleRowCount() { // TODO Auto-generated method stub return 0; }
return null;
Accessible descr = null; if (rowDescriptions != null) descr = rowDescriptions[r]; return descr;
public Accessible getAccessibleRowDescription(int r) { // TODO Auto-generated method stub return null; }
return 0;
return 1;
public int getAccessibleRowExtentAt(int r, int c) { // TODO Auto-generated method stub return 0; }
return null;
Accessible found = null; int[] selectedRows = getSelectedRows(); int[] selectedColumns = getSelectedColumns(); int numCols = getColumnCount(); int numRows = getRowCount(); if (getRowSelectionAllowed() && getColumnSelectionAllowed()) { int current = -1; int newIndex = current; int lastSelectedRow = -1; for (int j...
public Accessible getAccessibleSelection(int i) { // TODO Auto-generated method stub return null; }
return null;
return summary;
public Accessible getAccessibleSummary() { // TODO Auto-generated method stub return null; }
return null;
return getSelectedColumns();
public int[] getSelectedAccessibleColumns() { // TODO Auto-generated method stub return null; }
return null;
return getSelectedRows();
public int[] getSelectedAccessibleRows() { // TODO Auto-generated method stub return null; }
return false;
int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); return isCellSelected(r, c);
public boolean isAccessibleChildSelected(int i) { // TODO Auto-generated method stub return false; }
return false;
return isColumnSelected(c);
public boolean isAccessibleColumnSelected(int c) { // TODO Auto-generated method stub return false; }
return false;
return isRowSelected(r);
public boolean isAccessibleRowSelected(int r) { // TODO Auto-generated method stub return false; }
return false;
return isCellSelected(r, c);
public boolean isAccessibleSelected(int r, int c) { // TODO Auto-generated method stub return false; }
if (! getRowSelectionAllowed() && ! getColumnSelectionAllowed()) { int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); removeRowSelectionInterval(r, r); removeColumnSelectionInterval(c, c); }
public void removeAccessibleSelection(int i) { // TODO Auto-generated method stub }
selectAll();
public void selectAllAccessibleSelection() { // TODO Auto-generated method stub }
public void setAccessibleCaption(Accessible caption)
public void setAccessibleCaption(Accessible c)
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub }
caption = c;
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub }
if (columnDescriptions == null) columnDescriptions = new Accessible[getAccessibleRowCount()]; columnDescriptions[c] = description;
public void setAccessibleColumnDescription(int c, Accessible description) { // TODO Auto-generated method stub }
if (rowDescriptions == null) rowDescriptions = new Accessible[getAccessibleRowCount()]; rowDescriptions[r] = description;
public void setAccessibleRowDescription(int r, Accessible description) { // TODO Auto-generated method stub }
public void setAccessibleSummary(Accessible summary)
public void setAccessibleSummary(Accessible s)
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub }
summary = s;
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub }
handleRowChange(event);
public void tableRowsDeleted(TableModelEvent event) { // TODO: What to do here, if anything? This might be a hook method for // subclasses... }
handleRowChange(event);
public void tableRowsInserted(TableModelEvent event) { // TODO: What to do here, if anything? This might be a hook method for // subclasses... }
firePropertyChange(AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY, Boolean.FALSE, Boolean.TRUE); int r = getSelectedRow(); int c = getSelectedColumn(); if (r != lastSelectedRow || c != lastSelectedColumn) { Accessible o = getAccessibleAt(lastSelectedRow, lastSelectedColumn); Accessible n = getAccessibleAt(r, c); fireP...
public void valueChanged(ListSelectionEvent event) { // TODO Auto-generated method stub }
setText("");
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRend...
else { setIcon(null); } setText("");
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRend...
if (isEditing()) editingCanceled(null);
public void columnMoved (TableColumnModelEvent event) { revalidate(); repaint(); }
if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i;
int idx0 = Math.max(0, Math.min(getColumnCount() - 1, event.getFirstIndex())); int idxn = Math.max(0, Math.min(getColumnCount() - 1, event.getLastIndex()));
public void columnSelectionChanged (ListSelectionEvent event) { // Does not make sense for the table with the single column. if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += ...
for (i = 0; i < idx0; i++) x0 += columnModel.getColumn(i).getWidth(); int xn = x0; for (i = idx0; i <= idxn; i++) xn += columnModel.getColumn(i).getWidth(); repaint(x0, 0, xn-x0, getHeight());
int minRow = 0; int maxRow = getRowCount() - 1; if (getRowSelectionAllowed()) { minRow = selectionModel.getMinSelectionIndex(); maxRow = selectionModel.getMaxSelectionIndex(); int leadRow = selectionModel.getLeadSelectionIndex(); if (minRow == -1 && maxRow == -1) { minRow = leadRow; maxRow = leadRow; } else { if (lea...
public void columnSelectionChanged (ListSelectionEvent event) { // Does not make sense for the table with the single column. if (getColumnCount() < 2) return; int x0 = 0; int idx0 = event.getFirstIndex(); int idxn = event.getLastIndex(); int i; for (i = 0; i < idx0; i++) x0 += ...
setDefaultEditor(Boolean.class, new DefaultCellEditor(box));
box.setBorder(BorderFactory.createLineBorder(getGridColor(), 2)); box.setBorderPainted(true); booleanInvertingEditor = new DefaultCellEditor(box); setDefaultEditor(Boolean.class, booleanInvertingEditor);
protected void createDefaultEditors() { JCheckBox box = new BooleanCellRenderer().getCheckBox(); setDefaultEditor(Boolean.class, new DefaultCellEditor(box)); }
repaint(); if (tableHeader!=null) tableHeader.repaint();
int leftBoundary = getLeftResizingBoundary(); int width = getWidth() - leftBoundary; repaint(leftBoundary, 0, width, getHeight()); if (tableHeader != null) tableHeader.repaint(leftBoundary, 0, width, tableHeader.getHeight());
public void doLayout() { TableColumn resizingColumn = null; int ncols = getColumnCount(); if (ncols < 1) return; int prefSum = 0; int rCol = -1; if (tableHeader != null) resizingColumn = tableHeader.getResizingColumn(); for (int i = 0; i < ncols; ++i) { TableColumn col = co...
setCellEditor(getCellEditor(row, column));
setCellEditor(editor);
public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(c...
return true;
return editor.shouldSelectCell(null); }
public boolean editCellAt (int row, int column) { // Complete the previous editing session, if still active. if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(c...
if (accessibleContext == null) { AccessibleJTable ctx = new AccessibleJTable(); addPropertyChangeListener(ctx); TableColumnModel tcm = getColumnModel(); tcm.addColumnModelListener(ctx); tcm.getSelectionModel().addListSelectionListener(ctx); getSelectionModel().addListSelectionListener(ctx); accessibleContext = ctx; }
public AccessibleContext getAccessibleContext() { return accessibleContext; }
int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin;
Rectangle cellRect = new Rectangle(0, 0, 0, 0);
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math....
column = Math.max(0, Math.min(column, getColumnCount() - 1)); row = Math.max(0, Math.min(row, getRowCount() - 1));
if (row >= getRowCount()) { cellRect.height = getHeight(); } else if (row >= 0) { cellRect.height = getRowHeight(row); if (rowHeights == null) cellRect.y = row * cellRect.height; else cellRect.y = rowHeights.getPosition(row);
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math....
int x = 0; int y = (height + y_gap) * row;
if (! includeSpacing) { int rMargin = getRowMargin(); cellRect.y += rMargin / 2; cellRect.height -= rMargin; } }
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math....
for (int i = 0; i < column; ++i) x += columnModel.getColumn(i).getWidth();
if (column < 0) { if (! getComponentOrientation().isLeftToRight()) { cellRect.x = getWidth(); } } else if (column >= getColumnCount()) { if (getComponentOrientation().isLeftToRight()) { cellRect.x = getWidth(); } } else { TableColumnModel tcm = getColumnModel(); if (getComponentOrientation().isLeftToRight()) { for (int...
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math....
Rectangle rect = new Rectangle(); if (includeSpacing) rect.setBounds(x, y, width, height +y_gap); else rect.setBounds(x, y, width - x_gap, height); return rect;
return cellRect;
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_gap = columnModel.getColumnMargin(); int y_gap = rowMargin; column = Math....
this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEditorsByColumnClass = new Hashtable(); createDefaultEditors();
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); if (autoCreateColumnsFromModel) createDefaultColumnsFromModel(); this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEdi...
this.rowHeight = 16;
setRowHeight(16);
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); if (autoCreateColumnsFromModel) createDefaultColumnsFromModel(); this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEdi...
int height = getRowHeight() + getRowMargin();
int r;
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; int r = y / height; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; ...
int r = y / height;
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; int r = y / height; if (r < 0 || r >= nrows) return -1; else return r; } else return -1; ...
if (getRowCount() == 0 || getColumnCount() == 0) return;
public void selectAll() { // rowLead and colLead store the current lead selection indices int rowLead = selectionModel.getLeadSelectionIndex(); int colLead = getColumnModel().getSelectionModel().getLeadSelectionIndex(); // the following calls to setSelectionInterval change the lead selection // indice...
tableChanged(new TableModelEvent(dataModel, TableModelEvent.HEADER_ROW));
public void setModel(TableModel m) { // Throw exception is m is null. if (m == null) throw new IllegalArgumentException(); // Don't do anything if setting the current model again. if (dataModel == m) return; TableModel oldModel = dataModel; // Remove table as TableModelListener fro...
rowHeights = null;
public void setRowHeight(int r) { if (r < 1) throw new IllegalArgumentException(); clientRowHeightSet = true; rowHeight = r; revalidate(); repaint(); }
createDefaultEditors(); createDefaultRenderers();
public void setUI(TableUI ui) { super.setUI(ui); }
if (!isCellEditable(row, column)) return;
public void setValueAt(Object value, int row, int column) { if (!isCellEditable(row, column)) return; dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); repaint(getCellRect(row, column, true)); }
if (rowHeights != null) rowHeights.removeEntries(first, last - first + 1);
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) createDefa...
if (getRowCount() < 2) return;
if (isEditing()) editingStopped(null);
public void valueChanged (ListSelectionEvent event) { // Does not make sense for the table with the single row. if (getRowCount() < 2) return; int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); r...
int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); repaint(0, y0, getWidth(), yn-y0);
int first = Math.max(0, Math.min(getRowCount() - 1, event.getFirstIndex())); int last = Math.max(0, Math.min(getRowCount() - 1, event.getLastIndex())); Rectangle rect1 = getCellRect(first, 0, false); Rectangle rect2 = getCellRect(last, getColumnCount() - 1, false); Rectangle dirty = SwingUtilities.computeUnion(rect2.x,...
public void valueChanged (ListSelectionEvent event) { // Does not make sense for the table with the single row. if (getRowCount() < 2) return; int y_gap = rowMargin; int y0 = (getRowHeight() + y_gap) * (event.getFirstIndex()); int yn = (getRowHeight() + y_gap) * (event.getLastIndex()+1); r...
north.requestFocus();
public SwingTest(String title) { super(title); getRootPane().setDoubleBuffered(false); setLocation(100, 100); setSize(400, 400); getContentPane().add(north = new JButton("JButton north"), BorderLayout.NORTH); getContentPane().add(new JTextArea("JTextArea test"), BorderLayou...
System.out.println("frame.size: " + getSize()); System.out.println("frame.insets: " + getInsets()); System.out.println("frame.peer.insets: " + ((FramePeer)getPeer()).getInsets()); System.out.println("frame.cp.bounds: " + getContentPane().getBounds()); System.out.println("north.bounds " + north.getBo...
public void dumpInfo() { System.out.println("frame.size: " + getSize()); System.out.println("frame.insets: " + getInsets()); System.out.println("frame.peer.insets: " + ((FramePeer)getPeer()).getInsets()); System.out.println("frame.cp.bounds: " + getContentPane().getBounds()...
public InterruptedException() { super();
public InterruptedException() {
public InterruptedException() { super(); }
itemListener = new ItemHandler();
public BasicMenuItemUI() { mouseInputListener = createMouseInputListener(menuItem); menuDragMouseListener = createMenuDragMouseListener(menuItem); menuKeyListener = createMenuKeyListener(menuItem); propertyChangeListener = new PropertyChangeHandler(); }
menuItem.addItemListener(itemListener);
protected void installListeners() { menuItem.addMouseListener(mouseInputListener); menuItem.addMouseMotionListener(mouseInputListener); menuItem.addMenuDragMouseListener(menuDragMouseListener); menuItem.addMenuKeyListener(menuKeyListener); menuItem.addPropertyChangeListener(propertyChangeListener); }
menuItem.removeItemListener(itemListener);
protected void uninstallListeners() { menuItem.removeMouseListener(mouseInputListener); menuItem.removeMenuDragMouseListener(menuDragMouseListener); menuItem.removeMenuKeyListener(menuKeyListener); menuItem.removePropertyChangeListener(propertyChangeListener); }
attributes.put(RSAKeyPairGenerator.PREFERRED_ENCODING_FORMAT, new Integer(Registry.ASN1_ENCODING_ID));
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } adaptee.setup(attributes); }
public boolean hasNext() { int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { return true; } } return false;
public boolean hasNext() { return HasNext;
public boolean hasNext() { int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { return true; } } return false; }
boolean outofDataCells = true;
boolean outOfDataCells = true; HasNext = true;
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells =...
outofDataCells = false;
outOfDataCells = false;
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells =...
return !outofDataCells;
if (outOfDataCells) HasNext = false; return !outOfDataCells;
public boolean next() { boolean outofDataCells = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); if (index < axis.getLength()-1) { outofDataCells =...
boolean outofDataCell = true;
boolean outOfDataCells = true; HasNext = true;
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
outofDataCell = false;
outOfDataCells = false;
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
return !outofDataCell;
if (outOfDataCells) HasNext = false; return !outOfDataCells;
public boolean prev() { boolean outofDataCell = true; int size = axisOrderList.size(); for (int i = 0; i < size ; i++) { AxisInterface axis = (AxisInterface) axisOrderList.get(i); int index = ((Integer) locations.get(axis)).intValue(); index--; if (index < 0) { locations.put(axis, ...
getView(i).setParent(this);
getView(i).setParent(null);
public void setParent(View parent) { if (parent == null) { int numChildren = getViewCount(); for (int i = 0; i < numChildren; i++) getView(i).setParent(this); } this.parent = parent; }
header = null; tagTable = null;
protected void finalize() { // XXX What resources should we free? }
throw new Error("not implemented");
int size = getSize(); byte[] data = new byte[size]; System.arraycopy(header.getData(size), 0, data, 0, ProfileHeader.HEADERSIZE); byte[] tt = getTagTable(); System.arraycopy(tt, 0, data, ProfileHeader.HEADERSIZE, tt.length); Enumeration e = tagTable.elements(); while (e.hasMoreElements()) { TagEntry tag = (TagEntry...
public byte[] getData() { throw new Error("not implemented"); }
throw new Error("not implemented");
ProfileHeader header = new ProfileHeader(data); header.verifyHeader(data.length); Hashtable tags = createTagTable(data); if (isRGBProfile(header, tags)) return new ICC_ProfileRGB(data); if (isGrayProfile(header, tags)) return new ICC_ProfileGray(data); return new ICC_Profile(header, tags);
public static ICC_Profile getInstance(byte[] data) { throw new Error("not implemented"); }
throw new Error("not implemented");
return header.getMajorVersion();
public int getMajorVersion() { throw new Error("not implemented"); }
throw new Error("not implemented");
return header.getMinorVersion();
public int getMinorVersion() { throw new Error("not implemented"); }
throw new Error("not implemented");
return header.getProfileColorSpace();
public int getPCSType() { throw new Error("not implemented"); }
throw new Error("not implemented");
return header.getProfileClass();
public int getProfileClass() { throw new Error("not implemented"); }
throw new Error("not implemented");
s.defaultReadObject(); String predef = (String) s.readObject(); byte[] data = (byte[]) s.readObject(); if (data != null) { header = new ProfileHeader(data); tagTable = createTagTable(data); profileID = -1; } if (predef != null) { predef = predef.intern(); if (predef.equals("CS_sRGB")) createProfile(ColorSpace.CS_sRGB...
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException { throw new Error("not implemented"); }
throw new Error("not implemented");
if (isRGBProfile(header, tagTable)) return new ICC_ProfileRGB(getData()); if (isGrayProfile(header, tagTable)) return new ICC_ProfileGray(getData()); return this;
protected Object readResolve() throws ObjectStreamException { throw new Error("not implemented"); }
throw new Error("not implemented");
profileID = -1; if (tagSignature == icSigHead) header = new ProfileHeader(data); else { TagEntry t = new TagEntry(tagSignature, data); tagTable.put(t.hashKey(), t); }
public void setData(int tagSignature, byte[] data) { throw new Error("not implemented"); }
write(new FileOutputStream(filename));
FileOutputStream out = new FileOutputStream(filename); write(out); out.flush(); out.close();
public void write(String filename) throws IOException { write(new FileOutputStream(filename)); }
throw new Error("not implemented");
s.defaultWriteObject(); if (profileID == ColorSpace.CS_sRGB) s.writeObject("CS_sRGB"); else if (profileID == ColorSpace.CS_LINEAR_RGB) s.writeObject("CS_LINEAR_RGB"); else if (profileID == ColorSpace.CS_CIEXYZ) s.writeObject("CS_CIEXYZ"); else if (profileID == ColorSpace.CS_GRAY) s.writeObject("CS_GRAY"); else if (prof...
private void writeObject(ObjectOutputStream s) throws IOException { throw new Error("not implemented"); }
System.arraycopy(c_as_bytes, 0, buf, pos, c_as_bytes.length);
final int c_length = c_as_bytes.length; System.arraycopy(c_as_bytes, 0, buf, pos, c_length); pos += c_length;
public static String unquote(String str) throws MalformedURLException { if (str == null) return null; final int MAX_BYTES_PER_UTF_8_CHAR = 3; byte[] buf = new byte[str.length()*MAX_BYTES_PER_UTF_8_CHAR]; int pos = 0; for (int i = 0; i < str.length(); i++) { char c = str.charAt(i); if (c == '...
internalFrameVetoableChangeListener = new InternalFramePropertyChangeListener();
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeList...
frame.addVetoableChangeListener(internalFrameVetoableChangeListener);
protected void installListeners() { glassPaneDispatcher = createGlassPaneDispatcher(); createInternalFrameListener(); borderListener = createBorderListener(frame); componentListener = createComponentListener(); propertyChangeListener = createPropertyChangeListener(); internalFrameVetoableChangeList...
throw new BAD_OPERATION();
BAD_OPERATION bad = new BAD_OPERATION(); bad.initCause(ex); bad.minor = Minor.Any; throw bad;
public static ServiceDetail extract(Any a) { try { return ((ServiceDetailHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION(); } }
ArrayList childList = childStruct.findAllChildHrefObjects(); if (childList.size() > 0) list.add(childList); }
if (childStruct != null) { ArrayList childList = childStruct.findAllChildHrefObjects(); if (childList != null && childList.size() > 0) { Iterator childIter = childList.iterator(); while (childIter.hasNext()) list.add(childIter.next()); } } }
protected ArrayList findAllChildHrefObjects () { ArrayList list = new ArrayList(); if (this instanceof Structure) { List arrayList = ((Structure) this).getArrayList(); synchronized (arrayList) { Iterator iter = arrayList.iterator(); // Must be in synchronized block while (ite...
public abstract void getInts(int memPtr, char[] dst, int dstOfs, int length);
public abstract void getInts(int memPtr, int[] dst, int dstOfs, int length);
public abstract void getInts(int memPtr, char[] dst, int dstOfs, int length);
serverHostName = new String(tmp, "US-ASCII").trim();
try { serverHostName = new String(tmp, "US-ASCII").trim(); } catch(UnsupportedEncodingException ex) { throw new RuntimeException(ex); }
public BOOTPHeader(SocketBuffer skbuf) { this.opcode = skbuf.get(0); this.hwType = skbuf.get(1); this.hopCount = skbuf.get(3); this.transactionID = skbuf.get32(4); this.secondsElapsed = skbuf.get16(8); this.flags = skbuf.get16(10); this.clientIPAddress = IPv4Address.readFrom(skbuf, 12); this.yourIPAddress = IP...
bootFileName = new String(tmp, "US-ASCII").trim();
try { bootFileName = new String(tmp, "US-ASCII").trim(); } catch(UnsupportedEncodingException ex) { throw new RuntimeException(ex); }
public BOOTPHeader(SocketBuffer skbuf) { this.opcode = skbuf.get(0); this.hwType = skbuf.get(1); this.hopCount = skbuf.get(3); this.transactionID = skbuf.get32(4); this.secondsElapsed = skbuf.get16(8); this.flags = skbuf.get16(10); this.clientIPAddress = IPv4Address.readFrom(skbuf, 12); this.yourIPAddress = IP...
skbuf.set(32, serverHostName.getBytes("US-ASCII"), 0, serverHostName.length());
try { skbuf.set(32, serverHostName.getBytes("US-ASCII"), 0, serverHostName.length()); } catch(UnsupportedEncodingException ex) { throw new RuntimeException(ex); }
public void prefixTo(SocketBuffer skbuf) { skbuf.insert(SIZE); skbuf.set(0, opcode); skbuf.set(1, hwType); skbuf.set(2, clientHwAddress.getLength()); skbuf.set(3, hopCount); skbuf.set32(4, transactionID); skbuf.set16(8, secondsElapsed); skbuf.set16(10, flags); if (clientIPAddress != null) { IPv4Address.writ...
skbuf.set(96, bootFileName.getBytes("US-ASCII"), 0, bootFileName.length());
try { skbuf.set(96, bootFileName.getBytes("US-ASCII"), 0, bootFileName.length()); } catch(UnsupportedEncodingException ex) { throw new RuntimeException(ex); }
public void prefixTo(SocketBuffer skbuf) { skbuf.insert(SIZE); skbuf.set(0, opcode); skbuf.set(1, hwType); skbuf.set(2, clientHwAddress.getLength()); skbuf.set(3, hopCount); skbuf.set32(4, transactionID); skbuf.set16(8, secondsElapsed); skbuf.set16(10, flags); if (clientIPAddress != null) { IPv4Address.writ...
this.setUndecorated(true); this.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
public HeavyWeightPopup(Container c) { this.setContentPane(c); }
public abstract XMLEventWriter createXMLEventWriter(Result result)
public abstract XMLEventWriter createXMLEventWriter(OutputStream stream)
public abstract XMLEventWriter createXMLEventWriter(Result result) throws XMLStreamException;
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader)
public static XMLInputFactory newInstance()
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader...
ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader == null) { loader = XMLInputFactory.class.getClassLoader(); } String className = null; int count = 0; do { className = getFactoryClassName(loader, count++); if (className != null) { try { Class ...
return newInstance(null, null);
public static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader) throws FactoryConfigurationError { ClassLoader loader = classLoader; if (loader == null) { loader = Thread.currentThread().getContextClassLoader(); } if (loader...
enableEvents(AWTEvent.MOUSE_EVENT_MASK);
enableEvents(AWTEvent.MOUSE_MOTION_EVENT_MASK);
public synchronized void addMouseMotionListener(MouseMotionListener listener) { mouseMotionListener = AWTEventMulticaster.add(mouseMotionListener, listener); if (mouseMotionListener != null) enableEvents(AWTEvent.MOUSE_EVENT_MASK); }
if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE)
if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE && !ignoreFocus)
void dispatchEventImpl(AWTEvent e) { Event oldEvent = translateEvent (e); if (oldEvent != null) postEvent (oldEvent); if (eventTypeEnabled (e.id)) { // the trick we use to communicate between dispatch and redispatch // is to have KeyboardFocusManager.redispatch synchronize on the ...
return (mouseListener != null || mouseMotionListener != null || (eventMask & AWTEvent.MOUSE_EVENT_MASK) != 0);
return (mouseMotionListener != null || (eventMask & AWTEvent.MOUSE_MOTION_EVENT_MASK) != 0);
boolean eventTypeEnabled (int type) { if (type > AWTEvent.RESERVED_ID_MAX) return true; switch (type) { case ComponentEvent.COMPONENT_HIDDEN: case ComponentEvent.COMPONENT_MOVED: case ComponentEvent.COMPONENT_RESIZED: case ComponentEvent.COMPONENT_SHOWN: return (componentLi...