summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/MaybeNullDialog.java
blob: 3d1e30c1794a6b1dc15c4801ddb771ce64a21073 (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
/*    */ package NET.worlds.scape;
/*    */ 
/*    */ import NET.worlds.console.ConfirmDialog;
/*    */ import NET.worlds.console.Console;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ class MaybeNullDialog
/*    */   extends ConfirmDialog
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */   private Property property;
/*    */   private Object newOne;
/*    */   private EditTile parent;
/*    */   
/*    */   MaybeNullDialog(EditTile parent, String title, String prompt, Property property, Object newOne)
/*    */   {
/* 27 */     super(Console.getFrame(), parent, title, prompt);
/* 28 */     this.property = property;
/* 29 */     this.newOne = newOne;
/* 30 */     this.parent = parent;
/* 31 */     ready();
/*    */   }
/*    */   
/*    */ 
/*    */   protected boolean setValue()
/*    */   {
/* 37 */     this.parent.addUndoableSet(this.property, this.newOne);
/* 38 */     return true;
/*    */   }
/*    */ }


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