comparison dwtx/jface/dialogs/IDialogSettings.d @ 19:2b36428a5ce4

DialogSettings
author Frank Benoit <benoit@tionex.de>
date Thu, 03 Apr 2008 00:25:45 +0200
parents a3ff22a98bef
children
comparison
equal deleted inserted replaced
18:7615869f89e6 19:2b36428a5ce4
16 // import java.io.Reader; 16 // import java.io.Reader;
17 // import java.io.Writer; 17 // import java.io.Writer;
18 18
19 import dwt.dwthelper.utils; 19 import dwt.dwthelper.utils;
20 20
21 static import tango.io.model.IConduit;
22
21 /** 23 /**
22 * An interface to a storage mechanism for making dialog settings persistent. 24 * An interface to a storage mechanism for making dialog settings persistent.
23 * The store manages a collection of key/value pairs. The keys must be strings 25 * The store manages a collection of key/value pairs. The keys must be strings
24 * and the values can be either, strings or array of strings. Convenience API to 26 * and the values can be either, strings or array of strings. Convenience API to
25 * convert primitive types to strings is provided. 27 * convert primitive types to strings is provided.
161 * @param reader 163 * @param reader
162 * a Reader specifying the stream where the settings are read 164 * a Reader specifying the stream where the settings are read
163 * from. 165 * from.
164 * @throws IOException 166 * @throws IOException
165 */ 167 */
166 public void load(Reader reader); 168 public void load(tango.io.model.IConduit.InputStream reader);
167 169
168 /** 170 /**
169 * Load a dialog settings from a file and fill the receiver with its 171 * Load a dialog settings from a file and fill the receiver with its
170 * content. 172 * content.
171 * 173 *
255 * 257 *
256 * @param writer 258 * @param writer
257 * a Writer specifying the stream the settings are written in. 259 * a Writer specifying the stream the settings are written in.
258 * @throws IOException 260 * @throws IOException
259 */ 261 */
260 public void save(Writer writer); 262 public void save(tango.io.model.IConduit.OutputStream writer);
261 263
262 /** 264 /**
263 * Save a dialog settings to a file. 265 * Save a dialog settings to a file.
264 * 266 *
265 * @param fileName 267 * @param fileName