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