All Packages Class Hierarchy This Package Previous Next Index
Class ch.swisslife.ibgm.mc2.EditTarget
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----ch.swisslife.ibgm.mc2.EditTarget
- public class EditTarget
- extends Frame
User Interface and tools for editing a target entry. Opens a window and displays
all entries per target. User can edit it them and write them back.
-
EditTarget(Cfg, int, MC2)
- Constructor with a Cfg and an int as Argument.
-
closeAll()
-
-
fillValue(int, String, TextField, Cfg)
- gives back a line if not empty
-
loadTarget(int, Cfg)
- loads the data of the current target into the textfields.
-
main(String[])
-
-
saveTarget(int)
- saves the data of the current target into temp CFG file.
-
saveValue(int, String, TextField)
- saves a line if not empty
EditTarget
public EditTarget(Cfg f,
int c,
MC2 p)
- Constructor with a Cfg and an int as Argument. It brings upa window and copies all
the entries into the corresponding fields.
- Parameters:
- file - CFG with actual entries
- current - int with actual target
fillValue
public void fillValue(int c,
String option,
TextField field,
Cfg f)
- gives back a line if not empty
- Parameters:
- c - int with current target
- option - String with option name
- field - Textfield to put value into
- f - CFG from which to load
- Returns:
- Value of entry or empty String if it was empty
loadTarget
public void loadTarget(int current,
Cfg f)
- loads the data of the current target into the textfields.
- Parameters:
- current - int with active target
- f - CFG from which to load
closeAll
protected void closeAll()
saveValue
public boolean saveValue(int c,
String option,
TextField field)
- saves a line if not empty
- Parameters:
- current - int with current target
- option - String with option name
- field - Textfield to get value from
- Returns:
-
true
if ok false
otherwise.
saveTarget
public boolean saveTarget(int current)
- saves the data of the current target into temp CFG file.
- Parameters:
- current - int with active target
main
public void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index