home *** CD-ROM | disk | FTP | other *** search
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Dialog;
- import java.awt.Dimension;
- import java.awt.Event;
- import java.awt.Frame;
- import java.awt.Window;
-
- class ACapplst extends Dialog {
- public String[] appdescs;
- private ACIntf parent;
- private int win_width = 354;
- private int win_height = 177;
- public String[][] appListInfo;
- private APInfo appinfo;
- public AIPars rawinfo;
- ACapplstpan listpan;
- int cur_selection;
-
- public void selectedApplet(int var1) {
- this.rawinfo.curSelection = var1;
- String[][] var2 = this.rawinfo.getParamInfo(var1);
- this.appinfo = new APInfo(var2, false);
- this.parent.initACIntf(0, this.appinfo, this.rawinfo.getAppletInfo(var1)[1], this.rawinfo.getAppletInfo(var1)[2], this.rawinfo.getAppletInfo(var1)[0]);
- }
-
- public ACapplst(Frame var1, boolean var2, ACIntf var3, AIPars var4) {
- super(var1, var2);
- this.cur_selection = ACutila.dhtmlList_lastSelection;
- ((Dialog)this).setResizable(false);
- this.rawinfo = var4;
- this.parent = var3;
- this.appListInfo = this.rawinfo.getAppletListAndDescs();
- this.appdescs = new String[this.appListInfo[0].length];
- this.appdescs = this.appListInfo[1];
- Dimension var5 = ((Window)this).getToolkit().getScreenSize();
- int var6 = (var5.width - this.win_width) / 2;
- int var7 = (var5.height - this.win_height) / 2;
- ((Component)this).reshape(var6, var7, this.win_width, this.win_height);
- ((Dialog)this).setTitle("Select New DHTML Effect");
- ((Component)this).setBackground(ACutilb.windowColor);
- this.listpan = new ACapplstpan(this);
- ((Container)this).add("Center", this.listpan);
- this.listpan.addComponentSelection();
- this.listpan.addInfoArea();
- this.listpan.addButtons();
- }
-
- public boolean handleEvent(Event var1) {
- if (var1.id == 201) {
- ((Window)this).dispose();
- return true;
- } else {
- return super.handleEvent(var1);
- }
- }
- }
-