home *** CD-ROM | disk | FTP | other *** search
- package netscape.application;
-
- class AlertContentView extends View implements Target {
- Alert alert;
-
- public AlertContentView(Alert var1, int var2, int var3, int var4, int var5) {
- super(var2, var3, var4, var5);
- this.alert = var1;
- }
-
- public void drawView(Graphics var1) {
- var1.setColor(Color.lightGray);
- var1.fillRect(var1.clipRect());
- }
-
- public void performCommand(String var1, Object var2) {
- if ("performDefaultAction".equals(var1)) {
- this.alert.setResult(1);
- } else if ("performSecondAction".equals(var1)) {
- this.alert.setResult(2);
- } else {
- if (!"performThirdAction".equals(var1)) {
- throw new NoSuchMethodError("unknown command: " + var1);
- }
-
- this.alert.setResult(3);
- }
-
- this.alert.hide();
- }
- }
-