/* */ 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 */