Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)

com.lapetus_ltd.api.db.control
Interface ILptsFactoryProjectListener


public interface ILptsFactoryProjectListener

Class Description : The listener to be implemented for listening to project loading and saving events.

The project manager TLptsFactoryProject uses this listener to inform of actions regarding projects.
The execution of TLptsFactoryProject.loadProject(java.lang.String) or TLptsFactoryProject.saveProject(java.lang.String, com.lapetus_ltd._2009.xml.types.XLptsDBProjectType) causes this listener to be activated.

$LastChangedRevision: 1111 $
$LastChangedDate:: 2010-09-12 13:01:06#$


Method Summary
 void projectLoadComplete(XLptsDBProjectType projectType)
          
This function indicates the end of the loading process, with the new project supplied.
 void projectLoadStarting()
          
This indicates that the process of loading a new project has begun.
 void projectSaveComplete(java.lang.String fileName, XLptsDBProjectType project, boolean isSaved)
          This indicates that the saving of the file is complete, but may not have been successful.
 void projectSaveStart(java.lang.String fileName, XLptsDBProjectType project)
          This informs the listener that the project saving process has begun.
 

Method Detail

projectLoadComplete

void projectLoadComplete(XLptsDBProjectType projectType)

This function indicates the end of the loading process, with the new project supplied.
A new project has just been loaded from a file and is ready for gui or other processing.

Parameters:
projectType - The project settings that have just been loaded. This value can be null if there was an issue with the loading or a new project has been initiated. The logger needs to then be checked for errors. TLptsLogger

projectLoadStarting

void projectLoadStarting()

This indicates that the process of loading a new project has begun.
This is a good place to put GUI feedback that a project load in in progress (either a wait cursor, or disabling GUI components etc).


projectSaveComplete

void projectSaveComplete(java.lang.String fileName,
                         XLptsDBProjectType project,
                         boolean isSaved)
This indicates that the saving of the file is complete, but may not have been successful.

Parameters:
fileName - The filename that the project xml type was saved to.
project - The project type that was saved.
isSaved - True if the saving was successful, false otherwise. The logger needs to be checked for errors. TLptsLogger

projectSaveStart

void projectSaveStart(java.lang.String fileName,
                      XLptsDBProjectType project)
This informs the listener that the project saving process has begun.
The project is being written to file and this is a good place to put GUI feedback for the user.

Parameters:
fileName - The filename that was supplied to saving the file.
project - The project type object, which is to be saved in the file supplied.


Copyright 2009,2010, Lapetus Systems Ltd. (All rights reserved)