1 11 package org.eclipse.jface.dialogs; 12 13 import java.io.IOException ; 14 import java.io.Reader ; 15 import java.io.Writer ; 16 17 23 public interface IDialogSettings { 24 31 public IDialogSettings addNewSection(String name); 32 33 39 public void addSection(IDialogSettings section); 40 41 48 public String get(String key); 49 50 58 public String [] getArray(String key); 59 60 68 public boolean getBoolean(String key); 69 70 83 public double getDouble(String key) throws NumberFormatException ; 84 85 98 public float getFloat(String key) throws NumberFormatException ; 99 100 113 public int getInt(String key) throws NumberFormatException ; 114 115 128 public long getLong(String key) throws NumberFormatException ; 129 130 135 public String getName(); 136 137 144 public IDialogSettings getSection(String sectionName); 145 146 151 public IDialogSettings[] getSections(); 152 153 162 public void load(Reader reader) throws IOException ; 163 164 172 public void load(String fileName) throws IOException ; 173 174 182 public void put(String key, String [] value); 183 184 193 public void put(String key, double value); 194 195 204 public void put(String key, float value); 205 206 215 public void put(String key, int value); 216 217 226 public void put(String key, long value); 227 228 236 public void put(String key, String value); 237 238 247 public void put(String key, boolean value); 248 249 256 public void save(Writer writer) throws IOException ; 257 258 265 public void save(String fileName) throws IOException ; 266 } 267 | Popular Tags |