Class IFComponent
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----IFComponent
- public abstract class IFComponent
- extends JPanel
abstract root class from which all IFComponents must be
derived. IFComponents are graphical interface components associated
with an Apache option.
- Author:
- Patrice Bensoussan, Thierry Bensoussan
-
box
-
-
boxHash
-
-
dataHash
-
-
defaultFont
-
-
fileToGenerate
-
-
key
-
-
IFComponent()
- Default constructor
-
apply(String)
- generate configuration files corresponding to this component
-
init()
- initialize the component with its defaults state
-
isSelected()
- get the state of the component
-
load(BufferedReader)
- loads a new instance of data
-
newData(String)
- create a new instance of data in this object
-
removeData(String)
- remove a specific instance in this component
-
removeFile(String)
- deletes the file which must be generated
-
save(PrintWriter)
- saves the current instance of this components
-
setFilename(String)
- sets the name of the file which must be generated
-
setGenerate(String, String)
- set the strings to generate
-
setSelected(boolean)
- set the state of the component
-
storeData()
- store the currenty used data in this component
-
useData(String)
- use a specific instance in this component
box
protected JCheckBox box
defaultFont
protected static Font defaultFont
fileToGenerate
protected String fileToGenerate
dataHash
protected Hashtable dataHash
boxHash
protected Hashtable boxHash
key
protected String key
IFComponent
public IFComponent()
- Default constructor
init
public void init()
- initialize the component with its defaults state
apply
public abstract void apply(String dir)
- generate configuration files corresponding to this component
setGenerate
public abstract void setGenerate(String head,
String tail)
- set the strings to generate
newData
public void newData(String key)
- create a new instance of data in this object
useData
public void useData(String key)
- use a specific instance in this component
storeData
public void storeData()
- store the currenty used data in this component
removeData
public void removeData(String key)
- remove a specific instance in this component
setFilename
public void setFilename(String file)
- sets the name of the file which must be generated
removeFile
public void removeFile(String dir)
- deletes the file which must be generated
isSelected
public boolean isSelected()
- get the state of the component
- Returns:
- the state of the component indicating if it should be used
when applying the config
setSelected
public void setSelected(boolean state)
- set the state of the component
- Parameters:
- state - boolean value indicating if the component should be
used when applying the config
save
public abstract void save(PrintWriter out)
- saves the current instance of this components
load
public abstract void load(BufferedReader in)
- loads a new instance of data