org.opensubsystems.inventory.application
Interface ItemDialogGui

All Superinterfaces:
org.opensubsystems.core.application.ThickClientDialogGui
All Known Implementing Classes:
SWTItemDialogGui

public interface ItemDialogGui
extends org.opensubsystems.core.application.ThickClientDialogGui

GUI portion of the item dialog, which abstracts the gui technology dependent portion of the creating or modifying item from the backend process.

Version:
$Id: ItemDialogGui.java,v 1.10 2007/01/07 06:13:57 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.8 2006/04/05 05:16:14 bastafidli

Method Summary
 void displayDialog(ItemDialog itemDialog, boolean bModify, Item itemData, int iRootCategoryId, java.util.List lstSubcategoryIds, java.lang.String strInternalNumber, ItemDialogListener dialogListener)
          Display the dialog.
 
Methods inherited from interface org.opensubsystems.core.application.ThickClientDialogGui
displayMessage
 

Method Detail

displayDialog

void displayDialog(ItemDialog itemDialog,
                   boolean bModify,
                   Item itemData,
                   int iRootCategoryId,
                   java.util.List lstSubcategoryIds,
                   java.lang.String strInternalNumber,
                   ItemDialogListener dialogListener)
                   throws org.opensubsystems.core.error.OSSException
Display the dialog. This method shouldn't return until the dialog is closed.

Parameters:
itemDialog - - dialog displaying this gui
bModify - - if this flag is true, then the dialog will act as modify dialog otherwise it will act as a create dialog. This will allow us to modify data, which were not yet created in the persistence store, but are held in memory and modified before they are stored
itemData - - item to be created or edited, but never null. When creating new item load the template data from the backend and then use the template data in this dialog.
iRootCategoryId - - root category this item should or does exist in
lstSubcategoryIds - - subcategories this item exist or should exist in
strInternalNumber - - internal identification number it this is a non uniquely tracked item or if the item is not unitquely tracked, can be null. If this is a new item it should be the next available value (of course this is just a suggestion since the availability can change by the time they are done)
dialogListener - - listener which needs to be notified about changes and actions on the gui
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured


Copyright © 2003 - 2006 OpenSubsystems s.r.o.