home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.ItemEvent;
- import java.awt.event.ItemListener;
- import java.awt.event.MouseEvent;
- import java.io.Serializable;
- import java.util.EventObject;
-
- public class DefaultCellEditor$EditorDelegate implements ActionListener, ItemListener, Serializable {
- protected Object value;
- // $FF: synthetic field
- private final DefaultCellEditor this$0;
-
- protected DefaultCellEditor$EditorDelegate(DefaultCellEditor var1) {
- this.this$0 = var1;
- }
-
- public Object getCellEditorValue() {
- return this.value;
- }
-
- public void setValue(Object var1) {
- this.value = var1;
- }
-
- public boolean isCellEditable(EventObject var1) {
- if (var1 instanceof MouseEvent) {
- return ((MouseEvent)var1).getClickCount() >= this.this$0.clickCountToStart;
- } else {
- return true;
- }
- }
-
- public boolean shouldSelectCell(EventObject var1) {
- return true;
- }
-
- public boolean startCellEditing(EventObject var1) {
- return true;
- }
-
- public boolean stopCellEditing() {
- this.this$0.fireEditingStopped();
- return true;
- }
-
- public void cancelCellEditing() {
- this.this$0.fireEditingCanceled();
- }
-
- public void actionPerformed(ActionEvent var1) {
- this.this$0.stopCellEditing();
- }
-
- public void itemStateChanged(ItemEvent var1) {
- this.this$0.stopCellEditing();
- }
- }
-