summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ItemNotAvailableDialog.java
blob: 0a233863409bdc3008523094fc8a8ac1aff6fbaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*    */ package NET.worlds.scape;
/*    */ 
/*    */ import NET.worlds.console.Console;
/*    */ import NET.worlds.console.DialogReceiver;
/*    */ import NET.worlds.console.ImageButtons;
/*    */ import NET.worlds.console.ImageButtonsCallback;
/*    */ import NET.worlds.console.PolledDialog;
/*    */ import java.awt.Component;
/*    */ import java.awt.Event;
/*    */ import java.awt.Rectangle;
/*    */ import java.awt.Window;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ItemNotAvailableDialog
/*    */   extends PolledDialog
/*    */   implements ImageButtonsCallback
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private ImageButtons ib;
/*    */   
/*    */   public ItemNotAvailableDialog(Window parent, DialogReceiver receiver)
/*    */   {
/* 28 */     super(parent, receiver, Console.message("Not-Available"), false);
/* 29 */     setAlignment(1);
/* 30 */     Rectangle[] rects = new Rectangle[1];
/* 31 */     rects[0] = new Rectangle(101, 22, 48, 19);
/* 32 */     this.ib = new ImageButtons(Console.message("notavail.gif"), rects, this);
/* 33 */     ready();
/*    */   }
/*    */   
/*    */   protected void build()
/*    */   {
/* 38 */     add("Center", this.ib);
/*    */   }
/*    */   
/*    */   public Object imageButtonsCallback(Component who, int which)
/*    */   {
/* 43 */     done(false);
/* 44 */     return null;
/*    */   }
/*    */   
/*    */   @Deprecated
/*    */   public boolean keyDown(Event event, int key)
/*    */   {
/* 50 */     if (key == 27)
/* 51 */       return done(false);
/* 52 */     if (key == 10)
/* 53 */       return done(false);
/* 54 */     return super.keyDown(event, key);
/*    */   }
/*    */ }


/* Location:              C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ItemNotAvailableDialog.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */