bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static String[] getBeanInfoSearchPath() { return beanInfoSearchPath; }
public static String[] getBeanInfoSearchPath() { return beanInfoSearchPath; }
33,416
public static void setBeanInfoSearchPath(String[] beanInfoSearchPath) { Introspector.beanInfoSearchPath = beanInfoSearchPath; }
public static void setBeanInfoSearchPath(String[] beanInfoSearchPath) { Introspector.beanInfoSearchPath = beanInfoSearchPath; }
33,417
public BeanDescriptor(Class beanClass, Class customizerClass) { this.beanClass = beanClass; this.customizerClass = customizerClass; }
public BeanDescriptor(Class beanClass, Class customizerClass) { this.beanClass = beanClass; this.customizerClass = customizerClass; }
33,418
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
void doParse(Node node, boolean root) throws TransformerConfigurationException { try { String namespaceUri = node.getNamespaceURI(); if (XSL_NS.equals(namespaceUri) && node.getNodeType() == Node.ELEMENT_NODE) { String name = node.getLocalName(); Name...
33,419
TemplateNode getTemplate(QName mode, Node context, boolean applyImports) throws TransformerException { if (debug) System.err.println("getTemplate: mode="+mode+" context="+context); Template selected = null; for (Iterator j = templates.iterator(); j.hasNext(); ) { Template t = (Template...
TemplateNodegetTemplate(QNamemode,Nodecontext,booleanapplyImports)throwsTransformerException{if(debug)System.err.println("getTemplate:mode="+mode+"context="+context);Templateselected=null;for(Iteratorj=templates.iterator();j.hasNext();){Templatet=(Template)j.next();booleanisMatch=t.matches(mode,context);if(applyImports...
33,420
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
33,421
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
final Template parseTemplate(Node node, NamedNodeMap attrs) throws TransformerConfigurationException, XPathExpressionException { String n = getAttribute(attrs, "name"); QName name = (n == null) ? null : getQName(n); String m = getAttribute(attrs, "match"); Pattern match = null; if (m != null) ...
33,422
private void readEntries(Preferences node) throws InvalidPreferencesFormatException, IOException { while ("entry".equals(nextTag())) { skipTill("<entry"); skipTill("key=\""); String key = readTill("\""); skipTill("value=\""); String...
private void readEntries(Preferences node) throws InvalidPreferencesFormatException, IOException { while ("entry".equals(nextTag())) { skipTill("<entry"); skipTill("key=\""); String key = readTill("\""); skipTill("value=\""); String...
33,423
private void readNodes(Preferences node) throws InvalidPreferencesFormatException, IOException { while ("node".equals(nextTag())) { skipTill("<node"); skipTill("name=\""); String name = readTill("\""); Preferences subnode = node.node(name); ...
private void readNodes(Preferences node) throws InvalidPreferencesFormatException, IOException { while ("node".equals(nextTag())) { skipTill("<node"); skipTill("name=\""); String name = readTill("\""); Preferences subnode = node.node(name); ...
33,424
static RawData adjustAddress(RawData address, int offset) { final MemoryResource res = ((MemoryRawData)address).resource; final Extent size = res.getSize().sub(offset); try { return new MemoryRawData(res.claimChildResource(Offset.fromIntZeroExtend(offset), size, true)); } catch (ResourceNotFreeException ex) { ...
static RawData adjustAddress(RawData address, int offset) { final MemoryResource res = ((MemoryRawData)address).resource; final Extent size = res.getSize().sub(offset); try { return new MemoryRawData(res.claimChildResource(Offset.fromIntZeroExtend(offset), size, true)); } catch (ResourceNotFreeException ex) { ...
33,425
static RawData allocate(int capacity) { return new MemoryRawData(capacity); }
static RawData allocate(int capacity) { return new MemoryRawData(capacity); }
33,426
static void free(RawData address) { ((MemoryRawData)address).resource.release(); }
static void free(RawData address) { ((MemoryRawData)address).resource.release(); }
33,427
static byte get(RawData address, int index) { final MemoryRawData mrd = (MemoryRawData)address; final byte value = mrd.address.loadByte(Offset.fromIntZeroExtend(index)); return value; }
static byte get(Pointer address, int index) { final MemoryRawData mrd = (MemoryRawData)address; final byte value = mrd.address.loadByte(Offset.fromIntZeroExtend(index)); return value; }
33,428
static void put(RawData address, int index, byte value) { ((MemoryRawData)address).resource.setByte(index, value); }
static void put(RawData address, int index, byte value) { ((MemoryRawData)address).resource.setByte(index, value); }
33,429
static void shiftDown(RawData address, int dst_offset, int src_offset, int count) { ((MemoryRawData)address).resource.copy(src_offset, dst_offset, count); }
static void shiftDown(RawData address, int dst_offset, int src_offset, int count) { ((MemoryRawData)address).resource.copy(src_offset, dst_offset, count); }
33,430
public static ByteBuffer wrap(MemoryResource resource) { final Object owner = resource.getOwner(); final RawData address = new MemoryRawData(resource); final int size = resource.getSize().toInt(); final ByteBuffer result = new DirectByteBufferImpl.ReadWrite(owner, address, size, size, 0)...
public static ByteBuffer wrap(MemoryResource resource) { final Object owner = resource.getOwner(); final Pointer address = new MemoryRawData(resource); final int size = resource.getSize().toInt(); final ByteBuffer result = new DirectByteBufferImpl.ReadWrite(owner, address, size, size, 0)...
33,431
public static void main(String[] args) throws Exception { final String className = (args.length > 0) ? args[0] : "java.lang.Object"; final VmClassLoader loader = new VmClassLoader(new File(".").toURL(), new VmX86Architecture()); final VmType vmClass = loader.loadClass(className, true); for (int i = 0; i < vmCla...
public static void main(String[] args) throws Exception { final String className = (args.length > 0) ? args[0] : "java.lang.Object"; final VmClassLoader loader = new VmClassLoader(new File(".").toURL(), new VmX86Architecture()); final VmType vmClass = loader.loadClass(className, true); for (int i = 0; i < vmCla...
33,432
protected void init(String text, Icon icon) { this.text = text; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChange...
protected void init(String text, Icon icon) { this.text = text; default_icon = icon; actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChangeListener(changeListener); model...
33,433
protected void init(String text, Icon icon) { this.text = text; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChange...
protected void init(String text, Icon icon) { this.text = text; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChange...
33,434
protected AbstractGraphics2D() { transform = new AffineTransform(); background = Color.WHITE; composite = AlphaComposite.SrcOver; stroke = new BasicStroke(); renderingHints = new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_DEFAULT); ...
protected AbstractGraphics2D() { transform = new AffineTransform(); background = Color.WHITE; composite = AlphaComposite.SrcOver; stroke = new BasicStroke(); renderingHints = new RenderingHints(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_DEFAULT); ...
33,435
public void draw(Shape shape) { // Clip the shape. Shape clipped = clipShape(shape); if (clipped != null) { // Stroke the shape. Shape strokedShape = stroke.createStrokedShape(clipped); // Fill the shape. fillShape(strokedShape); } }
public void draw(Shape shape) { // Clip the shape. Shape clipped = clipShape(shape); if (clipped != null) { // Stroke the shape. Shape strokedShape = stroke.createStrokedShape(clipped); // Fill the shape. fillShape(strokedShape); } }
33,437
public void draw(Shape shape) { // Clip the shape. Shape clipped = clipShape(shape); if (clipped != null) { // Stroke the shape. Shape strokedShape = stroke.createStrokedShape(clipped); // Fill the shape. fillShape(strokedShape); } }
public void draw(Shape shape) { // Clip the shape. Shape clipped = clipShape(shape); if (clipped != null) { // Stroke the shape. Shape strokedShape = stroke.createStrokedShape(clipped); // Fill the shape. fillShape(strokedShape); } }
33,438
public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y); // TODO: We could use fill(gv.getOutline()), but that doesn't seem // to work yet with the font infrastructure I use. for (int i = 0; i < ...
public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y); // TODO: We could use fill(gv.getOutline()), but that doesn't seem // to work yet with the font infrastructure I use. for (int i = 0; i < ...
33,439
public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y); // TODO: We could use fill(gv.getOutline()), but that doesn't seem // to work yet with the font infrastructure I use. for (int i = 0; i < ...
public void drawGlyphVector(GlyphVector gv, float x, float y) { int numGlyphs = gv.getNumGlyphs(); AffineTransform t = new AffineTransform(); t.translate(x, y); // TODO: We could use fill(gv.getOutline()), but that doesn't seem // to work yet with the font infrastructure I use. for (int i = 0; i < ...
33,440
public void drawLine(int x1, int y1, int x2, int y2) { if (isOptimized) rawDrawLine(x1, y1, x2, y2); else { Line2D line = new Line2D.Double(x1, y1, x2, y2); draw(line); } }
public void drawLine(int x1, int y1, int x2, int y2) { if (isOptimized) { int tx = (int) transform.getTranslateX(); int ty = (int) transform.getTranslateY(); rawDrawLine(x1 + tx, y1 + ty, x2 + tx, y2 + ty); } else { Line2D line = new Line2D.Double(x1, y1, x2, y2); draw(line); } }
33,441
public void fill(Shape shape) { Shape clipped = clipShape(shape); if (clipped != null) fillShape(shape); }
public void fill(Shape shape) { Shape clipped = clipShape(shape); if (clipped != null) fillShape(shape); }
33,442
public void fillRect(int x, int y, int width, int height) { if (isOptimized) rawFillRect(x, y, width, height); else { fill(new Rectangle(x, y, width, height)); } }
public void fillRect(int x, int y, int width, int height) { if (isOptimized) { int tx = (int) transform.getTranslateX(); int ty = (int) transform.getTranslateY(); rawFillRect(x + tx, y + ty, width, height); } else { fill(new Rectangle(x, y, width, height)); } }
33,443
protected void fillScanline(int x0, int x1, int y) { for (int x = x0; x < x1; x++) drawPixel(x, y); }
protected void fillScanline(PaintContext pCtx, int x0, int x1, int y) { for (int x = x0; x < x1; x++) drawPixel(x, y); }
33,444
protected void fillScanline(int x0, int x1, int y) { for (int x = x0; x < x1; x++) drawPixel(x, y); }
protected void fillScanline(int x0, int x1, int y) { for (int x = x0; x < x1; x++) drawPixel(x, y); }
33,445
protected void fillShape(Shape s) { PathIterator path = s.getPathIterator(getTransform(), 1.0); // Build up polygons and let the native backend render this using // rawFillPolygon() which would provide a default implementation for // drawPixel using a PolyScan algorithm. double[] seg = new double[6]; ...
protected void fillShape(Shape s, boolean isFont) { PathIterator path = s.getPathIterator(getTransform(), 1.0); // Build up polygons and let the native backend render this using // rawFillPolygon() which would provide a default implementation for // drawPixel using a PolyScan algorithm. double[] seg =...
33,446
protected void fillShape(Shape s) { PathIterator path = s.getPathIterator(getTransform(), 1.0); // Build up polygons and let the native backend render this using // rawFillPolygon() which would provide a default implementation for // drawPixel using a PolyScan algorithm. double[] seg = new double[6]; ...
protected void fillShape(Shape s) { PathIterator path = s.getPathIterator(getTransform(), 1.0); // Build up polygons and let the native backend render this using // rawFillPolygon() which would provide a default implementation for // drawPixel using a PolyScan algorithm. double[] seg = new double[6]; ...
33,447
protected void fillShape(Shape s) { PathIterator path = s.getPathIterator(getTransform(), 1.0); // Build up polygons and let the native backend render this using // rawFillPolygon() which would provide a default implementation for // drawPixel using a PolyScan algorithm. double[] seg = new double[6]; ...
protected void fillShape(Shape s) { PathIterator path = s.getPathIterator(getTransform(), 1.0); // Build up polygons and let the native backend render this using // rawFillPolygon() which would provide a default implementation for // drawPixel using a PolyScan algorithm. double[] seg = new double[6]; ...
33,448
public Rectangle getClipBounds() { return clip.getBounds(); }
public Rectangle getClipBounds() { Rectangle b = null; if (clip != null) b = clip.getBounds(); return b; }
33,449
protected abstract Rectangle getDeviceBounds();
protected abstract Rectangle getDeviceBounds();
33,450
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY, Rectangle2D userBounds) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/...
33,452
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
33,453
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
33,454
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
33,455
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
33,456
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
33,457
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
protected void rawFillShape(ArrayList segs, double minX, double minY, double maxX, double maxY) { // This is an implementation of a polygon scanline conversion algorithm // described here: // http://www.cs.berkeley.edu/~ug/slide/pipeline/assignments/scan/ // Create table of a...
33,458
protected abstract void rawSetForeground(Color c);
protected abstract void rawSetForeground(Color c);
33,460
protected abstract void rawSetPixel(int x, int y);
protected abstract void rawSetPixel(int x, int y);
33,461
public void setComposite(Composite comp) { composite = comp; compositeContext = composite.createContext(getColorModel(), getDestinationColorModel(), renderingHints); if (! (comp.equals(AlphaComposite.SrcOver))) ...
public void setComposite(Composite comp) { composite = comp; compositeContext = composite.createContext(getColorModel(), getDestinationColorModel(), renderingHints); if (! (comp.equals(AlphaComposite.SrcOver))) ...
33,462
public void setPaint(Paint p) { paint = p; if (paint != null && ! (paint instanceof Color)) isOptimized = false; else { updateOptimization(); rawSetForeground((Color) paint); } }
public void setPaint(Paint p) { paint = p; if (! (paint instanceof Color)) isOptimized = false; else { updateOptimization(); rawSetForeground((Color) paint); } }
33,463
private void updateOptimization() { int transformType = transform.getType(); boolean optimizedTransform = (transformType & (AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_IDENTITY)) != 0; isOptimized = clip instanceof Rectangle && optimizedTransform && paint instanceof Co...
private void updateOptimization() { int transformType = transform.getType(); boolean optimizedTransform = (transformType & (AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_IDENTITY)) != 0; isOptimized = clip instanceof Rectangle && optimizedTransform && paint instanceof Co...
33,466
private void updateOptimization() { int transformType = transform.getType(); boolean optimizedTransform = (transformType & (AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_IDENTITY)) != 0; isOptimized = clip instanceof Rectangle && optimizedTransform && paint instanceof Co...
private void updateOptimization() { int transformType = transform.getType(); boolean optimizedTransform = (transformType & (AffineTransform.TYPE_TRANSLATION | AffineTransform.TYPE_IDENTITY)) != 0; boolean optimizedClip = (clip == null || clip instanceof Rectangle); isOptimized = optimizedClip ...
33,467
public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ...
public Area() { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting * so...
33,468
public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ...
public Area(Shape s) { this(); Vector p = makeSegment(s); // empty path if (p == null) return; // delete empty paths for (int i = 0; i < p.size(); i++) if (((Segment) p.elementAt(i)).getSignedArea() == 0.0) p.remove(i--); /* * Resolve self intersecting paths into non-intersecting ...
33,469
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalSliderUI(); return instance; }
public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalSliderUI instance; if (o == null) { instance = new MetalSliderUI(); return instance; }
33,470
public DefaultTableModel() { this(0, 0); } // DefaultTableModel()
public DefaultTableModel() { this(0, 0); } // DefaultTableModel()
33,472
public DefaultTableModel() { this(0, 0); } // DefaultTableModel()
public DefaultTableModel() { this(0, 0); } // DefaultTableModel()
33,473
public void addColumn(Object columnName) { addColumn(columnName, new Vector(dataVector.size())); } // addColumn()
public void addColumn(Object columnName) { addColumn(columnName, new Vector(dataVector.size())); } // addColumn()
33,474
public void addRow(Vector rowData) { // TODO } // addRow()
public void addRow(Vector rowData) { // TODO } // addRow()
33,475
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu...
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu...
33,476
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu...
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu...
33,477
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu...
protected static Vector convertToVector(Object[] data) { // Variables int index; Vector vector; // Check for null if (data == null) { return null; } // if // Process vector = new Vector(); for (index = 0; index < data.length; index++) { vector.add(data[index]); } // for: index // Return new Vector retu...
33,478
public int getColumnCount() { return columnIdentifiers.size(); } // getColumnCount()
public int getColumnCount() { return columnIdentifiers.size(); } // getColumnCount()
33,479
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // if // Return Column name return (String) columnIdentifiers.get(column); } // getColumnName()
publicStringgetColumnName(intcolumn){ //CheckforColumn if(columnIdentifiers==null||column>=getColumnCount()){ returnsuper.getColumnName(column); }//if //ReturnColumnname return(String)columnIdentifiers.get(column); }//getColumnName()
33,480
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // if // Return Column name return (String) columnIdentifiers.get(column); } // getColumnName()
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // if // Return Column name return (String) columnIdentifiers.get(column); } // getColumnName()
33,481
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // if // Return Column name return (String) columnIdentifiers.get(column); } // getColumnName()
public String getColumnName(int column) { // Check for Column if (columnIdentifiers == null || column >= getColumnCount()) { return super.getColumnName(column); } // if // Return Column name return (String) columnIdentifiers.get(column); } // getColumnName()
33,482
public Vector getDataVector() { return dataVector; } // getDataVector()
public Vector getDataVector() { return dataVector; } // getDataVector()
33,483
public Vector getDataVector() { return dataVector; } // getDataVector()
public Vector getDataVector() { return dataVector; } // getDataVector()
33,484
public int getRowCount() { return dataVector.size(); } // getRowCount()
public int getRowCount() { return dataVector.size(); } // getRowCount()
33,485
public Object getValueAt(int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Get Data return rowVector.get(column); } // getValueAt()
public Object getValueAt(int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Get Data return rowVector.get(column); } // getValueAt()
33,486
public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); } // insertRow()
public void insertRow(int row, Vector rowData) { dataVector.add(row, rowData); fireTableDataChanged(); } // insertRow()
33,487
public boolean isCellEditable(int row, int column) { return true; } // isCellEditable()
public boolean isCellEditable(int row, int column) { return true; } // isCellEditable()
33,488
public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow()
public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow()
33,489
public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow()
public void moveRow(int startIndex, int endIndex, int toIndex) { // Variables int index; Vector vector; // Move Rows for (index = 0; index < (endIndex - startIndex); index++) { vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector); } // for } // moveRow()
33,490
public void newDataAvailable(TableModelEvent event) { fireTableChanged(event); } // newDataAvailable()
public void newDataAvailable(TableModelEvent event) { fireTableChanged(event); } // newDataAvailable()
33,491
public void newDataAvailable(TableModelEvent event) { fireTableChanged(event); } // newDataAvailable()
public void newDataAvailable(TableModelEvent event) { fireTableChanged(event); } // newDataAvailable()
33,492
public void newRowsAdded(TableModelEvent event) { // TODO } // newRowsAdded()
public void newRowsAdded(TableModelEvent event) { // TODO } // newRowsAdded()
33,493
public void removeRow(int row) { dataVector.remove(row); } // removeRow()
public void removeRow(int row) { dataVector.remove(row); fireTableDataChanged(); } // removeRow()
33,494
public void rowsRemoved(TableModelEvent event) { fireTableChanged(event); } // rowsRemoved()
public void rowsRemoved(TableModelEvent event) { fireTableChanged(event); } // rowsRemoved()
33,495
public void rowsRemoved(TableModelEvent event) { fireTableChanged(event); } // rowsRemoved()
public void rowsRemoved(TableModelEvent event) { fireTableChanged(event); } // rowsRemoved()
33,496
public void setColumnCount(int columnCount) { // TODO } // setColumnCount()
public void setColumnCount(int columnCount) { // TODO } // setColumnCount()
33,497
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers.size()); } // setColumnIdentifiers()
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers.size()); } // setColumnIdentifiers()
33,498
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers.size()); } // setColumnIdentifiers()
public void setColumnIdentifiers(Vector columnIdentifiers) { this.columnIdentifiers = columnIdentifiers; setColumnCount(columnIdentifiers.size()); } // setColumnIdentifiers()
33,499
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo...
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo...
33,500
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo...
public void setDataVector(Vector data, Vector columnNames) { // Variables int rowIndex; int numRows; int numColumns; Vector columnVector; // Set Data dataVector = data; columnIdentifiers = columnNames; // Check Data numRows = data.size(); numColumns = columnNames.size(); for (rowIndex = 0; rowIndex < numRo...
33,501
public void setNumRows(int numRows) { setRowCount(numRows); } // setNumRows()
public void setNumRows(int numRows) { setRowCount(numRows); } // setNumRows()
33,502
public void setNumRows(int numRows) { setRowCount(numRows); } // setNumRows()
public void setNumRows(int numRows) { setRowCount(numRows); } // setNumRows()
33,503
public void setRowCount(int rowCount) { // TODO } // setRowCount()
public void setRowCount(int rowCount) { // TODO } // setRowCount()
33,504
public void setValueAt(Object value, int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Set Data rowVector.remove(column); rowVector.add(column, value); } // setValueAt()
public void setValueAt(Object value, int row, int column) { // Variables Vector rowVector; // Get Row Vector rowVector = (Vector) dataVector.get(row); // Set Data rowVector.remove(column); rowVector.add(column, value); } // setValueAt()
33,505
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,507
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,508
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,509
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,510
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,511
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,512
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,513
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
protected void adjustRow(FlowView fv, int rowIndex, int desiredSpan, int x) { // Determine the last view that has the highest break weight. int axis = fv.getFlowAxis(); View row = fv.getView(rowIndex); int count = row.getViewCount(); int breakIndex = -1; int maxBreakWeight = View.BadBr...
33,514
public void changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { // The default implementation does nothing. }
if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (host != null) host.repaint(alloc.x, alloc.y, alloc.width, alloc.height); } if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (h...
33,516
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;...
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;...
33,517
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;...
protected View createView(FlowView fv, int startOffset, int spanLeft, int rowIndex) { View logicalView = getLogicalView(fv); // FIXME: Handle the bias thing correctly. int index = logicalView.getViewIndex(startOffset, Position.Bias.Forward); View retVal = null;...
33,518
public void insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) { // The default implementation does nothing. }
if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (host != null) host.repaint(alloc.x, alloc.y, alloc.width, alloc.height); } if (alloc == null) { fv.layoutChanged(X_AXIS); fv.layoutChanged(Y_AXIS); } else { Component host = fv.getContainer(); if (h...
33,519
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r...
public void layout(FlowView fv) { fv.removeAll(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); rowStart = layoutRow(fv, rowInd...
33,520
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r...
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r...
33,521
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r...
public void layout(FlowView fv) { fv.removeAll(); Element el = fv.getElement(); int rowStart = el.getStartOffset(); int end = el.getEndOffset(); int rowIndex = 0; while (rowStart >= 0 && rowStart < end) { View row = fv.createRow(); fv.append(row); r...
33,522
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span...
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span...
33,523