summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/PropPropEditorDialog.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/PropPropEditorDialog.java
downloadworlds.jar-main.tar.xz
worlds.jar-main.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/PropPropEditorDialog.java')
-rw-r--r--NET/worlds/scape/PropPropEditorDialog.java79
1 files changed, 79 insertions, 0 deletions
diff --git a/NET/worlds/scape/PropPropEditorDialog.java b/NET/worlds/scape/PropPropEditorDialog.java
new file mode 100644
index 0000000..819eef2
--- /dev/null
+++ b/NET/worlds/scape/PropPropEditorDialog.java
@@ -0,0 +1,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
+ */ \ No newline at end of file