home *** CD-ROM | disk | FTP | other *** search
- package jclass.beans;
-
- import java.beans.PropertyEditorSupport;
- import jclass.util.JCUtilConverter;
-
- public class StringEditor extends PropertyEditorSupport {
- public void setAsText(String var1) {
- ((PropertyEditorSupport)this).setValue(JCUtilConverter.toNewLine(var1));
- }
-
- public String getAsText() {
- return ((PropertyEditorSupport)this).getValue() == null ? "" : JCUtilConverter.fromNewLine(((PropertyEditorSupport)this).getValue().toString());
- }
-
- public String getJavaInitializationString() {
- return "\"" + this.getAsText() + "\"";
- }
- }
-