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

  1. package javax.swing;
  2.  
  3. import java.util.EventObject;
  4.  
  5. final class DefaultCellEditor$1 extends DefaultCellEditor.EditorDelegate {
  6.    // $FF: synthetic field
  7.    private final DefaultCellEditor this$0;
  8.  
  9.    // $FF: synthetic method
  10.    DefaultCellEditor$1(DefaultCellEditor var1, DefaultCellEditor var2) {
  11.       super(var2);
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public Object getCellEditorValue() {
  16.       return ((JTextField)this.this$0.editorComponent).getText();
  17.    }
  18.  
  19.    public void setValue(Object var1) {
  20.       super.setValue(var1);
  21.       if (var1 != null) {
  22.          ((JTextField)this.this$0.editorComponent).setText(var1.toString());
  23.       } else {
  24.          ((JTextField)this.this$0.editorComponent).setText("");
  25.       }
  26.  
  27.    }
  28.  
  29.    public boolean startCellEditing(EventObject var1) {
  30.       if (var1 == null) {
  31.          this.this$0.editorComponent.requestFocus();
  32.       }
  33.  
  34.       return true;
  35.    }
  36.  
  37.    public boolean stopCellEditing() {
  38.       return true;
  39.    }
  40. }
  41.