All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ch.swisslife.ibgm.mc2.ChooseDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----ch.swisslife.ibgm.mc2.ChooseDialog

public class ChooseDialog
extends Frame
Dialog for opening or saving files. It reads the directory contents from the cgi DirectoryReader.


Variable Index

 o AddressOfDirectoryReader
 o button1
 o button2
 o cfg_base
 o dataInput
 o directory_list
 o explanation
 o field
 o label1
 o label2
 o old
 o p
 o path

Constructor Index

 o ChooseDialog(String)
Constructor which calls the constructor of super class.
 o ChooseDialog(String, String, String)
Constructor with some arguments.
 o ChooseDialog(String, String, String, String, String, String, String, String)
Constructor with more arguments.

Method Index

 o getDevice()
 o GetDirectoryContents(String)
 o getOpen()
 o getURL()
 o kill()
 o listSelected(String)
 o removeLastChar(String)
Cuts off the last char of a String
 o removeLastWord(String, String)
cuts of the last word (with a specified delimiter) of a String
 o setDirectoryFocus(boolean)
 o ShowContentsOfDirectory()
puts the content of a directory into the list.

Variables

 o AddressOfDirectoryReader
 protected String AddressOfDirectoryReader
 o directory_list
 protected List directory_list
 o field
 protected TextField field
 o button1
 protected Button button1
 o button2
 protected Button button2
 o p
 protected Panel p
 o cfg_base
 protected String cfg_base
 o old
 protected String old
 o explanation
 protected Label explanation
 o label1
 protected Label label1
 o label2
 protected Label label2
 o path
 protected Label path
 o dataInput
 protected BufferedReader dataInput

Constructors

 o ChooseDialog
 public ChooseDialog(String address,
                     String base,
                     String title)
Constructor with some arguments.

Parameters:
address - String with address of cgi
base - String with address of the cfg base
title - String with title name
 o ChooseDialog
 public ChooseDialog(String address,
                     String base,
                     String title,
                     String button_1,
                     String button_2,
                     String label_1,
                     String label_2,
                     String explanation)
Constructor with more arguments.

Parameters:
address - String with address of cgi
base - String with address of the cfg base
title - String with title of the dialog
parent - MyMessage: the parent class
button_1 - String: Name of button1
button_2 - String: Name of button2
label_1 - String: Name of label1
lablel_2 - String: Name of label2
explanation - String: name of explanation label
 o ChooseDialog
 public ChooseDialog(String title)
Constructor which calls the constructor of super class.

Parameters:
title - String with title of the dialog.

Methods

 o kill
 public void kill()
 o setDirectoryFocus
 public void setDirectoryFocus(boolean b)
 o listSelected
 public void listSelected(String s)
 o getOpen
 public boolean getOpen()
 o getURL
 public String getURL()
 o getDevice
 public String getDevice()
 o removeLastChar
 public String removeLastChar(String s)
Cuts off the last char of a String

Parameters:
s - String to be cut off
Returns:
String without last char of s
 o removeLastWord
 public String removeLastWord(String s,
                              String delimiter)
cuts of the last word (with a specified delimiter) of a String

Parameters:
s - String to be cut
delimiter - String to serve as a delimiter
Returns:
String without the last word
 o ShowContentsOfDirectory
 protected void ShowContentsOfDirectory()
puts the content of a directory into the list.

 o GetDirectoryContents
 protected void GetDirectoryContents(String Directory)

All Packages  Class Hierarchy  This Package  Previous  Next  Index