org.opensubsystems.inventory.application
Interface ItemDialogListener

All Known Implementing Classes:
ItemDialogPersistor

public interface ItemDialogListener

Interface by which client can monitor changes made in the dialog.

Version:
$Id: ItemDialogListener.java,v 1.3 2007/01/07 06:13:57 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Method Summary
 boolean takeAction(Item itemData, int iRootCategoryId, int[] subcategoryIds, java.lang.String strInternalNumber, java.util.List lstIdentifications, java.util.List lstUnits)
          This method is called when action button of the dialog is clicked.
 

Method Detail

takeAction

boolean takeAction(Item itemData,
                   int iRootCategoryId,
                   int[] subcategoryIds,
                   java.lang.String strInternalNumber,
                   java.util.List lstIdentifications,
                   java.util.List lstUnits)
This method is called when action button of the dialog is clicked. This means that user is finished with the changes and want to take some action with those changes. This method is NOT called when user wants to cancel the changes which he has done.

Parameters:
itemData - - item to be created or edited, but never null
iRootCategoryId - - root category this item should exist in
subcategoryIds - - subcategories this item should exist in
strInternalNumber - - internal identification number it this is a non uniquely tracked item or if the item is not uniquely tracked, can be null
lstIdentifications - - identifications for unique items if this item can be uniquely identified
lstUnits - - units for this item if this item cannot be uniquely identified
Returns:
boolean - if true is returned the dialog can be closed, otherwise the dialog remains on the screen


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