summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/BooleanPropertyEditor.java
blob: 2797c5d218c850d6284b50e30ba43780013c661d (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*    */ package NET.worlds.scape;
/*    */ 
/*    */ import NET.worlds.console.PolledDialog;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class BooleanPropertyEditor
/*    */   extends PropEditor
/*    */ {
/*    */   private String falseName;
/*    */   private String trueName;
/*    */   
/*    */   private BooleanPropertyEditor(Property property, String falseName, String trueName)
/*    */   {
/* 50 */     super(property);
/* 51 */     this.falseName = falseName;
/* 52 */     this.trueName = trueName;
/*    */   }
/*    */   
/*    */   public PolledDialog edit(EditTile parent, String title)
/*    */   {
/* 57 */     String[] choices = { this.falseName, this.trueName };
/* 58 */     return new BooleanFieldEditorDialog(parent, title, this.property, 
/* 59 */       choices);
/*    */   }
/*    */   
/*    */ 
/*    */   public static Property make(Property property, String falseName, String trueName)
/*    */   {
/* 65 */     property.setPropertyType(0);
/* 66 */     return property.setEditor(new BooleanPropertyEditor(property, 
/* 67 */       falseName, 
/* 68 */       trueName));
/*    */   }
/*    */ }


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