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/BooleanPropertyEditor.java | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 NET/worlds/scape/BooleanPropertyEditor.java (limited to 'NET/worlds/scape/BooleanPropertyEditor.java') diff --git a/NET/worlds/scape/BooleanPropertyEditor.java b/NET/worlds/scape/BooleanPropertyEditor.java new file mode 100644 index 0000000..2797c5d --- /dev/null +++ b/NET/worlds/scape/BooleanPropertyEditor.java @@ -0,0 +1,76 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.PolledDialog; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class BooleanPropertyEditor +/* */ extends PropEditor +/* */ { +/* */ private String falseName; +/* */ private String trueName; +/* */ +/* */ private BooleanPropertyEditor(Property property, String falseName, String trueName) +/* */ { +/* 50 */ super(property); +/* 51 */ this.falseName = falseName; +/* 52 */ this.trueName = trueName; +/* */ } +/* */ +/* */ public PolledDialog edit(EditTile parent, String title) +/* */ { +/* 57 */ String[] choices = { this.falseName, this.trueName }; +/* 58 */ return new BooleanFieldEditorDialog(parent, title, this.property, +/* 59 */ choices); +/* */ } +/* */ +/* */ +/* */ public static Property make(Property property, String falseName, String trueName) +/* */ { +/* 65 */ property.setPropertyType(0); +/* 66 */ return property.setEditor(new BooleanPropertyEditor(property, +/* 67 */ falseName, +/* 68 */ trueName)); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\BooleanPropertyEditor.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3