Class IFText
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----IFComponent
|
+----IFText
- public class IFText
- extends IFComponent
A graphical component which displays one or several text entries.
It can handle several instances of its data
- Author:
- Patrice Bensoussan, Thierry Bensoussan
-
IFText(String, String[], String[])
- object constructor
-
apply(String)
- generate the config file corresponding to the currently used instance
-
init()
- in the object in its default state
-
load(BufferedReader)
- load a new instance
-
newData(String)
- create a new instance of data
-
removeData(String)
- delete a given instance from the component
-
save(PrintWriter)
- save the currently used instance
-
setGenerate(String, String)
- sets the string(s) to generate
-
storeData()
- store the currently used instance in the component
-
useData(String)
- use a given instance of data
IFText
public IFText(String title,
String label[],
String args[])
- object constructor
setGenerate
public void setGenerate(String head,
String tail)
- sets the string(s) 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 instance in the component
- Overrides:
- storeData in class IFComponent
removeData
public void removeData(String key)
- delete a given instance from the component
- Overrides:
- removeData in class IFComponent
init
public void init()
- in the object in its default state
- Overrides:
- init in class IFComponent
apply
public void apply(String dir)
- generate the config file corresponding to 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