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

  1. package javax.swing;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.awt.event.ActionListener;
  5. import java.awt.event.ItemEvent;
  6. import java.awt.event.ItemListener;
  7. import java.io.Serializable;
  8. import java.util.EventObject;
  9.  
  10. public class DefaultCellEditor$EditorDelegate implements ActionListener, ItemListener, Serializable {
  11.    // $FF: synthetic field
  12.    private final DefaultCellEditor this$0;
  13.    protected Object value;
  14.  
  15.    protected DefaultCellEditor$EditorDelegate(DefaultCellEditor var1) {
  16.       this.this$0 = var1;
  17.    }
  18.  
  19.    public void actionPerformed(ActionEvent var1) {
  20.       this.this$0.fireEditingStopped();
  21.    }
  22.  
  23.    public void cancelCellEditing() {
  24.    }
  25.  
  26.    public Object getCellEditorValue() {
  27.       return this.value;
  28.    }
  29.  
  30.    public boolean isCellEditable(EventObject var1) {
  31.       return true;
  32.    }
  33.  
  34.    public void itemStateChanged(ItemEvent var1) {
  35.       this.this$0.fireEditingStopped();
  36.    }
  37.  
  38.    public void setValue(Object var1) {
  39.       this.value = var1;
  40.    }
  41.  
  42.    public boolean startCellEditing(EventObject var1) {
  43.       return true;
  44.    }
  45.  
  46.    public boolean stopCellEditing() {
  47.       return true;
  48.    }
  49. }
  50.