Class IFPopList
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----IFComponent
|
+----IFPopList
- public class IFPopList
- extends IFComponent
A graphical component which displays a popup list of predefined values
It can handle several instances of its data
- Author:
- Patrice Bensoussan, Thierry Bensoussan
-
IFPopList(String, String, String, String[])
- Object constructor
-
apply(String)
- generate the config file for the currently used instance
-
init()
- init the object with its default state
-
load(BufferedReader)
- load a new instance
-
newData(String)
- create a new instance of data
-
removeData(String)
- delete a given instance of data
-
save(PrintWriter)
- save the currently used instance
-
setGenerate(String, String)
- set the strings to generate
-
storeData()
- store the currently used data in the object
-
useData(String)
- use a given instance of data
IFPopList
public IFPopList(String title,
String label,
String arg,
String values[])
- Object constructor
setGenerate
public void setGenerate(String head,
String tail)
- set the strings to generate
- Overrides:
- setGenerate in class IFComponent
newData
public void newData(String key)
- create a new instance of data
- Overrides:
- newData in class IFComponent
useData
public void useData(String key)
- use a given instance of data
- Overrides:
- useData in class IFComponent
storeData
public void storeData()
- store the currently used data in the object
- Overrides:
- storeData in class IFComponent
removeData
public void removeData(String key)
- delete a given instance of data
- Overrides:
- removeData in class IFComponent
init
public void init()
- init the object with its default state
- Overrides:
- init in class IFComponent
apply
public void apply(String dir)
- generate the config file for the currently used instance
- Overrides:
- apply in class IFComponent
save
public void save(PrintWriter out)
- save the currently used instance
- Overrides:
- save in class IFComponent
load
public void load(BufferedReader in)
- load a new instance
- Overrides:
- load in class IFComponent