Lines Matching refs:mode
67 * If the mode is not specified it will default to <code>LOAD</code>.
75 int mode;
202 * If the value of <code>mode</code> is <code>LOAD</code>, then the
205 * <code>mode</code> is <code>SAVE</code>, the file dialog is finding
210 * @param mode the mode of the dialog; either
213 * dialog mode is supplied
217 public FileDialog(Frame parent, String title, int mode) {
219 this.setMode(mode);
271 * If the value of <code>mode</code> is <code>LOAD</code>, then the
274 * <code>mode</code> is <code>SAVE</code>, the file dialog is finding
281 * @param mode the mode of the dialog; either
284 * file dialog mode is supplied;
297 public FileDialog(Dialog parent, String title, int mode) {
299 this.setMode(mode);
332 * @return the mode of this file dialog window, either
340 return mode;
344 * Sets the mode of the file dialog. If <code>mode</code> is not
345 * a legal value, an exception will be thrown and <code>mode</code>
348 * @param mode the mode for this file dialog, either
355 * dialog mode is supplied
358 public void setMode(int mode) {
359 switch (mode) {
362 this.mode = mode;
365 throw new IllegalArgumentException("illegal file dialog mode");
571 return str + ((mode == LOAD) ? ",load" : ",save");