home *** CD-ROM | disk | FTP | other *** search
- package javax.swing.text;
-
- import java.awt.Graphics;
- import java.awt.Shape;
-
- class TableView$ProxyCell extends View implements TableView.GridCell {
- // $FF: synthetic field
- private final TableView this$0;
- TableView.TableCell host;
- int row;
- int col;
-
- TableView$ProxyCell(TableView var1, Element var2) {
- super(var2);
- this.this$0 = var1;
- this.host = null;
- }
-
- TableView$ProxyCell(TableView var1, TableView.TableCell var2) {
- super(((View)var2).getElement());
- this.this$0 = var1;
- this.host = var2;
- }
-
- public int getColumnCount() {
- return 1;
- }
-
- public int getGridColumn() {
- return this.col;
- }
-
- public int getGridRow() {
- return this.row;
- }
-
- public float getPreferredSpan(int var1) {
- return this.host != null ? this.host.getPreferredSpan(var1) : 0.0F;
- }
-
- public int getResizeWeight(int var1) {
- return 1;
- }
-
- public int getRowCount() {
- return 1;
- }
-
- protected void loadChildren(ViewFactory var1) {
- }
-
- public Shape modelToView(int var1, Shape var2, Position.Bias var3) throws BadLocationException {
- return this.host != null ? this.host.modelToView(var1, var2, var3) : null;
- }
-
- public void paint(Graphics var1, Shape var2) {
- }
-
- public void setGridLocation(int var1, int var2) {
- this.row = var1;
- this.col = var2;
- ((View)this).preferenceChanged((View)null, true, true);
- }
-
- public int viewToModel(float var1, float var2, Shape var3, Position.Bias[] var4) {
- return this.host != null ? this.host.viewToModel(var1, var2, var3, var4) : -1;
- }
- }
-