blob: b20313f9cff27034281d2f2f518c9f3bce39b734 (
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
|
/* */ package NET.worlds.scape;
/* */
/* */ import java.util.StringTokenizer;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ class FloatArrayEditorDialog
/* */ extends ListEditorDialog
/* */ {
/* */ private static final long serialVersionUID = 1L;
/* */ protected Property property;
/* */ protected float[] arr;
/* */
/* */ FloatArrayEditorDialog(EditTile parent, String title, Property property)
/* */ {
/* 28 */ super(parent, title);
/* 29 */ this.property = property;
/* 30 */ ready();
/* */ }
/* */
/* */ protected void build()
/* */ {
/* 35 */ this.arr = ((float[])this.property.get());
/* 36 */ super.build();
/* */ }
/* */
/* */ protected int getElementCount()
/* */ {
/* 41 */ return this.arr.length;
/* */ }
/* */
/* */ protected String getElement(int index)
/* */ {
/* 46 */ return this.arr[index];
/* */ }
/* */
/* */ protected boolean setElements(StringTokenizer e)
/* */ {
/* 51 */ int count = 0;
/* 52 */ while (e.hasMoreTokens())
/* */ try {
/* 54 */ this.arr[(count++)] = Float.valueOf(e.nextToken()).floatValue();
/* */ } catch (Exception x) {
/* 56 */ return false;
/* */ }
/* 58 */ if (count == this.arr.length) {
/* 59 */ this.parent.addUndoableSet(this.property, this.arr);
/* 60 */ return true;
/* */ }
/* 62 */ return false;
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\FloatArrayEditorDialog.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|