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
77
78
79
|
/* */ package NET.worlds.scape;
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class PropPropEditorDialog
/* */ extends ListChooserDialog
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */
/* */
/* */
/* */
/* */ private SuperRoot _target;
/* */
/* */
/* */
/* */
/* */ private Property _property;
/* */
/* */
/* */
/* */
/* */ private boolean _nullHandling;
/* */
/* */
/* */
/* */
/* */
/* */ PropPropEditorDialog(EditTile parent, String title, Property property, SuperRoot target, boolean nullHandling)
/* */ {
/* 34 */ super(parent, title);
/* 35 */ this._target = target;
/* 36 */ this._property = property;
/* 37 */ this._nullHandling = nullHandling;
/* 38 */ ready();
/* */ }
/* */
/* */ protected String getEntry(int index)
/* */ {
/* 43 */ Property p = null;
/* */ try {
/* 45 */ p = (Property)this._target.properties(index, 0, 0, null);
/* */ }
/* */ catch (NoSuchPropertyException localNoSuchPropertyException) {}
/* 48 */ return p == null ? null : p.getName();
/* */ }
/* */
/* */ protected int getSelected()
/* */ {
/* 53 */ if (this._property == null)
/* 54 */ return -1;
/* 55 */ Property val = (Property)this._property.get();
/* 56 */ if (val == null)
/* 57 */ return -1;
/* 58 */ return val.getIndex();
/* */ }
/* */
/* */ protected boolean setValue(String text, int index)
/* */ {
/* 63 */ if ((index == -1) && (!this._nullHandling))
/* 64 */ return false;
/* 65 */ Object val = null;
/* */ try {
/* 67 */ val = this._target.properties(index, 0, 0, null);
/* */ } catch (NoSuchPropertyException nspe) {
/* 69 */ if (!$assertionsDisabled) throw new AssertionError(); }
/* 70 */ this._parent.addUndoableSet(this._property, val);
/* 71 */ return true;
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PropPropEditorDialog.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|