1 19 20 package org.netbeans.modules.form; 21 22 import java.awt.Component ; 23 import java.beans.PropertyEditor ; 24 import java.io.IOException ; 25 import org.openide.loaders.DataObject; 26 27 33 public interface I18nService { 34 35 39 I18nValue create(String key, String value, DataObject srcDataObject); 40 41 45 I18nValue changeKey(I18nValue prev, String newKey); 46 47 51 I18nValue changeValue(I18nValue prev, String value); 52 53 57 I18nValue switchLocale(I18nValue value, String localeSuffix); 58 59 65 void update(I18nValue oldValue, I18nValue newValue, 66 DataObject srcDataObject, String bundleName, String localeSuffix, 67 boolean canRemove) 68 throws IOException ; 69 70 75 PropertyEditor getPropertyEditor(Class type, PropertyEditor existing); 76 77 84 int analyzePropertyEditorChange(PropertyEditor oldPE, PropertyEditor newPE); 85 86 93 Component getBundleSelectionComponent(PropertyEditor pe, DataObject srcDataObject); 94 95 100 String [][] getAvailableLocales(DataObject srcDataObject, String bundleName); 101 102 108 Component getCreateLocaleComponent(PropertyEditor pe, DataObject srcDataObject, String bundleName); 109 110 115 void autoSave(DataObject srcDataObject); 116 117 121 void close(DataObject srcDataObject); 122 123 130 boolean isDefaultInternationalizableProject(DataObject srcDataObject); 131 } 132 | Popular Tags |