home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 March / pcp161a.iso / handson / files / copyjava.exe / com / sun / java / swing / DefaultCellEditor$EditorDelegate.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-02-26  |  1.5 KB  |  51 lines

  1. package com.sun.java.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. class DefaultCellEditor$EditorDelegate implements ActionListener, ItemListener, Serializable {
  11.    // $FF: synthetic field
  12.    private final DefaultCellEditor this$0;
  13.    protected Object value;
  14.  
  15.    public Object getCellEditorValue() {
  16.       return this.value;
  17.    }
  18.  
  19.    public void setValue(Object var1) {
  20.       this.value = var1;
  21.    }
  22.  
  23.    public boolean isCellEditable(EventObject var1) {
  24.       return true;
  25.    }
  26.  
  27.    public boolean startCellEditing(EventObject var1) {
  28.       return true;
  29.    }
  30.  
  31.    public boolean stopCellEditing() {
  32.       return true;
  33.    }
  34.  
  35.    public void cancelCellEditing() {
  36.    }
  37.  
  38.    public void actionPerformed(ActionEvent var1) {
  39.       this.this$0.fireEditingStopped();
  40.    }
  41.  
  42.    public void itemStateChanged(ItemEvent var1) {
  43.       this.this$0.fireEditingStopped();
  44.    }
  45.  
  46.    DefaultCellEditor$EditorDelegate(DefaultCellEditor var1) {
  47.       this.this$0 = var1;
  48.       this.this$0 = var1;
  49.    }
  50. }
  51.