All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.dealbrowser.DealBrowserApp

java.lang.Object
   |
   +----semper.dealbrowser.DealBrowserApp

public class DealBrowserApp
extends Object
implements MenuLaunchable
This class provides all the services for the Deal Browser interface.
This includes :
browsing the available deals in the archive.
browsing the available transactions for a chosen deal.
browsing the available sub-transactions for a transaction.
and also :
importing a deal from a file.
exporting a chosen deal to a file.
browsing the NR-Token information for a chosen transaction.

Version:
1.1 : deal browser with dispute handling capability
Author:
Christian Navarro

Constructor Index

 o DealBrowserApp()

Method Index

 o DeleteCurrentDeal(TinguinSession, SuspendedDeal)
Delete the current Deal
Ensure that the deal is to be deleted.
 o ExportToFile(TinguinSession, SuspendedDeal)
Export the current deal to a specified File (*.xid).
 o ImportFromFile(TinguinSession)
Import a deal from a specified File.
 o init()
Initialise the DealBrowser.
 o launch()
Implements the MenuLaunchable interface.
 o SelectDeal(TinguinSession)
Select a deal window.
 o SelectTransaction(TinguinSession, SuspendedDeal)
Select a transaction window.
 o view_NR_DATA(TinguinSession, Transaction, SuspendedDeal)
Show detailed information about the Non Repudiation Data.
 o viewDealInformation(TinguinSession, int)
Show detailed information about the selected deal.
 o viewTransactionInformation(TinguinSession, int, Vector, SuspendedDeal)
Show detailed information about the selected transaction.

Constructors

 o DealBrowserApp
 public DealBrowserApp()

Methods

 o init
 public static void init()
Initialise the DealBrowser.
Register the DealBrowser option in the Tinguin Application menu.

Throws: exception
if DealBrowserAppl couldn't initialise
 o launch
 public void launch()
Implements the MenuLaunchable interface.
Ask for a new Tinguin session.
Launch SelectDeal method.
End Tinguin session when finished.

 o SelectDeal
 public void SelectDeal(TinguinSession display)
Select a deal window.
Check the number of deals stored in the archive.
Launch the appropriate next tinguin screen.

Parameters:
display - is the session created for the deal browser
 o viewDealInformation
 public void viewDealInformation(TinguinSession display,
                                 int target)
Show detailed information about the selected deal.
Allow to visualise the deal description.
Allow to execute the valid actions for the current deal.

Parameters:
display - is the session created for the deal browser
target - identifies the deal that the user has selected
 o SelectTransaction
 public void SelectTransaction(TinguinSession display,
                               SuspendedDeal d)
Select a transaction window.
Check the number of transactions available for the current deal.
Launch the appropriate next tinguin screen.

Parameters:
display - is the session created for the deal browser
d - is the deal which transactions are listed in that method
 o viewTransactionInformation
 public void viewTransactionInformation(TinguinSession display,
                                        int target,
                                        Vector currentList,
                                        SuspendedDeal d)
Show detailed information about the selected transaction.
Allow to visualise the transaction description.
Allow to execute the valid actions for the current transaction

Parameters:
display - is the session created for the deal browser
target - identifies the transaction that the user has selected
d - is the deal which transaction is displayed with that method
 o view_NR_DATA
 public void view_NR_DATA(TinguinSession display,
                          Transaction t,
                          SuspendedDeal d)
Show detailed information about the Non Repudiation Data.
Allow to verify signatures.

Parameters:
display - is the session created for the deal browser
target - identifies the current transaction
d - is the deal which transaction is displayed with that method
 o ImportFromFile
 public void ImportFromFile(TinguinSession display)
Import a deal from a specified File.
Get the file name.
Proceed to the deal importation.

Parameters:
display - is the session created for the deal browser
 o ExportToFile
 public void ExportToFile(TinguinSession display,
                          SuspendedDeal d)
Export the current deal to a specified File (*.xid).
Get the file name.
Proceed to the deal exportation.

Parameters:
display - is the session created for the deal browser
d - is the deal to export
 o DeleteCurrentDeal
 public void DeleteCurrentDeal(TinguinSession display,
                               SuspendedDeal d)
Delete the current Deal
Ensure that the deal is to be deleted.
Proceed to the deal deletion.

Parameters:
display - is the session created for the deal browser
d - is the deal to delete

All Packages  Class Hierarchy  This Package  Previous  Next  Index