home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / AdvancedPane$ExpandAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.9 KB  |  40 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.BaseAction;
  4. import java.awt.event.ActionEvent;
  5. import java.beans.PropertyChangeEvent;
  6. import java.beans.PropertyChangeListener;
  7. import java.util.EventObject;
  8. import javax.swing.AbstractAction;
  9.  
  10. public class AdvancedPane$ExpandAction extends BaseAction implements PropertyChangeListener {
  11.    // $FF: synthetic field
  12.    final AdvancedPane this$0;
  13.  
  14.    public AdvancedPane$ExpandAction(AdvancedPane var1) {
  15.       super("edit.item.expand", 69);
  16.       this.this$0 = var1;
  17.       var1.ipeTable.expandAction.addPropertyChangeListener(this);
  18.       var1.xpeTable.expandAction.addPropertyChangeListener(this);
  19.       var1.igeTable.expandAction.addPropertyChangeListener(this);
  20.       var1.xgeTable.expandAction.addPropertyChangeListener(this);
  21.       var1.notTable.expandAction.addPropertyChangeListener(this);
  22.       var1.piTable.expandAction.addPropertyChangeListener(this);
  23.       var1.nsTable.expandAction.addPropertyChangeListener(this);
  24.       var1.dtTable.expandAction.addPropertyChangeListener(this);
  25.       ((AbstractAction)this).setEnabled(false);
  26.    }
  27.  
  28.    public void actionOccurred(ActionEvent var1) {
  29.       this.this$0.getCurrentTable().expandAction.actionOccurred(var1);
  30.    }
  31.  
  32.    public void propertyChange(PropertyChangeEvent var1) {
  33.       if (var1.getPropertyName().equals("enabled") && ((EventObject)var1).getSource() == this.this$0.getCurrentTable().expandAction) {
  34.          Boolean var2 = (Boolean)var1.getNewValue();
  35.          ((AbstractAction)this).setEnabled(var2);
  36.       }
  37.  
  38.    }
  39. }
  40.