org.gswing.components.common
Class AbstractMain

java.lang.Object
  extended by org.gswing.components.common.AbstractMain
All Implemented Interfaces:
IDbAccessCallback
Direct Known Subclasses:
DbInserter, ExporterMain

public abstract class AbstractMain
extends Object
implements IDbAccessCallback

Purpose: Common main class. All entry main programs should inherit from this.


Constructor Summary
AbstractMain()
          Constructor.
 
Method Summary
abstract  void dbAccessCallback(DbReadAccess access)
          This method will be called as a result of selecting OK on the DbAccessGui dialogue.
protected  String getPath()
          Get the root path of of the program.
protected  void init()
          Set up main program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMain

public AbstractMain()
Constructor.

Method Detail

init

protected void init()
Set up main program. Read properties file and print title to std out.


getPath

protected String getPath()
Get the root path of of the program.

Returns:
The root path.

dbAccessCallback

public abstract void dbAccessCallback(DbReadAccess access)
This method will be called as a result of selecting OK on the DbAccessGui dialogue. It is mean to the database connection for standalone programs.

Specified by:
dbAccessCallback in interface IDbAccessCallback
Parameters:
access - The database connection.


Copyright © 2008. All Rights Reserved.