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