org.opensubsystems.inventory.application
Class IdentificationDialog

java.lang.Object
  extended by org.opensubsystems.core.application.ThickClientDialog
      extended by org.opensubsystems.inventory.application.IdentificationDialog

public class IdentificationDialog
extends org.opensubsystems.core.application.ThickClientDialog

Dialog to create and edit identifications. This dialog doesn't dictate how the user interface looks like or what gui technology is used to implement the user interface. It dynamically determines what gui implementation should be used and it provides services to most common gui implementations to interact with the server.

Version:
$Id: IdentificationDialog.java,v 1.5 2007/01/07 06:13:57 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.3 2006/04/05 05:12:54 bastafidli

Field Summary
protected  boolean m_bModify
          If this flag is true, then the dialog will act as modify dialog otherwise it will act as a create dialog.
protected  Identification m_data
          Data for the identification being created or modified.
protected  java.util.List m_lstAvoidExternalNumbers
          List of external numbers which cannot be used, since they may have already been used.
protected  java.util.List m_lstAvoidInternalNumbers
          List of internal numbers, which cannot be used, since they may have already been used.
protected  java.util.Set m_setListeners
          Set where all listeners listening to the event notifications specific to this object are stored.
 
Fields inherited from class org.opensubsystems.core.application.ThickClientDialog
m_client, m_dialogGui, m_parentDialog, m_strTitle
 
Constructor Summary
IdentificationDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog, java.lang.String strTitle, boolean bModify, Identification data, java.util.List lstAvoidExternalNumbers, java.util.List lstAvoidInternalNumbers)
          Constructor for dialog to create or edit identification.
 
Method Summary
 void addIdentificationDialogGuiListener(IdentificationDialogListener listener)
          Add listener for this dialog.
 Identification displayDialog()
          Display the dialog.
 void removeIdentificationDialogGuiListener(IdentificationDialogListener listener)
          Remove listener from this dialog.
 
Methods inherited from class org.opensubsystems.core.application.ThickClientDialog
getClient, getGui, getParentDialog, getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_setListeners

protected java.util.Set m_setListeners
Set where all listeners listening to the event notifications specific to this object are stored.


m_bModify

protected boolean m_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.


m_data

protected Identification m_data
Data for the identification being created or modified.


m_lstAvoidExternalNumbers

protected java.util.List m_lstAvoidExternalNumbers
List of external numbers which cannot be used, since they may have already been used.


m_lstAvoidInternalNumbers

protected java.util.List m_lstAvoidInternalNumbers
List of internal numbers, which cannot be used, since they may have already been used.

Constructor Detail

IdentificationDialog

public IdentificationDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog,
                            java.lang.String strTitle,
                            boolean bModify,
                            Identification data,
                            java.util.List lstAvoidExternalNumbers,
                            java.util.List lstAvoidInternalNumbers)
                     throws org.opensubsystems.core.error.OSSException
Constructor for dialog to create or edit identification.

Parameters:
parentDialog - - parent dialog displaying this dialog
strTitle - - title of the dialog
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
data - - identification to be created or edited, but never null. When creating new identification load the template data from the backend and then use the template data in this dialog.
lstAvoidExternalNumbers - - list of external numbers, which cannot be used, since they may have already been used
lstAvoidInternalNumbers - - list of internal numbers, which cannot be used, since they may have already been used
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured
Method Detail

displayDialog

public Identification displayDialog()
                             throws org.opensubsystems.core.error.OSSException
Display the dialog.

Returns:
Identification - created or modified data or the value passed in to the constructor if the dialog was cancelled.
Throws:
org.opensubsystems.core.error.OSSException - - an error as occured

addIdentificationDialogGuiListener

public void addIdentificationDialogGuiListener(IdentificationDialogListener listener)
Add listener for this dialog.

Parameters:
listener - - listener to add

removeIdentificationDialogGuiListener

public void removeIdentificationDialogGuiListener(IdentificationDialogListener listener)
Remove listener from this dialog.

Parameters:
listener - - listener to remove


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