From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/scape/IntegerPropertyEditor.java | 97 +++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 NET/worlds/scape/IntegerPropertyEditor.java (limited to 'NET/worlds/scape/IntegerPropertyEditor.java') diff --git a/NET/worlds/scape/IntegerPropertyEditor.java b/NET/worlds/scape/IntegerPropertyEditor.java new file mode 100644 index 0000000..6ce30cc --- /dev/null +++ b/NET/worlds/scape/IntegerPropertyEditor.java @@ -0,0 +1,97 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.PolledDialog; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class IntegerPropertyEditor +/* */ extends PropEditor +/* */ { +/* 57 */ boolean rangeLimits = false; +/* */ int minVal; +/* */ int maxVal; +/* */ +/* */ private IntegerPropertyEditor(Property property) +/* */ { +/* 63 */ super(property); +/* */ } +/* */ +/* */ private IntegerPropertyEditor(Property property, int minVal, int maxVal) +/* */ { +/* 68 */ super(property); +/* 69 */ this.rangeLimits = true; +/* 70 */ this.minVal = minVal; +/* 71 */ this.maxVal = maxVal; +/* */ } +/* */ +/* */ public PolledDialog edit(EditTile parent, String title) +/* */ { +/* 76 */ return new IntegerFieldEditorDialog(parent, title, this.property, this); +/* */ } +/* */ +/* */ public static Property make(Property property) +/* */ { +/* 81 */ property.setPropertyType(1); +/* 82 */ return property.setEditor(new IntegerPropertyEditor(property)); +/* */ } +/* */ +/* */ public static Property make(Property property, int minVal, int maxVal) +/* */ { +/* 87 */ property.setPropertyType(1); +/* 88 */ return property.setEditor(new IntegerPropertyEditor(property, minVal, +/* 89 */ maxVal)); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\IntegerPropertyEditor.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3