/* */ 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 */