1 19 20 21 package org.netbeans.modules.i18n.form; 22 23 24 import org.netbeans.modules.form.FormDesignValue; 25 import org.netbeans.modules.i18n.I18nSupport; 26 import org.netbeans.modules.i18n.java.JavaI18nString; 27 28 37 public class FormI18nMnemonic extends FormI18nString { 38 39 40 public FormI18nMnemonic(I18nSupport i18nSupport) { 41 super(i18nSupport); 42 } 43 44 46 public FormI18nMnemonic(JavaI18nString source) { 47 super(source); 48 } 49 50 53 public Object getDesignValue() { 54 Object designValue = super.getDesignValue(); 55 if(designValue != FormDesignValue.IGNORED_VALUE) 56 return new Character (((String )designValue).charAt(0)); 57 else 58 return designValue; 59 } 60 61 64 public String getReplaceString() { 65 return super.getReplaceString() + ".charAt(0)"; 66 } 67 68 } | Popular Tags |