de.unikiel.ipn.htmlform
Class ZFDNModel

java.lang.Object
  |
  +--java.util.Observable
        |
        +--de.unikiel.ipn.htmlform.ZFDNModel

public final class ZFDNModel
extends java.util.Observable

Main class file.


Method Summary
(package private)  java.io.File askForProjectFile()
          Shows a file chooser asking for a project file to open.
(package private)  void createEntryPanels()
          Creates the entries based on the information in the project file.
(package private)  javax.swing.JComponent[] getComponents()
          Returns the EntryPanels.
(package private) static ZFDNModel getInstance()
          Returns always the same instance of a ZFDNModel.
static void main(java.lang.String[] args)
          Launches the program.
(package private)  void parse()
          Parses content of the entries using the project-variable "parser".
(package private)  void readProjectFile(java.io.File file)
          Reads the content of the project file.
(package private)  void update()
          Initiates the update of the files that shall be changed.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

static ZFDNModel getInstance()
Returns always the same instance of a ZFDNModel.

Returns:
an instance of ZFDNModel.

parse

void parse()
Parses content of the entries using the project-variable "parser". See documentation for custom parser. The source is a text the user can enter into a dialog that pops up as a result of this method call. Usually that text would be copied into the text field in the dialog.

See Also:
AutoImportDialog

update

void update()
Initiates the update of the files that shall be changed. A progress dialog is shown during the update.


readProjectFile

void readProjectFile(java.io.File file)
Reads the content of the project file.

Parameters:
file - the project file
Throws:
java.io.FileNotFoundException - if there is no such file
See Also:
createEntryPanels()

getComponents

javax.swing.JComponent[] getComponents()
Returns the EntryPanels.

Returns:
an array of JComponents which represent the view of the Entrys
See Also:
EntryPanel

createEntryPanels

void createEntryPanels()
Creates the entries based on the information in the project file. It also creates the EntryPanels.

See Also:
Entry, EntryPanel, readProjectFile(File)

askForProjectFile

java.io.File askForProjectFile()
Shows a file chooser asking for a project file to open.

Returns:
The chosen file, null if none has been chosen.

main

public static void main(java.lang.String[] args)
Launches the program.

Parameters:
args - args[0] may contain a path to a file. Then it it processed (opened) before the GUI is shown.