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.


Constructor Index

 o EditTarget(Cfg, int, MC2)
Constructor with a Cfg and an int as Argument.

Method Index

 o closeAll()
 o fillValue(int, String, TextField, Cfg)
gives back a line if not empty
 o loadTarget(int, Cfg)
loads the data of the current target into the textfields.
 o main(String[])
 o saveTarget(int)
saves the data of the current target into temp CFG file.
 o saveValue(int, String, TextField)
saves a line if not empty

Constructors

 o 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

Methods

 o 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
 o 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
 o closeAll
 protected void closeAll()
 o 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 falseotherwise.
 o saveTarget
 public boolean saveTarget(int current)
saves the data of the current target into temp CFG file.

Parameters:
current - int with active target
 o main
 public void main(String argv[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index