home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 144 / DPCS0200.iso / Internet / Supanet / system / swing.jar / javax / swing / text / TableView$TableCell.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-05  |  1.0 KB  |  39 lines

  1. package javax.swing.text;
  2.  
  3. public class TableView$TableCell extends BoxView implements TableView.GridCell {
  4.    // $FF: synthetic field
  5.    private final TableView this$0;
  6.    int row;
  7.    int col;
  8.  
  9.    public TableView$TableCell(TableView var1, Element var2) {
  10.       super(var2, 1);
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public int getColumnCount() {
  15.       return 1;
  16.    }
  17.  
  18.    public int getGridColumn() {
  19.       return this.col;
  20.    }
  21.  
  22.    public int getGridRow() {
  23.       return this.row;
  24.    }
  25.  
  26.    public float getPreferredSpan(int var1) {
  27.       return var1 == 0 ? super.getPreferredSpan(var1) / (float)this.getColumnCount() : super.getPreferredSpan(var1) / (float)this.getRowCount();
  28.    }
  29.  
  30.    public int getRowCount() {
  31.       return 1;
  32.    }
  33.  
  34.    public void setGridLocation(int var1, int var2) {
  35.       this.row = var1;
  36.       this.col = var2;
  37.    }
  38. }
  39.