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/BooleanPropertyEditor.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/scape/BooleanPropertyEditor.java')
| -rw-r--r-- | NET/worlds/scape/BooleanPropertyEditor.java | 76 |
1 files changed, 76 insertions, 0 deletions
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 |