bugged
stringlengths 6
599k
| fixed
stringlengths 10
599k
| __index_level_0__
int64 0
1.13M
|
|---|---|---|
public JRadioButton(String text) { this(text, null, false); }
|
public JRadioButton() { this(text, null, false); }
| 4,034
|
public JRadioButton(String text) { this(text, null, false); }
|
public JRadioButton(String text) { this(null, null, false); }
| 4,035
|
public CertificateException(String msg) { super(msg); }
|
public CertificateException() { super(msg); }
| 4,036
|
public CertificateException(String msg) { super(msg); }
|
public CertificateException(String msg) { }
| 4,037
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JComboBox.ENABLED_CHANGED_PROPERTY)) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); } else if (e.getPropertyName().equals(JComboBox.EDITABLE_CHANGED_PROPERTY)) { if (comboBox.isEditable()) { configureEditor(); addEditor(); } else { unconfigureEditor(); removeEditor(); } comboBox.revalidate(); comboBox.repaint(); } else if (e.getPropertyName().equals(JComboBox.MODEL_CHANGED_PROPERTY)) { // remove ListDataListener from old model and add it to new model ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); if (oldModel != null) oldModel.removeListDataListener(listDataListener); if ((ComboBoxModel) e.getNewValue() != null) comboBox.getModel().addListDataListener(listDataListener); } // FIXME: Need to handle changes in other bound properties. }
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("enabled")) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); } else if (e.getPropertyName().equals(JComboBox.EDITABLE_CHANGED_PROPERTY)) { if (comboBox.isEditable()) { configureEditor(); addEditor(); } else { unconfigureEditor(); removeEditor(); } comboBox.revalidate(); comboBox.repaint(); } else if (e.getPropertyName().equals(JComboBox.MODEL_CHANGED_PROPERTY)) { // remove ListDataListener from old model and add it to new model ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); if (oldModel != null) oldModel.removeListDataListener(listDataListener); if ((ComboBoxModel) e.getNewValue() != null) comboBox.getModel().addListDataListener(listDataListener); } // FIXME: Need to handle changes in other bound properties. }
| 4,038
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JComboBox.ENABLED_CHANGED_PROPERTY)) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); } else if (e.getPropertyName().equals(JComboBox.EDITABLE_CHANGED_PROPERTY)) { if (comboBox.isEditable()) { configureEditor(); addEditor(); } else { unconfigureEditor(); removeEditor(); } comboBox.revalidate(); comboBox.repaint(); } else if (e.getPropertyName().equals(JComboBox.MODEL_CHANGED_PROPERTY)) { // remove ListDataListener from old model and add it to new model ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); if (oldModel != null) oldModel.removeListDataListener(listDataListener); if ((ComboBoxModel) e.getNewValue() != null) comboBox.getModel().addListDataListener(listDataListener); } // FIXME: Need to handle changes in other bound properties. }
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JComboBox.ENABLED_CHANGED_PROPERTY)) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); } else if (e.getPropertyName().equals("editable")) { if (comboBox.isEditable()) { configureEditor(); addEditor(); } else { unconfigureEditor(); removeEditor(); } comboBox.revalidate(); comboBox.repaint(); } else if (e.getPropertyName().equals(JComboBox.MODEL_CHANGED_PROPERTY)) { // remove ListDataListener from old model and add it to new model ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); if (oldModel != null) oldModel.removeListDataListener(listDataListener); if ((ComboBoxModel) e.getNewValue() != null) comboBox.getModel().addListDataListener(listDataListener); } // FIXME: Need to handle changes in other bound properties. }
| 4,039
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JComboBox.ENABLED_CHANGED_PROPERTY)) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); } else if (e.getPropertyName().equals(JComboBox.EDITABLE_CHANGED_PROPERTY)) { if (comboBox.isEditable()) { configureEditor(); addEditor(); } else { unconfigureEditor(); removeEditor(); } comboBox.revalidate(); comboBox.repaint(); } else if (e.getPropertyName().equals(JComboBox.MODEL_CHANGED_PROPERTY)) { // remove ListDataListener from old model and add it to new model ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); if (oldModel != null) oldModel.removeListDataListener(listDataListener); if ((ComboBoxModel) e.getNewValue() != null) comboBox.getModel().addListDataListener(listDataListener); } // FIXME: Need to handle changes in other bound properties. }
|
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JComboBox.ENABLED_CHANGED_PROPERTY)) { arrowButton.setEnabled(comboBox.isEnabled()); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().setEnabled(comboBox .isEnabled()); } else if (e.getPropertyName().equals(JComboBox.EDITABLE_CHANGED_PROPERTY)) { if (comboBox.isEditable()) { configureEditor(); addEditor(); } else { unconfigureEditor(); removeEditor(); } comboBox.revalidate(); comboBox.repaint(); } else if (e.getPropertyName().equals("dataModel")) { // remove ListDataListener from old model and add it to new model ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); if (oldModel != null) oldModel.removeListDataListener(listDataListener); if ((ComboBoxModel) e.getNewValue() != null) comboBox.getModel().addListDataListener(listDataListener); } // FIXME: Need to handle changes in other bound properties. }
| 4,040
|
public void mouseClicked(MouseEvent e) { MenuElement[] me = menuBar.getSubElements(); for (int i = 0; i < me.length; i++) menuBar.getMenu(i).setSelected(false); }
|
public void mouseClicked(MouseEvent e) { MenuElement[] me = menuBar.getSubElements(); for (int i = 0; i < me.length; i++) { JMenu menu = menuBar.getMenu(i); if (menu != null) menu.setSelected(false); } }
| 4,042
|
public void mousePressed(MouseEvent e) { if (!SwingUtilities.isRightMouseButton(e) && !isSomethingBounded) start(canvas.translateStart(e.getPoint()));// System.out.println("mouse pressed rb"); }
|
public void mousePressed(MouseEvent e) { if (!SwingUtilities.isRightMouseButton(e) && !isSomethingBounded) start(canvas.translateStart(e.getPoint()));// System.out.println("mouse pressed rb"); }
| 4,043
|
public void mouseDragged(MouseEvent e) { if(!SwingUtilities.isRightMouseButton(e) && getCanvas().canDrawRubberBand(RubberBand.this)) { erase(); stop(canvas.translateEnd(e.getPoint())); draw(); notifyRubberBandCanvas(); } }
|
public void mouseDragged(MouseEvent e) { if(!SwingUtilities.isRightMouseButton(e) && getCanvas().canDrawRubberBand(RubberBand.this)) { erase(); stop(canvas.translateEnd(e.getPoint())); draw(); notifyRubberBandCanvas(); } }
| 4,044
|
public void setBorderPainted(boolean painted) { if (painted != paintBorder) { paintBorder = painted; firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, ! paintBorder, paintBorder); repaint(); } } // setBorderPainted()
|
public void setBorderPainted(boolean painted) { if (painted != paintBorder) { paintBorder = painted; firePropertyChange("borderPainted", ! paintBorder, paintBorder); repaint(); } } // setBorderPainted()
| 4,045
|
public void setFloatable(boolean floatable) { if (floatable != this.floatable) { this.floatable = floatable; firePropertyChange(FLOATABLE_CHANGED_PROPERTY, ! floatable, floatable); } } // setFloatable()
|
public void setFloatable(boolean floatable) { if (floatable != this.floatable) { this.floatable = floatable; firePropertyChange("floatable", ! floatable, floatable); } } // setFloatable()
| 4,046
|
public void setMargin(Insets margin) { if ((this.margin != null && margin == null) || (this.margin == null && margin != null) || (margin != null && this.margin != null && (margin.left != this.margin.left || margin.right != this.margin.right || margin.top != this.margin.top || margin.bottom != this.margin.bottom))) { Insets oldMargin = this.margin; this.margin = margin; firePropertyChange(MARGIN_CHANGED_PROPERTY, oldMargin, this.margin); revalidate(); repaint(); } } // setMargin()
|
public void setMargin(Insets margin) { if ((this.margin != null && margin == null) || (this.margin == null && margin != null) || (margin != null && this.margin != null && (margin.left != this.margin.left || margin.right != this.margin.right || margin.top != this.margin.top || margin.bottom != this.margin.bottom))) { Insets oldMargin = this.margin; this.margin = margin; firePropertyChange("margin", oldMargin, this.margin); revalidate(); repaint(); } } // setMargin()
| 4,047
|
public void setOrientation(int orientation) { if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); if (orientation != this.orientation) { int oldOrientation = this.orientation; this.orientation = orientation; firePropertyChange(ORIENTATION_CHANGED_PROPERTY, oldOrientation, this.orientation); revalidate(); repaint(); } } // setOrientation()
|
public void setOrientation(int orientation) { if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); if (orientation != this.orientation) { int oldOrientation = this.orientation; this.orientation = orientation; firePropertyChange(ORIENTATION_CHANGED_PROPERTY, oldOrientation, this.orientation); revalidate(); repaint(); } } // setOrientation()
| 4,048
|
public void setRollover(boolean b) { if (b != rollover) { rollover = b; firePropertyChange(ROLLOVER_CHANGED_PROPERTY, ! rollover, rollover); revalidate(); repaint(); } }
|
public void setRollover(boolean b) { if (b != rollover) { rollover = b; firePropertyChange("rollover", ! rollover, rollover); revalidate(); repaint(); } }
| 4,049
|
void dump() { // Climb up the hierarchy to the parent. View parent = getParent(); if (parent != null) parent.dump(); else dump(0); }
|
protected void dump() { // Climb up the hierarchy to the parent. View parent = getParent(); if (parent != null) parent.dump(); else dump(0); }
| 4,050
|
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); // FIXME: What about this bias stuff? int startIndex = getViewIndex(startOffset, Position.Bias.Forward); int endIndex = getViewIndex(endOffset, Position.Bias.Forward); int index = -1; int addLength = -1; if (ec != null) { index = ec.getIndex(); addLength = ec.getChildrenAdded().length; } if (startIndex >= 0 && endIndex >= 0) { for (int i = startIndex; i <= endIndex; i++) { // Skip newly added child views. if (index >= 0 && i >= index && i < (index+addLength)) continue; View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } } } }
|
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); if (count > 0) { int startOffset = ev.getOffset(); int endOffset = startOffset + ev.getLength(); // FIXME: What about this bias stuff? int startIndex = getViewIndex(startOffset, Position.Bias.Backward); int endIndex = getViewIndex(endOffset, Position.Bias.Forward); int index = -1; int addLength = -1; if (ec != null) { index = ec.getIndex(); addLength = ec.getChildrenAdded().length; } if (startIndex >= 0 && endIndex >= 0) { for (int i = startIndex; i <= endIndex; i++) { // Skip newly added child views. if (index >= 0 && i >= index && i < (index+addLength)) continue; View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } } } }
| 4,051
|
protected static boolean isFree(byte data, int index) { //byte bitIndex = (byte) (index % 8); byte mask = (byte) (1 << index); return ((data & mask) == 0)? true : false; }
|
protected static boolean isFree(byte[] data, int index) { int byteIndex = index / 8; byte bitIndex = (byte) (index % 8); byte mask = (byte) (1 << bitIndex); //byte bitIndex = (byte) (index % 8); byte mask = (byte) (1 << index); return ((data & mask) == 0)? true : false; }
| 4,052
|
protected static boolean isFree(byte data, int index) { //byte bitIndex = (byte) (index % 8); byte mask = (byte) (1 << index); return ((data & mask) == 0)? true : false; }
|
protected static boolean isFree(byte data, int index) { //byte bitIndex = (byte) (index % 8); byte mask = (byte) (1 << index); return ((data & mask) == 0)? true : false; }
| 4,053
|
private void paintSimple(Graphics g, JViewport v, Component view, Point pos, Rectangle viewBounds, Rectangle portBounds) { Rectangle oldClip = g.getClipBounds (); g.setClip (oldClip.intersection (viewBounds)); g.translate (-pos.x, -pos.y); try { view.paint(g); } finally { g.translate (pos.x, pos.y); g.setClip (oldClip); } }
|
private void paintSimple(Graphics g, JViewport v, Component view, Point pos, Rectangle viewBounds, Rectangle portBounds) { Rectangle oldClip = g.getClipBounds (); g.setClip (oldClip.intersection (viewBounds)); g.translate (-pos.x, -pos.y); try { view.paint(g); } finally { g.translate (pos.x, pos.y); g.setClip (oldClip); } }
| 4,054
|
public boolean editCellAt (int row, int column) { oldCellValue = getValueAt(row, column); setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(cellEditor, row, column); cellEditor.addCellEditorListener(this); rowBeingEdited = row; columnBeingEdited = column; setValueAt(editorComp, row, column); ((JTextField)editorComp).requestFocusInWindow(false); editorTimer.start(); return true; }
|
public boolean editCellAt (int row, int column) { if (isEditing()) editingStopped(new ChangeEvent("editingStopped")); editingRow = row; editingColumn = column; setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(cellEditor, row, column); cellEditor.addCellEditorListener(this); rowBeingEdited = row; columnBeingEdited = column; setValueAt(editorComp, row, column); ((JTextField)editorComp).requestFocusInWindow(false); editorTimer.start(); return true; }
| 4,059
|
public boolean editCellAt (int row, int column) { oldCellValue = getValueAt(row, column); setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(cellEditor, row, column); cellEditor.addCellEditorListener(this); rowBeingEdited = row; columnBeingEdited = column; setValueAt(editorComp, row, column); ((JTextField)editorComp).requestFocusInWindow(false); editorTimer.start(); return true; }
|
public boolean editCellAt (int row, int column) { oldCellValue = getValueAt(row, column); setCellEditor(getCellEditor(row, column)); editorComp = prepareEditor(cellEditor, row, column); cellEditor.addCellEditorListener(this); rowBeingEdited = row; columnBeingEdited = column; setValueAt(editorComp, row, column); ((JTextField)editorComp).requestFocusInWindow(false); editorTimer.start(); return true; }
| 4,060
|
public void editingCanceled (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
|
public void editingCanceled (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
| 4,061
|
public void editingCanceled (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
|
public void editingCanceled (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
| 4,062
|
public void editingCanceled (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
|
public void editingCanceled (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove ((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(oldCellValue, rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
| 4,063
|
public void editingStopped (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
|
public void editingStopped (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
| 4,064
|
public void editingStopped (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
|
public void editingStopped (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
| 4,065
|
public void editingStopped (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
|
public void editingStopped (ChangeEvent event) { if (rowBeingEdited > -1 && columnBeingEdited > -1) { if (getValueAt(rowBeingEdited, columnBeingEdited) instanceof JTextField) { remove((Component)getValueAt(rowBeingEdited, columnBeingEdited)); setValueAt(((JTextField)editorComp).getText(), rowBeingEdited, columnBeingEdited); } rowBeingEdited = -1; columnBeingEdited = -1; } editorTimer.stop(); editorComp = null; cellEditor = null; requestFocusInWindow(false); repaint(); }
| 4,066
|
public TableCellEditor getDefaultEditor(Class columnClass) { if (defaultEditorsByColumnClass.containsKey(columnClass)) return (TableCellEditor) defaultEditorsByColumnClass.get(columnClass); else { // FIXME: We have at least an editor for Object.class in our defaults. TableCellEditor r = new DefaultCellEditor(new JTextField()); defaultEditorsByColumnClass.put(columnClass, r); return r; } }
|
public TableCellEditor getDefaultEditor(Class columnClass) { if (defaultEditorsByColumnClass.containsKey(columnClass)) return (TableCellEditor) defaultEditorsByColumnClass.get(columnClass); else { // FIXME: We have at least an editor for Object.class in our defaults. JTextField t = new TableTextField(); TableCellEditor r = new DefaultCellEditor(t); defaultEditorsByColumnClass.put(columnClass, r); return r; } }
| 4,067
|
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight(); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return i; y -= height; } } return -1; }
|
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight() + getRowMargin(); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return i; y -= height; } } return -1; }
| 4,068
|
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight(); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return i; y -= height; } } return -1; }
|
public int rowAtPoint(Point point) { if (point != null) { int nrows = getRowCount(); int height = getRowHeight(); int y = point.y; for (int i = 0; i < nrows; ++i) { if (0 <= y && y < height) return i; y -= height; } } return -1; }
| 4,069
|
public void setValueAt(Object value, int row, int column) { if (!isCellEditable(row, column)) return; if (value instanceof Component) add((Component)value); dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); }
|
public void setValueAt(Object value, int row, int column) { if (!isCellEditable(row, column)) return; if (value instanceof Component) add((Component)value); dataModel.setValueAt(value, row, convertColumnIndexToModel(column)); }
| 4,071
|
public int getHeight(ImageObserver observer) { return -1; }
|
public int getHeight(ImageObserver observer) { return 1; }
| 4,073
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
|
public ImageProducer getSource() { return new ImageProducer() { Set<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
| 4,074
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); synchronized public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
| 4,075
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } synchronized public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
| 4,076
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } synchronized public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
| 4,077
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
|
public ImageProducer getSource() { return new ImageProducer() { HashSet<ImageConsumer> consumers = new HashSet<ImageConsumer>(); public void addConsumer(ImageConsumer ic) { consumers.add(ic); } public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); } public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); } synchronized public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } } public void requestTopDownLeftRightResend(ImageConsumer ic) { startProduction(ic); } }; }
| 4,078
|
public void addConsumer(ImageConsumer ic) { consumers.add(ic); }
|
synchronized public void addConsumer(ImageConsumer ic) { consumers.add(ic); }
| 4,079
|
public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); }
|
synchronized public boolean isConsumer(ImageConsumer ic) { return consumers.contains(ic); }
| 4,080
|
public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); }
|
synchronized public void removeConsumer(ImageConsumer ic) { consumers.remove(ic); }
| 4,081
|
public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } }
|
synchronized public void startProduction(ImageConsumer ic) { consumers.add(ic); for (ImageConsumer c : consumers) { c.imageComplete(ImageConsumer.IMAGEERROR); } }
| 4,082
|
public int getWidth(ImageObserver observer) { return -1; }
|
public int getWidth(ImageObserver observer) { return 1; }
| 4,083
|
public Font createFont(int format, InputStream stream) { // TODO Auto-generated method stub return null; }
|
public Font createFont(int format, InputStream stream) { // TODO Auto-generated method stub return getFontManager().createFont(format, stream); }
| 4,084
|
public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE_SMOOTH: case SCALE_AREA_AVERAGING: default: throw new Error("not implemented"); } }
|
public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE_SMOOTH: case SCALE_AREA_AVERAGING: default: throw new Error("not implemented"); } }
| 4,085
|
public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE_SMOOTH: case SCALE_AREA_AVERAGING: default: throw new Error("not implemented"); } }
|
public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE_SMOOTH: throw new Error("SCALE_SMOOTH: not implemented"); default: throw new Error("not implemented"); } }
| 4,086
|
public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE_SMOOTH: case SCALE_AREA_AVERAGING: default: throw new Error("not implemented"); } }
|
public Image getScaledInstance(int width, int height, int flags) { switch (flags) { case SCALE_DEFAULT: case SCALE_FAST: case SCALE_REPLICATE: ImageProducer producer = new FilteredImageSource(this.getSource(), new ReplicateScaleFilter(width, height)); return Toolkit.getDefaultToolkit().createImage(producer); case SCALE_SMOOTH: case SCALE_AREA_AVERAGING: default: throw new Error("Unknown flag or not implemented: " + flags); } }
| 4,087
|
public JNodeFontPeer(String name, Map attrs) { super(name, attrs); // TODO Auto-generated constructor stub }
|
public JNodeFontPeer(String name, Map attrs) { super(name, attrs); // TODO Auto-generated constructor stub }
| 4,089
|
protected String basicXMLWriter ( Writer outputWriter, String strIndent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) throws java.io.IOException { // init some internals boolean writeHrefAttribute = false; OutputStream dataOutputStream = null; Writer dataOutputWriter = null; boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); String indent = ""; // get the node name String nodeName = getClassXDFNodeName(); if (newNodeNameString != null) nodeName = newNodeNameString; // indent up one indent = indent + strIndent; //open node if (niceOutput) outputWriter.write( indent); outputWriter.write("<" + nodeName ); Entity hrefObj = getHref(); XMLDataIOStyle readObj = parentArray.getXMLDataIOStyle(); // Well here decide if we need to write out to another file, // In practice the systemId may correspond to an internet URI, // and we cant always write to that (!). Its not clear under which // situations we do want to do so. :P For the time being we just // take the following 'dumb' approach. if (hrefObj != null) { String fileName = hrefObj.getSystemId(); String hrefName = hrefObj.getName(); // Some parsers return systemId with the 'file:' prefix. Java // doenst currently understand this so we need to peal it off. int index = fileName.indexOf("file:"); if (index == 0) fileName = fileName.substring(5); if(hrefName == null) { Log.errorln("Error: href object in dataCube lacks name. Data being written into metadata instead.\n"); } else if (fileName != null) { writeHrefAttribute = true; try { dataOutputStream = new FileOutputStream(fileName); } catch (IOException e) { //oops, something. is wrong, writ out to the passed in OutputStream Log.warnln("Error: cannot open file:"+fileName+" for writing. Data being written into metadata.\n"); writeHrefAttribute = false; } } else { Log.warnln("Error: href:"+hrefName+" lacks systemId, cannot write data to a separate file."); Log.warnln("Data are being written into metadata instead.\n"); writeHrefAttribute = false; } } // write data node attributes if (writeHrefAttribute) { outputWriter.write( " "+HREF_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, hrefObj.getName()); outputWriter.write( "\""); } String checksum = getChecksum(); if (checksum != null) { outputWriter.write( " "+CHECKSUM_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, checksum.toString()); outputWriter.write( "\""); } /* String encoding = getEncoding(); if (encoding != null) { outputWriter.write( " "+ENCODING_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, encoding.toString()); outputWriter.write( "\""); }*/ String compress = getCompression(); if (compress != null && dataOutputStream != null ) { outputWriter.write( " "+COMPRESSION_TYPE_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, compress.toString()); outputWriter.write( "\""); if (hrefObj == null) { Log.errorln("Cant write compressed data within the XML file (use href instead for an external file). Aborting write."); return nodeName; } // change the data outputWriter to match if (compress.equals(Constants.DATA_COMPRESSION_GZIP)) { try { dataOutputStream = new GZIPOutputStream(dataOutputStream); } catch (java.io.IOException e) { Log.errorln("Cant open compressed (GZIP) outputstream to write to an href. Aborting."); return nodeName; } } else if (compress.equals(Constants.DATA_COMPRESSION_ZIP)) { dataOutputStream = new ZipOutputStream(dataOutputStream); try { ((ZipOutputStream) dataOutputStream).putNextEntry(new ZipEntry(hrefObj.getSystemId())); // write only to the first entry for now } catch (java.io.IOException e) { Log.errorln("Cant open compressed (ZIP) outputstream to write to an href. Aborting."); return nodeName; } } else { Log.errorln("Error: cant write data with compression type:"+compress+". Ignoring request."); return nodeName; } } if (writeHrefAttribute) outputWriter.write("/>"); //we just close the data node now else outputWriter.write(">"); //end of opening code // Locator currentLocator = parentArray.createLocator(); // List axisList = parentArray.getAxes(); List axisList = readObj.getIOAxesOrder(); if (axisList == null || axisList.size() == 0) { // we dont have axes to direct the write?!?. Well, then, we // wont be writing Data to either the XML file or an Href Log.errorln("No axes defined! Cannot write data. Ignoring request."); } else { // writing Data to either the XML file or an Href // // Init important dataFormat information into arrays, this // will help speed up long writes. Each entry corresponds to // cached information about a particular dataFormat object. In // the case where no FieldAxis (e.g. Fields) exist within the array, // then we only have 1 entry in each of these arrays. String[] noDataValues; //stores the NoDataValues for the parentArray, //used in writing out when NoDataException is caught String[] formatPattern; // cache of Java Formatter patterns for correct // formatting of output values. String[] negExponentialPattern; // Stupid Java DecimalFormatter cant work properly // on exponential data, so we compensate with this. String[] intFlag; // Integer format flag int[] numOfBytes; // number of bytes each data format has. DataFormat dataFormat[] = parentArray.getDataFormatList(); if (parentArray.hasFieldAxis()) { // If we have field axis then prepare to init multiple size arrays List fields = parentArray.getFieldAxis().getFields(); int nrofDataFormats = fields.size(); noDataValues = new String[nrofDataFormats]; formatPattern = new String[nrofDataFormats]; intFlag = new String[nrofDataFormats]; negExponentialPattern = new String[nrofDataFormats]; numOfBytes = new int[nrofDataFormats]; // now assign values for (int i = 0; i < nrofDataFormats; i++) { formatPattern[i] = dataFormat[i].getFormatPattern(); numOfBytes[i] = dataFormat[i].numOfBytes(); Field field = (Field) fields.get(i); if (field != null && field.getNoDataValue() != null) noDataValues[i] = field.getNoDataValue().toString(); if (dataFormat[i] instanceof FloatDataFormat) negExponentialPattern[i] = ((FloatDataFormat) dataFormat[i]).getNegativeExponentFormatPattern(); else negExponentialPattern[i] = null; if (dataFormat[i] instanceof IntegerDataFormat) intFlag[i] = ((IntegerDataFormat) dataFormat[i]).getType(); else intFlag[i] = null; } } else { // no field axis? then only one dataFormat and we get it from the Array // init single size arrays noDataValues = new String[1]; formatPattern = new String[1]; negExponentialPattern = new String[1]; intFlag = new String[1]; numOfBytes = new int[1]; // assign values formatPattern[0] = dataFormat[0].getFormatPattern(); numOfBytes[0] = dataFormat[0].numOfBytes(); String value = (String) null; if (parentArray.getNoDataValue() != null) { value = parentArray.getNoDataValue().toString(); // this is a HACK } noDataValues[0] = value; if (dataFormat[0] instanceof FloatDataFormat) negExponentialPattern[0] = ((FloatDataFormat) dataFormat[0]).getNegativeExponentFormatPattern(); else negExponentialPattern[0] = null; if (dataFormat[0] instanceof IntegerDataFormat) intFlag[0] = ((IntegerDataFormat) dataFormat[0]).getType(); else intFlag[0] = null; } // init the dataOutputWriter properly. To a file or to the same writer as the // rest of the XML metadata? if (dataOutputStream != null) { // if this exists, then we are re-directing to an outside file. // wrap the outputstream (compressed or otherwise) with bufferedWriter dataOutputWriter = new BufferedWriter(new OutputStreamWriter(dataOutputStream)); } else { // goes to same spot as meta-data, e.g. just use the XML output writer dataOutputWriter = outputWriter; } // some info about the format Object String endian = readObj.getEndian(); // now, based on outputstyle, write out the data if (readObj instanceof TaggedXMLDataIOStyle) { String[] tags = ((TaggedXMLDataIOStyle)readObj).getAxisTags(); int[] axes = getMaxDataIndex(readObj); int stop = axes.length; int[] axisLength = new int[stop]; for (int i = 0; i < stop; i++) { axisLength[i] = axes[stop - 1 - i]; } int whichTagIsFieldAxis = -1; if (parentArray.hasFieldAxis()) { for (int i = 0; i < stop; i++) { whichTagIsFieldAxis = i; AxisInterface axisObj = ((TaggedXMLDataIOStyle) readObj).getAxisByTag("d" + i); if (axisObj instanceof FieldAxis) { break; } } } Locator taggedLocator = parentArray.createLocator(); AxisInterface fastestAxis = (AxisInterface) axisList.get(0); int nrofDataFormats = dataFormat.length; writeTaggedData( dataOutputWriter, taggedLocator, indent, axisLength, tags, 0, 0, fastestAxis, noDataValues, nrofDataFormats, dataFormat, numOfBytes, formatPattern, negExponentialPattern, endian, intFlag, whichTagIsFieldAxis ); // this *shouldnt* be needed, but tests with both Java 1.2.2 and 1.3.0 // on SUN and Linux platforms show that it is. Hopefully we can remove // this in the future. dataOutputWriter.flush(); } //done dealing with with TaggedXMLDataIOSytle else { if (readObj instanceof DelimitedXMLDataIOStyle) { AxisInterface fastestAxis = (AxisInterface) axisList.get(0); writeDelimitedData( dataOutputWriter, (DelimitedXMLDataIOStyle) readObj, fastestAxis, noDataValues, dataFormat, numOfBytes, formatPattern, negExponentialPattern, endian, intFlag, writeHrefAttribute ? false : true ); } else { writeFormattedData( dataOutputWriter, (FormattedXMLDataIOStyle) readObj, noDataValues, dataFormat, numOfBytes, formatPattern, negExponentialPattern, endian, intFlag, writeHrefAttribute ? false : true ); } if (writeHrefAttribute) { try { // should work as flush() too, so no call needed here. dataOutputWriter.close(); } catch (java.io.IOException e) { Log.errorln("Cant close dataOuputStream! Aborting."); return nodeName; } } } } // finish writing data to XML/Href //close the data section appropriately if (!writeHrefAttribute && niceOutput) { outputWriter.write( Constants.NEW_LINE+indent); } // If we didnt write Href attribute, then means that data // were put into document. We need to close the open data // node appropriately. if (!writeHrefAttribute) outputWriter.write( "</" + nodeName + ">"); // if (niceOutput) // outputWriter.write( Constants.NEW_LINE); return nodeName; }
|
protected String basicXMLWriter ( Writer outputWriter, String strIndent, boolean dontCloseNode, String newNodeNameString, String noChildObjectNodeName ) throws java.io.IOException { // init some internals boolean writeHrefAttribute = false; OutputStream dataOutputStream = null; Writer dataOutputWriter = null; boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); String indent = ""; // get the node name String nodeName = getClassXDFNodeName(); if (newNodeNameString != null) nodeName = newNodeNameString; // indent up one indent = indent + strIndent; //open node if (niceOutput) outputWriter.write( indent); outputWriter.write("<" + nodeName ); Entity hrefObj = getHref(); XMLDataIOStyle readObj = parentArray.getXMLDataIOStyle(); // Well here decide if we need to write out to another file, // In practice the systemId may correspond to an internet URI, // and we cant always write to that (!). Its not clear under which // situations we do want to do so. :P For the time being we just // take the following 'dumb' approach. if (hrefObj != null) { String fileName = hrefObj.getSystemId(); String hrefName = hrefObj.getName(); // Some parsers return systemId with the 'file:' prefix. Java // doenst currently understand this so we need to peal it off. int index = fileName.indexOf("file:"); if (index == 0) fileName = fileName.substring(5); if(hrefName == null) { Log.errorln("Error: href object in dataCube lacks name. Data being written into metadata instead.\n"); } else if (fileName != null) { writeHrefAttribute = true; try { dataOutputStream = new FileOutputStream(fileName); } catch (IOException e) { //oops, something. is wrong, writ out to the passed in OutputStream Log.warnln("Error: cannot open file:"+fileName+" for writing. Data being written into metadata.\n"); writeHrefAttribute = false; } } else { Log.warnln("Error: href:"+hrefName+" lacks systemId, cannot write data to a separate file."); Log.warnln("Data are being written into metadata instead.\n"); writeHrefAttribute = false; } } // write data node attributes if (writeHrefAttribute) { outputWriter.write( " "+HREF_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, hrefObj.getName()); outputWriter.write( "\""); } String checksum = getChecksum(); if (checksum != null) { outputWriter.write( " "+CHECKSUM_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, checksum.toString()); outputWriter.write( "\""); } /* String encoding = getEncoding(); if (encoding != null) { outputWriter.write( " "+ENCODING_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, encoding.toString()); outputWriter.write( "\""); }*/ String compress = getCompression(); if (compress != null && dataOutputStream != null ) { outputWriter.write( " "+COMPRESSION_TYPE_XML_ATTRIBUTE_NAME+"=\""); writeOutAttribute(outputWriter, compress.toString()); outputWriter.write( "\""); if (hrefObj == null) { Log.errorln("Cant write compressed data within the XML file (use href instead for an external file). Aborting write."); return nodeName; } // change the data outputWriter to match if (compress.equals(Constants.DATA_COMPRESSION_GZIP)) { try { dataOutputStream = new GZIPOutputStream(dataOutputStream); } catch (java.io.IOException e) { Log.errorln("Cant open compressed (GZIP) outputstream to write to an href. Aborting."); return nodeName; } } else if (compress.equals(Constants.DATA_COMPRESSION_ZIP)) { dataOutputStream = new ZipOutputStream(dataOutputStream); try { ((ZipOutputStream) dataOutputStream).putNextEntry(new ZipEntry(hrefObj.getSystemId())); // write only to the first entry for now } catch (java.io.IOException e) { Log.errorln("Cant open compressed (ZIP) outputstream to write to an href. Aborting."); return nodeName; } } else { Log.errorln("Error: cant write data with compression type:"+compress+". Ignoring request."); return nodeName; } } if (writeHrefAttribute) outputWriter.write("/>"); //we just close the data node now else outputWriter.write(">"); //end of opening code // Locator currentLocator = parentArray.createLocator(); // List axisList = parentArray.getAxes(); List axisList = readObj.getIOAxesOrder(); if (axisList == null || axisList.size() == 0) { // we dont have axes to direct the write?!?. Well, then, we // wont be writing Data to either the XML file or an Href Log.errorln("No axes defined! Cannot write data. Ignoring request."); } else { // writing Data to either the XML file or an Href // // Init important dataFormat information into arrays, this // will help speed up long writes. Each entry corresponds to // cached information about a particular dataFormat object. In // the case where no FieldAxis (e.g. Fields) exist within the array, // then we only have 1 entry in each of these arrays. String[] noDataValues; //stores the NoDataValues for the parentArray, //used in writing out when NoDataException is caught String[] formatPattern; // cache of Java Formatter patterns for correct // formatting of output values. String[] negExponentialPattern; // Stupid Java DecimalFormatter cant work properly // on exponential data, so we compensate with this. String[] intFlag; // Integer format flag int[] numOfBytes; // number of bytes each data format has. DataFormat dataFormat[] = parentArray.getDataFormatList(); if (parentArray.hasFieldAxis()) { // If we have field axis then prepare to init multiple size arrays List fields = parentArray.getFieldAxis().getFields(); int nrofDataFormats = fields.size(); noDataValues = new String[nrofDataFormats]; formatPattern = new String[nrofDataFormats]; intFlag = new String[nrofDataFormats]; negExponentialPattern = new String[nrofDataFormats]; numOfBytes = new int[nrofDataFormats]; // now assign values for (int i = 0; i < nrofDataFormats; i++) { formatPattern[i] = dataFormat[i].getFormatPattern(); numOfBytes[i] = dataFormat[i].numOfBytes(); Field field = (Field) fields.get(i); if (field != null && field.getNoDataValue() != null) noDataValues[i] = field.getNoDataValue().toString(); if (dataFormat[i] instanceof FloatDataFormat) negExponentialPattern[i] = ((FloatDataFormat) dataFormat[i]).getNegativeExponentFormatPattern(); else negExponentialPattern[i] = null; if (dataFormat[i] instanceof IntegerDataFormat) intFlag[i] = ((IntegerDataFormat) dataFormat[i]).getType(); else intFlag[i] = null; } } else { // no field axis? then only one dataFormat and we get it from the Array // init single size arrays noDataValues = new String[1]; formatPattern = new String[1]; negExponentialPattern = new String[1]; intFlag = new String[1]; numOfBytes = new int[1]; // assign values formatPattern[0] = dataFormat[0].getFormatPattern(); numOfBytes[0] = dataFormat[0].numOfBytes(); String value = (String) null; if (parentArray.getNoDataValue() != null) { value = parentArray.getNoDataValue().toString(); // this is a HACK } noDataValues[0] = value; if (dataFormat[0] instanceof FloatDataFormat) negExponentialPattern[0] = ((FloatDataFormat) dataFormat[0]).getNegativeExponentFormatPattern(); else negExponentialPattern[0] = null; if (dataFormat[0] instanceof IntegerDataFormat) intFlag[0] = ((IntegerDataFormat) dataFormat[0]).getType(); else intFlag[0] = null; } // init the dataOutputWriter properly. To a file or to the same writer as the // rest of the XML metadata? if (dataOutputStream != null) { // if this exists, then we are re-directing to an outside file. // wrap the outputstream (compressed or otherwise) with bufferedWriter dataOutputWriter = new BufferedWriter(new OutputStreamWriter(dataOutputStream)); } else { // goes to same spot as meta-data, e.g. just use the XML output writer dataOutputWriter = outputWriter; } // some info about the format Object String endian = readObj.getEndian(); // now, based on outputstyle, write out the data if (readObj instanceof TaggedXMLDataIOStyle) { String[] tags = ((TaggedXMLDataIOStyle)readObj).getAxisTags(); int[] axes = getMaxDataIndex(readObj); int stop = axes.length; int[] axisLength = new int[stop]; for (int i = 0; i < stop; i++) { axisLength[i] = axes[stop - 1 - i]; } int whichTagIsFieldAxis = -1; if (parentArray.hasFieldAxis()) { for (int i = 0; i < stop; i++) { whichTagIsFieldAxis = i; AxisInterface axisObj = ((TaggedXMLDataIOStyle) readObj).getAxisByTag("d" + i); if (axisObj instanceof FieldAxis) { break; } } } Locator taggedLocator = parentArray.createLocator(); AxisInterface fastestAxis = (AxisInterface) axisList.get(0); int nrofDataFormats = dataFormat.length; writeTaggedData( dataOutputWriter, taggedLocator, taggedIndent, axisLength, tags, 0, 0, fastestAxis, noDataValues, nrofDataFormats, dataFormat, numOfBytes, formatPattern, negExponentialPattern, endian, intFlag, whichTagIsFieldAxis ); // this *shouldnt* be needed, but tests with both Java 1.2.2 and 1.3.0 // on SUN and Linux platforms show that it is. Hopefully we can remove // this in the future. dataOutputWriter.flush(); } //done dealing with with TaggedXMLDataIOSytle else { if (readObj instanceof DelimitedXMLDataIOStyle) { AxisInterface fastestAxis = (AxisInterface) axisList.get(0); writeDelimitedData( dataOutputWriter, (DelimitedXMLDataIOStyle) readObj, fastestAxis, noDataValues, dataFormat, numOfBytes, formatPattern, negExponentialPattern, endian, intFlag, writeHrefAttribute ? false : true ); } else { writeFormattedData( dataOutputWriter, (FormattedXMLDataIOStyle) readObj, noDataValues, dataFormat, numOfBytes, formatPattern, negExponentialPattern, endian, intFlag, writeHrefAttribute ? false : true ); } if (writeHrefAttribute) { try { // should work as flush() too, so no call needed here. dataOutputWriter.close(); } catch (java.io.IOException e) { Log.errorln("Cant close dataOuputStream! Aborting."); return nodeName; } } } } // finish writing data to XML/Href //close the data section appropriately if (!writeHrefAttribute && niceOutput) { outputWriter.write( Constants.NEW_LINE+indent); } // If we didnt write Href attribute, then means that data // were put into document. We need to close the open data // node appropriately. if (!writeHrefAttribute) outputWriter.write( "</" + nodeName + ">"); // if (niceOutput) // outputWriter.write( Constants.NEW_LINE); return nodeName; }
| 4,091
|
ICC_ProfileRGB() { super(ColorSpace.CS_sRGB); }
|
ICC_ProfileRGB(int cspace) { super(ColorSpace.CS_sRGB); }
| 4,093
|
ICC_ProfileRGB() { super(ColorSpace.CS_sRGB); }
|
ICC_ProfileRGB() { super(cspace); matrix = createMatrix(); whitePoint = getXYZData(icSigMediaWhitePointTag); }
| 4,094
|
public float getGamma(int component) { return 0; }
|
public float getGamma(int component) { short[] data; switch (component) { case REDCOMPONENT: data = getCurve(icSigRedTRCTag); break; case GREENCOMPONENT: data = getCurve(icSigGreenTRCTag); break; case BLUECOMPONENT: data = getCurve(icSigBlueTRCTag); break; default: throw new IllegalArgumentException("Not a valid component"); } if (data == null) throw new IllegalArgumentException("Error reading TRC"); if (data.length != 1) throw new ProfileDataException("Not a single-gamma TRC"); float gamma = (float) (((int) data[0] & 0xFF00) >> 8); double fraction = ((int) data[0] & 0x00FF) / 256.0; gamma += (float) fraction; return gamma; }
| 4,095
|
public float[][] getMatrix() { return null; }
|
public float[][] getMatrix() { float[][] mat = new float[3][3]; for (int i = 0; i < 3; i++) for (int j = 0; j < 3; j++) mat[i][j] = matrix[i][j]; return mat; }
| 4,096
|
public short[] getTRC(int component) { return null; }
|
public short[] getTRC(int component) { short[] data; switch (component) { case REDCOMPONENT: data = getCurve(icSigRedTRCTag); break; case GREENCOMPONENT: data = getCurve(icSigGreenTRCTag); break; case BLUECOMPONENT: data = getCurve(icSigBlueTRCTag); break; default: throw new IllegalArgumentException("Not a valid component"); } if (data == null) throw new IllegalArgumentException("Error reading TRC"); if (data.length <= 1) throw new ProfileDataException("Gamma value, not a TRC table."); return data; }
| 4,097
|
public void setDisplayedMnemonic(char mnemonic) { setDisplayedMnemonic((int) Character.toUpperCase(mnemonic)); }
|
public void setDisplayedMnemonic(int mnemonic) { setDisplayedMnemonic((int) Character.toUpperCase(mnemonic)); }
| 4,099
|
public void setDisplayedMnemonic(char mnemonic) { setDisplayedMnemonic((int) Character.toUpperCase(mnemonic)); }
|
public void setDisplayedMnemonic(char mnemonic) { if (displayedMnemonic != mnemonic) { firePropertyChange("displayedMnemonic", displayedMnemonic, mnemonic); displayedMnemonic = mnemonic; if (text != null) setDisplayedMnemonicIndex(text.toUpperCase().indexOf(mnemonic)); } }
| 4,100
|
public JSlider(int orientation, int minimum, int maximum, int value) { sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = orientation; changeListener = createChangeListener(); sliderModel.addChangeListener(changeListener); updateUI(); }
|
public JSlider() { sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = orientation; changeListener = createChangeListener(); sliderModel.addChangeListener(changeListener); updateUI(); }
| 4,101
|
public JSlider(int orientation, int minimum, int maximum, int value) { sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = orientation; changeListener = createChangeListener(); sliderModel.addChangeListener(changeListener); updateUI(); }
|
public JSlider(int orientation, int minimum, int maximum, int value) { sliderModel = new DefaultBoundedRangeModel(value, 0, minimum, maximum); if (orientation != HORIZONTAL && orientation != VERTICAL) throw new IllegalArgumentException(orientation + " is not a legal orientation"); this.orientation = orientation; changeListener = createChangeListener(); sliderModel.addChangeListener(changeListener); updateUI(); }
| 4,102
|
public ZipEntry getEntry(String name) { try { HashMap entries = getEntries(); ZipEntry entry = (ZipEntry) entries.get(name); return entry != null ? (ZipEntry) entry.clone() : null; } catch (IOException ioe) { return null; } }
|
public ZipEntry getEntry(String name) { try { HashMap entries = getEntries(); ZipEntry entry = (ZipEntry) entries.get(name); if (entry == null && !name.endsWith("/")) entry = (ZipEntry) entries.get(name + '/'); return entry != null ? new ZipEntry(entry, name) : null; } catch (IOException ioe) { return null; } }
| 4,103
|
private void checkMethods() throws IntrospectionException { if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException("add and remove listener methods do not come from the same class. This is bad."); } if(!addListenerMethod.getReturnType().equals(java.lang.Void.TYPE) || addListenerMethod.getParameterTypes().length != 1 || !listenerType.equals(addListenerMethod.getParameterTypes()[0]) || !Modifier.isPublic(addListenerMethod.getModifiers())) { throw new IntrospectionException("Add Listener Method invalid."); } if(!removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE) || removeListenerMethod.getParameterTypes().length != 1 || !listenerType.equals(removeListenerMethod.getParameterTypes()[0]) || removeListenerMethod.getExceptionTypes().length > 0 || !Modifier.isPublic(removeListenerMethod.getModifiers())) { throw new IntrospectionException("Remove Listener Method invalid."); } for(int i=0;i<listenerMethods.length;i++) { if(!listenerMethods[i].getReturnType().equals(java.lang.Void.TYPE) || Modifier.isPrivate(listenerMethods[i].getModifiers())) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " non-void or private."); } if(!listenerMethods[i].getDeclaringClass().isAssignableFrom(listenerType)) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " not from class " + listenerType.getName()); } } }
|
private void checkMethods() throws IntrospectionException { if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException("add and remove listener methods do not come from the same class. This is bad."); } if(!addListenerMethod.getReturnType().equals(java.lang.Void.TYPE) || addListenerMethod.getParameterTypes().length != 1 || !listenerType.equals(addListenerMethod.getParameterTypes()[0]) || !Modifier.isPublic(addListenerMethod.getModifiers())) { throw new IntrospectionException("Add Listener Method invalid."); } if(!removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE) || removeListenerMethod.getParameterTypes().length != 1 || !listenerType.equals(removeListenerMethod.getParameterTypes()[0]) || removeListenerMethod.getExceptionTypes().length > 0 || !Modifier.isPublic(removeListenerMethod.getModifiers())) { throw new IntrospectionException("Remove Listener Method invalid."); } for(int i=0;i<listenerMethods.length;i++) { if(!listenerMethods[i].getReturnType().equals(java.lang.Void.TYPE) || Modifier.isPrivate(listenerMethods[i].getModifiers())) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " non-void or private."); } if(!listenerMethods[i].getDeclaringClass().isAssignableFrom(listenerType)) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " not from class " + listenerType.getName()); } } }
| 4,104
|
private void findMethods(Class eventSourceClass, Class listenerType, String listenerMethodNames[], String addListenerMethodName, String removeListenerMethodName, String absurdEventClassCheckName) throws IntrospectionException { /* Find add listener method and remove listener method. */ Class[] listenerArgList = new Class[1]; listenerArgList[0] = listenerType; try { this.addListenerMethod = eventSourceClass.getMethod(addListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + addListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + addListenerMethodName + "."); } if(this.addListenerMethod == null || !this.addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Add listener method does not exist, is not public, or is not void."); } try { this.removeListenerMethod = eventSourceClass.getMethod(removeListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + removeListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + removeListenerMethodName + "."); } if(this.removeListenerMethod == null || !this.removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Remove listener method does not exist, is not public, or is not void."); } /* Find the listener methods. */ Method[] methods; try { methods = ClassHelper.getAllMethods(listenerType); } catch(SecurityException E) { throw new IntrospectionException("Security: You cannot access fields in this class."); } Vector chosenMethods = new Vector(); boolean[] listenerMethodFound = new boolean[listenerMethodNames.length]; for(int i=0;i<methods.length;i++) { if(Modifier.isPrivate(methods[i].getModifiers())) { continue; } Method currentMethod = methods[i]; Class retval = currentMethod.getReturnType(); if(retval.equals(java.lang.Void.TYPE)) { for(int j=0;j<listenerMethodNames.length;j++) { if(currentMethod.getName().equals(listenerMethodNames[j]) && (absurdEventClassCheckName == null || (currentMethod.getParameterTypes().length == 1 && ((currentMethod.getParameterTypes()[0]).getName().equals(absurdEventClassCheckName) || (currentMethod.getParameterTypes()[0]).getName().endsWith("."+absurdEventClassCheckName) ) ) ) ) { chosenMethods.addElement(currentMethod); listenerMethodFound[j] = true; } } } } /* Make sure we found all the methods we were looking for. */ for(int i=0;i<listenerMethodFound.length;i++) { if(!listenerMethodFound[i]) { throw new IntrospectionException("Could not find event method " + listenerMethodNames[i]); } } /* Now that we've chosen the listener methods we want, store them. */ this.listenerMethods = new Method[chosenMethods.size()]; for(int i=0;i<chosenMethods.size();i++) { this.listenerMethods[i] = (Method)chosenMethods.elementAt(i); } }
|
private void findMethods(Class eventSourceClass, Class listenerType, String listenerMethodNames[], String addListenerMethodName, String removeListenerMethodName, String absurdEventClassCheckName) throws IntrospectionException { /* Find add listener method and remove listener method. */ Class[] listenerArgList = new Class[1]; listenerArgList[0] = listenerType; try { this.addListenerMethod = eventSourceClass.getMethod(addListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + addListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + addListenerMethodName + "."); } if(this.addListenerMethod == null || !this.addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Add listener method does not exist, is not public, or is not void."); } try { this.removeListenerMethod = eventSourceClass.getMethod(removeListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + removeListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + removeListenerMethodName + "."); } if(this.removeListenerMethod == null || !this.removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Remove listener method does not exist, is not public, or is not void."); } /* Find the listener methods. */ Method[] methods; try { methods = ClassHelper.getAllMethods(listenerType); } catch(SecurityException E) { throw new IntrospectionException("Security: You cannot access fields in this class."); } Vector chosenMethods = new Vector(); boolean[] listenerMethodFound = new boolean[listenerMethodNames.length]; for(int i=0;i<methods.length;i++) { if(Modifier.isPrivate(methods[i].getModifiers())) { continue; } Method currentMethod = methods[i]; Class retval = currentMethod.getReturnType(); if(retval.equals(java.lang.Void.TYPE)) { for(int j=0;j<listenerMethodNames.length;j++) { if(currentMethod.getName().equals(listenerMethodNames[j]) && (absurdEventClassCheckName == null || (currentMethod.getParameterTypes().length == 1 && ((currentMethod.getParameterTypes()[0]).getName().equals(absurdEventClassCheckName) || (currentMethod.getParameterTypes()[0]).getName().endsWith("."+absurdEventClassCheckName) ) ) ) ) { chosenMethods.addElement(currentMethod); listenerMethodFound[j] = true; } } } } /* Make sure we found all the methods we were looking for. */ for(int i=0;i<listenerMethodFound.length;i++) { if(!listenerMethodFound[i]) { throw new IntrospectionException("Could not find event method " + listenerMethodNames[i]); } } /* Now that we've chosen the listener methods we want, store them. */ this.listenerMethods = new Method[chosenMethods.size()]; for(int i=0;i<chosenMethods.size();i++) { this.listenerMethods[i] = (Method)chosenMethods.elementAt(i); } }
| 4,105
|
private void findMethods(Class eventSourceClass, Class listenerType, String listenerMethodNames[], String addListenerMethodName, String removeListenerMethodName, String absurdEventClassCheckName) throws IntrospectionException { /* Find add listener method and remove listener method. */ Class[] listenerArgList = new Class[1]; listenerArgList[0] = listenerType; try { this.addListenerMethod = eventSourceClass.getMethod(addListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + addListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + addListenerMethodName + "."); } if(this.addListenerMethod == null || !this.addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Add listener method does not exist, is not public, or is not void."); } try { this.removeListenerMethod = eventSourceClass.getMethod(removeListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + removeListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + removeListenerMethodName + "."); } if(this.removeListenerMethod == null || !this.removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Remove listener method does not exist, is not public, or is not void."); } /* Find the listener methods. */ Method[] methods; try { methods = ClassHelper.getAllMethods(listenerType); } catch(SecurityException E) { throw new IntrospectionException("Security: You cannot access fields in this class."); } Vector chosenMethods = new Vector(); boolean[] listenerMethodFound = new boolean[listenerMethodNames.length]; for(int i=0;i<methods.length;i++) { if(Modifier.isPrivate(methods[i].getModifiers())) { continue; } Method currentMethod = methods[i]; Class retval = currentMethod.getReturnType(); if(retval.equals(java.lang.Void.TYPE)) { for(int j=0;j<listenerMethodNames.length;j++) { if(currentMethod.getName().equals(listenerMethodNames[j]) && (absurdEventClassCheckName == null || (currentMethod.getParameterTypes().length == 1 && ((currentMethod.getParameterTypes()[0]).getName().equals(absurdEventClassCheckName) || (currentMethod.getParameterTypes()[0]).getName().endsWith("."+absurdEventClassCheckName) ) ) ) ) { chosenMethods.addElement(currentMethod); listenerMethodFound[j] = true; } } } } /* Make sure we found all the methods we were looking for. */ for(int i=0;i<listenerMethodFound.length;i++) { if(!listenerMethodFound[i]) { throw new IntrospectionException("Could not find event method " + listenerMethodNames[i]); } } /* Now that we've chosen the listener methods we want, store them. */ this.listenerMethods = new Method[chosenMethods.size()]; for(int i=0;i<chosenMethods.size();i++) { this.listenerMethods[i] = (Method)chosenMethods.elementAt(i); } }
|
private void findMethods(Class eventSourceClass, Class listenerType, String listenerMethodNames[], String addListenerMethodName, String removeListenerMethodName, String absurdEventClassCheckName) throws IntrospectionException { /* Find add listener method and remove listener method. */ Class[] listenerArgList = new Class[1]; listenerArgList[0] = listenerType; try { this.addListenerMethod = eventSourceClass.getMethod(addListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + addListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + addListenerMethodName + "."); } if(this.addListenerMethod == null || !this.addListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Add listener method does not exist, is not public, or is not void."); } try { this.removeListenerMethod = eventSourceClass.getMethod(removeListenerMethodName,listenerArgList); } catch(SecurityException E) { throw new IntrospectionException("SecurityException trying to access method " + removeListenerMethodName + "."); } catch(NoSuchMethodException E) { throw new IntrospectionException("Could not find method " + removeListenerMethodName + "."); } if(this.removeListenerMethod == null || !this.removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE)) { throw new IntrospectionException("Remove listener method does not exist, is not public, or is not void."); } /* Find the listener methods. */ Method[] methods; try { methods = ClassHelper.getAllMethods(listenerType); } catch(SecurityException E) { throw new IntrospectionException("Security: You cannot access fields in this class."); } Vector chosenMethods = new Vector(); boolean[] listenerMethodFound = new boolean[listenerMethodNames.length]; for(int i=0;i<methods.length;i++) { if(Modifier.isPrivate(methods[i].getModifiers())) { continue; } Method currentMethod = methods[i]; Class retval = currentMethod.getReturnType(); if(retval.equals(java.lang.Void.TYPE)) { for(int j=0;j<listenerMethodNames.length;j++) { if(currentMethod.getName().equals(listenerMethodNames[j]) && (absurdEventClassCheckName == null || (currentMethod.getParameterTypes().length == 1 && ((currentMethod.getParameterTypes()[0]).getName().equals(absurdEventClassCheckName) || (currentMethod.getParameterTypes()[0]).getName().endsWith("."+absurdEventClassCheckName) ) ) ) ) { chosenMethods.addElement(currentMethod); listenerMethodFound[j] = true; } } } } /* Make sure we found all the methods we were looking for. */ for(int i=0;i<listenerMethodFound.length;i++) { if(!listenerMethodFound[i]) { throw new IntrospectionException("Could not find event method " + listenerMethodNames[i]); } } /* Now that we've chosen the listener methods we want, store them. */ this.listenerMethods = new Method[chosenMethods.size()]; for(int i=0;i<chosenMethods.size();i++) { this.listenerMethods[i] = (Method)chosenMethods.elementAt(i); } }
| 4,106
|
protected final Class defineClass(String name, byte[] data, int offset, int length) { return defineClass(name, data, offset, length, null); }
|
protected final Class defineClass(String name, byte[] data, int offset, int length) { return defineClass(name, data, offset, length, null); }
| 4,107
|
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatusErrorCode()) { Toolkit.getDefaultToolkit().beep(); return; } keysBuffered = true; setKBIndicatorOn(); if(bufferedKeys == null){ bufferedKeys = text; return; } else { bufferedKeys += text; return; } } } else { if (keysBuffered) { if (text != null) { text = bufferedKeys + text; } keysBuffered = false; setKBIndicatorOff(); bufferedKeys = null; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) { simulateKeyStroke(text.charAt(0)); } else { strokenizer.setKeyStrokes(text); String s; boolean done = false; while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked && !isStatusErrorCode() && !done) { s = strokenizer.nextKeyStroke(); if (s.length() == 1) { simulateKeyStroke(s.charAt(0)); } else { if (s != null) { simulateMnemonic(getMnemonicValue(s)); } else System.out.println(" send keys mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStroked(); if (bufferedKeys != null) { keysBuffered = true; setKBIndicatorOn(); } done = true; } } } } }
|
public void sendKeys(String text) {// if (text == null) {// return;// } if (isStatusErrorCode() && !resetRequired) { resetError(); if (!cursorActive) setCursorOn(); } if (keyboardLocked) { if(text.equals("[reset]") || text.equals("[sysreq]") || text.equals("[attn]")) { simulateMnemonic(getMnemonicValue(text)); } else { if (isStatusErrorCode()) { Toolkit.getDefaultToolkit().beep(); return; } keysBuffered = true; setKBIndicatorOn(); if(bufferedKeys == null){ bufferedKeys = text; return; } else { bufferedKeys += text; return; } } } else { if (keysBuffered) { if (bufferedKeys != null) { text = bufferedKeys + text; } keysBuffered = false; setKBIndicatorOff(); bufferedKeys = null; } // check to see if position is in a field and if it is then change // current field to that field isInField(lastPos,true); if (text.length() == 1 && !text.equals("[") && !text.equals("]")) { simulateKeyStroke(text.charAt(0)); } else { strokenizer.setKeyStrokes(text); String s; boolean done = false; while (strokenizer.hasMoreKeyStrokes() && !keyboardLocked && !isStatusErrorCode() && !done) { s = strokenizer.nextKeyStroke(); if (s.length() == 1) { simulateKeyStroke(s.charAt(0)); } else { if (s != null) { simulateMnemonic(getMnemonicValue(s)); } else System.out.println(" send keys mnemonic " + s); } if (keyboardLocked) { bufferedKeys = strokenizer.getUnprocessedKeyStroked(); if (bufferedKeys != null) { keysBuffered = true; setKBIndicatorOn(); } done = true; } } } } }
| 4,108
|
public static ServiceContext[] extract(Any any) { try { ServiceContextListHolder holder = (ServiceContextListHolder) any.extract_Streamable(); return holder.value; } catch (ClassCastException ex) { throw new BAD_OPERATION("ServiceContext[] expected."); } }
|
public static ServiceContext[] extract(Any any) { try { ServiceContextListHolder holder = (ServiceContextListHolder) any.extract_Streamable(); return holder.value; } catch (ClassCastException ex) { BAD_OPERATION bad = new BAD_OPERATION("ServiceContext[] expected"); bad.minor = Minor.Any; bad.initCause(ex); throw bad; } }
| 4,109
|
public JProgressBar() { this(0, 100, HORIZONTAL); }
|
public JProgressBar() { this(HORIZONTAL, 0, 100); }
| 4,110
|
public final synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.draw(shape, tx, color, mode); final Rectangle r = getBounds(shape, tx); updateScreen(r.x - 1, r.y - 1, r.width + 2, r.height + 2); }
|
public final synchronized void draw(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) { syncFIFO(); super.draw(shape, tx, color, mode); final Rectangle r = getBounds(shape, tx); updateScreen(r.x - 1, r.y - 1, r.width + 2, r.height + 2); }
| 4,111
|
public final synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.draw(shape, tx, color, mode); final Rectangle r = getBounds(shape, tx); updateScreen(r.x - 1, r.y - 1, r.width + 2, r.height + 2); }
|
public final synchronized void draw(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.draw(shape, clip, tx, color, mode); final Rectangle r = getBounds(shape, tx); updateScreen(r.x - 1, r.y - 1, r.width + 2, r.height + 2); }
| 4,112
|
public final synchronized void fill(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.fill(shape, tx, color, mode); final Rectangle b = getBounds(shape, tx); updateScreen(b.x, b.y, b.width, b.height); }
|
public final synchronized void fill(Shape shape, Shape clip, AffineTransform tx, Color color, int mode) { syncFIFO(); super.fill(shape, tx, color, mode); final Rectangle b = getBounds(shape, tx); updateScreen(b.x, b.y, b.width, b.height); }
| 4,113
|
public final synchronized void fill(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.fill(shape, tx, color, mode); final Rectangle b = getBounds(shape, tx); updateScreen(b.x, b.y, b.width, b.height); }
|
public final synchronized void fill(Shape shape, AffineTransform tx, Color color, int mode) { syncFIFO(); super.fill(shape, clip, tx, color, mode); final Rectangle b = getBounds(shape, tx); updateScreen(b.x, b.y, b.width, b.height); }
| 4,114
|
public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); }
|
public void setContentAreaFilled(boolean b) { if (contentAreaFilled == b) return; boolean old = contentAreaFilled; contentAreaFilled = b; firePropertyChange(CONTENT_AREA_FILLED_CHANGED_PROPERTY, old, b); revalidate(); repaint(); }
| 4,115
|
public static void write(OutputStream output, String[] value) { output.write_long(value.length); for (int i = 0; i < value.length; i++) output.write_wstring(value [ i ]); }
|
public static void write(OutputStream output, String[] value) { output.write_long(value.length); for (int i = 0; i < value.length; i++) output.write_string(value [ i ]); }
| 4,116
|
public StringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); }
|
public StringSeqHolder() { value = initial_value; typecode.setLength(value.length); }
| 4,117
|
public StringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); }
|
public StringSeqHolder(String[] initial_value) { value = initial_value; typecode.setLength(value.length); }
| 4,118
|
public void setPendingInsert(boolean flag, int icX, int icY) { pendingInsert = flag; if (pendingInsert) { homePos = getPos(icX,icY); } goto_XY(icX,icY); }
|
public void setPendingInsert(boolean flag, int icX, int icY) { pendingInsert = flag; if (pendingInsert) { homePos = getPos(icX,icY); } if (!isStatusErrorCode()) { goto_XY(icX,icY); } }
| 4,119
|
public float getAlignmentX() { return alignmentX; }
|
public float getAlignmentX() { float ret = alignmentX; if (alignmentX < 0) ret = super.getAlignmentX(); return ret; }
| 4,120
|
public float getAlignmentY() { return alignmentY; }
|
public float getAlignmentY() { float ret = alignmentY; if (alignmentY < 0) ret = super.getAlignmentY(); return ret; }
| 4,121
|
public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); }
|
public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = new Dimension(max); firePropertyChange("maximumSize", oldMaximumSize, maximumSize); }
| 4,124
|
public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = min; firePropertyChange("minimumSize", oldMinimumSize, minimumSize); }
|
public void setMinimumSize(Dimension min) { Dimension oldMinimumSize = minimumSize; minimumSize = new Dimension(min); firePropertyChange("minimumSize", oldMinimumSize, minimumSize); }
| 4,125
|
public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = pref; firePropertyChange("preferredSize", oldPreferredSize, preferredSize); }
|
public void setPreferredSize(Dimension pref) { Dimension oldPreferredSize = preferredSize; preferredSize = new Dimension(pref); firePropertyChange("preferredSize", oldPreferredSize, preferredSize); }
| 4,126
|
protected void paintChild(Graphics g, Rectangle alloc, int index) { View child = getView(index); childAllocation(index, alloc); child.paint(g, alloc); }
|
protected void paintChild(Graphics g, Rectangle alloc, int index) { View child = getView(index); child.paint(g, alloc); }
| 4,130
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { if (mods) mapper.saveKeyMap(); setVisible(false); } if (e.getActionCommand().equals("MAP")) { mapIt(); } if (e.getActionCommand().equals("REMOVE")) { removeIt(); } }
|
public void actionPerformed(ActionEvent e) { if (e.getActionCommand().equals("DONE")) { if (mods) { mapper.saveKeyMap(); setVisible(false); } if (e.getActionCommand().equals("MAP")) { mapIt(); } if (e.getActionCommand().equals("REMOVE")) { removeIt(); } }
| 4,131
|
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { if (isLinux) mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[functions.getSelectedIndex()])); mapper.fireKeyChangeEvent(); } else { if (macros) { System.out.println((String)functions.getSelectedValue()); if (isLinux) mapper.setKeyStroke((String)functions.getSelectedValue(),ke,isAltGr); else mapper.setKeyStroke((String)functions.getSelectedValue(),ke); strokeDesc.setText(mapper.getKeyStrokeDesc( (String)functions.getSelectedValue())); } if (special) { System.out.println((String)functions.getSelectedValue()); String k = ""; k += ((String)functions.getSelectedValue()).charAt(7); if (isLinux) mapper.setKeyStroke(k,ke,isAltGr); else mapper.setKeyStroke(k,ke); strokeDesc.setText(mapper.getKeyStrokeDesc(k)); } } mods = true; }
|
private void setNewKeyStrokes(KeyEvent ke) { if (!macros && !special) { if (isLinux) mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke,isAltGr); else mapper.setKeyStroke(mnemonicData[functions.getSelectedIndex()],ke); strokeDesc.setText(mapper.getKeyStrokeDesc( mnemonicData[functions.getSelectedIndex()])); } else { if (macros) { System.out.println((String)functions.getSelectedValue()); if (isLinux) mapper.setKeyStroke((String)functions.getSelectedValue(),ke,isAltGr); else mapper.setKeyStroke((String)functions.getSelectedValue(),ke); strokeDesc.setText(mapper.getKeyStrokeDesc( (String)functions.getSelectedValue())); } if (special) { System.out.println((String)functions.getSelectedValue()); String k = ""; k += ((String)functions.getSelectedValue()).charAt(7); if (isLinux) mapper.setKeyStroke(k,ke,isAltGr); else mapper.setKeyStroke(k,ke); strokeDesc.setText(mapper.getKeyStrokeDesc(k)); } } mods = true; }
| 4,134
|
public static void main(String[] args) { try { ParsedArguments cmdLine = HELP_INFO.parse(args); String device = ARG_DEVICE.getValue(cmdLine); String FSType = FS.getValue(cmdLine).intern(); String fsTypeName; Object params; int fatSize = 0; if (FSType == "fat16") { fatSize = Fat.FAT16; fsTypeName = FatFileSystemType.NAME; params = new Integer(fatSize); } else if (FSType == "fat12") { fatSize = Fat.FAT12; fsTypeName = FatFileSystemType.NAME; params = new Integer(fatSize); } else throw new FileSystemException( "Unsupported FS by format command"); DeviceManager dm; dm = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); Device dev = dm.getDevice(device); FileSystemService fileSystemService = (FileSystemService) InitialNaming .lookup(FileSystemService.NAME); FileSystemType type = fileSystemService .getFileSystemTypeForNameSystemTypes(fsTypeName); type.format(dev, params); // restart the device dm.stop(dev); dm.start(dev); } catch (NameNotFoundException e) { e.printStackTrace(); } catch (DeviceNotFoundException e) { e.printStackTrace(); } catch (DriverException e) { e.printStackTrace(); } catch (FileSystemException e) { // e.printStackTrace(); } }
|
public static void main(String[] args) throws SyntaxErrorException { try { ParsedArguments cmdLine = HELP_INFO.parse(args); String device = ARG_DEVICE.getValue(cmdLine); String FSType = FS.getValue(cmdLine).intern(); String fsTypeName; Object params; int fatSize = 0; if (FSType == "fat16") { fatSize = Fat.FAT16; fsTypeName = FatFileSystemType.NAME; params = new Integer(fatSize); } else if (FSType == "fat12") { fatSize = Fat.FAT12; fsTypeName = FatFileSystemType.NAME; params = new Integer(fatSize); } else throw new FileSystemException( "Unsupported FS by format command"); DeviceManager dm; dm = (DeviceManager) InitialNaming.lookup(DeviceManager.NAME); Device dev = dm.getDevice(device); FileSystemService fileSystemService = (FileSystemService) InitialNaming .lookup(FileSystemService.NAME); FileSystemType type = fileSystemService .getFileSystemTypeForNameSystemTypes(fsTypeName); type.format(dev, params); // restart the device dm.stop(dev); dm.start(dev); } catch (NameNotFoundException e) { e.printStackTrace(); } catch (DeviceNotFoundException e) { e.printStackTrace(); } catch (DriverException e) { e.printStackTrace(); } catch (FileSystemException e) { // e.printStackTrace(); } }
| 4,135
|
public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block); this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); lhs.setAssignQuad(this); }
|
public AssignQuad(int address, IRBasicBlock block, Variable lhs) { super(address, block); this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); lhs.setAssignQuad(this); }
| 4,136
|
public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block); this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); lhs.setAssignQuad(this); }
|
public AssignQuad(int address, IRBasicBlock block, int lhsIndex) { super(address, block); this.variables = block.getVariables(); this.lhsIndex = lhsIndex; this.lhs = (Variable) variables[lhsIndex].clone(); lhs.setAssignQuad(this); }
| 4,137
|
public Parser(String programName, final String versionString, boolean longOnly) { this.programName = programName; this.longOnly = longOnly; // Put standard options in their own section near the end. OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); //$NON-NLS-1$ finalGroup.add(new Option("help", Messages.getString("Parser.PrintHelp")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { printHelp(System.out); System.exit(0); } }); finalGroup.add(new Option("version", Messages.getString("Parser.PrintVersion")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { System.out.println(versionString); System.exit(0); } }); finalGroup.add(new Option('J', Messages.getString("Parser.JArgument"), Messages.getString("Parser.JName")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { // -J should be handled by the appletviewer wrapper binary. // We add it here so that it shows up in the --help output. // Note that there is a special case for this in OptionGroup. } }); add(finalGroup); add(defaultGroup); }
|
public Parser(String programName, String versionString) { this.programName = programName; this.longOnly = longOnly; // Put standard options in their own section near the end. OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); //$NON-NLS-1$ finalGroup.add(new Option("help", Messages.getString("Parser.PrintHelp")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { printHelp(System.out); System.exit(0); } }); finalGroup.add(new Option("version", Messages.getString("Parser.PrintVersion")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { System.out.println(versionString); System.exit(0); } }); finalGroup.add(new Option('J', Messages.getString("Parser.JArgument"), Messages.getString("Parser.JName")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { // -J should be handled by the appletviewer wrapper binary. // We add it here so that it shows up in the --help output. // Note that there is a special case for this in OptionGroup. } }); add(finalGroup); add(defaultGroup); }
| 4,138
|
public Parser(String programName, final String versionString, boolean longOnly) { this.programName = programName; this.longOnly = longOnly; // Put standard options in their own section near the end. OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); //$NON-NLS-1$ finalGroup.add(new Option("help", Messages.getString("Parser.PrintHelp")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { printHelp(System.out); System.exit(0); } }); finalGroup.add(new Option("version", Messages.getString("Parser.PrintVersion")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { System.out.println(versionString); System.exit(0); } }); finalGroup.add(new Option('J', Messages.getString("Parser.JArgument"), Messages.getString("Parser.JName")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { // -J should be handled by the appletviewer wrapper binary. // We add it here so that it shows up in the --help output. // Note that there is a special case for this in OptionGroup. } }); add(finalGroup); add(defaultGroup); }
|
public Parser(String programName, final String versionString, boolean longOnly) { this.programName = programName; this.longOnly = longOnly; // Put standard options in their own section near the end. OptionGroup finalGroup = new OptionGroup(Messages.getString("Parser.StdOptions")); //$NON-NLS-1$ finalGroup.add(new Option("help", Messages.getString("Parser.PrintHelp")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { printHelp(System.out); System.exit(0); } }); finalGroup.add(new Option("version", Messages.getString("Parser.PrintVersion")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { System.out.println(versionString); System.exit(0); } }); finalGroup.add(new Option('J', Messages.getString("Parser.JArgument"), Messages.getString("Parser.JName")) //$NON-NLS-1$ //$NON-NLS-2$ { public void parsed(String argument) throws OptionException { // -J should be handled by the appletviewer wrapper binary. // We add it here so that it shows up in the --help output. // Note that there is a special case for this in OptionGroup. } }); add(finalGroup); add(defaultGroup); }
| 4,139
|
public void addAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. }
|
public void addAccessibleSelection(int i) { // TODO: Implement this properly. }
| 4,140
|
public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
|
public void clearAccessibleSelection() { // TODO: Implement this properly. }
| 4,142
|
public Accessible getAccessibleAt(Point p) throws NotImplementedException { return null; }
|
public Accessible getAccessibleAt(Point p) { return null; }
| 4,143
|
public Accessible getAccessibleAt(Point p) throws NotImplementedException { return null; }
|
public Accessible getAccessibleAt(Point p) throws NotImplementedException { int tabIndex = indexAtLocation(p.x, p.y); if (tabIndex >= 0) return getAccessibleChild(tabIndex); else return getAccessibleSelection(0); }
| 4,144
|
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
|
public int getAccessibleChildrenCount() { return 0; }
| 4,145
|
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
|
public int getAccessibleChildrenCount() throws NotImplementedException { return getTabCount(); }
| 4,146
|
public AccessibleRole getAccessibleRole() throws NotImplementedException { return null; }
|
public AccessibleRole getAccessibleRole() { return null; }
| 4,147
|
public AccessibleRole getAccessibleRole() throws NotImplementedException { return null; }
|
public AccessibleRole getAccessibleRole() throws NotImplementedException { return AccessibleRole.PAGE_TAB_LIST; }
| 4,148
|
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; }
|
public AccessibleSelection getAccessibleSelection() { return null; }
| 4,149
|
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; }
|
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return this; }
| 4,150
|
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; }
|
public int getAccessibleSelectionCount() { return 0; }
| 4,151
|
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; }
|
public int getAccessibleSelectionCount() throws NotImplementedException { return 1; }
| 4,152
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.