summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/StringPropertyEditor.java
blob: f3a90efcd1141396d018ca0a7288f9c4f780ab9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package NET.worlds.scape;

import NET.worlds.console.PolledDialog;

public class StringPropertyEditor extends PropEditor {
   private StringPropertyEditor(Property property) {
      super(property);
   }

   @Override
   public PolledDialog edit(EditTile parent, String title) {
      return new StringFieldEditorDialog(parent, title, this.property);
   }

   public static Property make(Property property) {
      property.setPropertyType(3);
      return property.setEditor(new StringPropertyEditor(property));
   }
}