diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/IntegerPropertyEditor.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/scape/IntegerPropertyEditor.java')
| -rw-r--r-- | NET/worlds/scape/IntegerPropertyEditor.java | 97 |
1 files changed, 97 insertions, 0 deletions
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 |