|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.application.ThickClientDialog
org.opensubsystems.inventory.application.ItemDialog
public class ItemDialog
Dialog to create and edit items. 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.
| 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 Item |
m_data
Data for the item being modified. |
protected int |
m_iInventoryId
Inventory where the item does or will exist. |
protected int |
m_iRootCategoryId
Root category this item should or does exist in. |
protected java.util.List |
m_lstSubcategoryIds
Subcategories this item exist or should exist in. |
protected java.util.Set |
m_setListeners
Set where all listeners listening to the event notifications specific to this object are stored. |
protected java.lang.String |
m_strInternalNumber
Unique internal identification number for this item. |
| Fields inherited from class org.opensubsystems.core.application.ThickClientDialog |
|---|
m_client, m_dialogGui, m_parentDialog, m_strTitle |
| Constructor Summary | |
|---|---|
ItemDialog(org.opensubsystems.core.application.ThickClient client,
java.lang.String strTitle,
boolean bModify,
Item itemData,
int iRootCategoryId,
java.util.List lstSubcategoryIds,
java.lang.String strInternalNumber)
Constructor for dialog to edit item. |
|
| Method Summary | |
|---|---|
void |
addItemDialogGuiListener(ItemDialogListener listener)
Add listener for this dialog. |
void |
displayCreateIdentificationDialog(double dDefaultCost,
java.util.List lstAvoidExternalNumbers,
java.util.List lstAvoidInternalNumbers,
IdentificationDialogListener dialogListener)
Display dialog to create identification. |
void |
displayCreateUnitDialog(double dDefaultCost,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
Display dialog to create identification. |
Item |
displayDialog()
Display the dialog. |
void |
displayModifyIdentificationDialog(Identification data,
java.util.List lstAvoidExternalNumbers,
java.util.List lstAvoidInternalNumbers,
IdentificationDialogListener dialogListener)
Display dialog to modify identification. |
void |
displayModifyUnitDialog(Unit data,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
Display dialog to modify units. |
protected IdentificationController |
getIdentificationController()
Get controller to invoke business logic. |
protected UnitController |
getUnitController()
Get controller to invoke business logic. |
void |
removeItemDialogGuiListener(ItemDialogListener 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 |
|---|
protected java.util.Set m_setListeners
protected boolean m_bModify
protected Item m_data
protected int m_iInventoryId
protected int m_iRootCategoryId
protected java.util.List m_lstSubcategoryIds
protected java.lang.String m_strInternalNumber
| Constructor Detail |
|---|
public ItemDialog(org.opensubsystems.core.application.ThickClient client,
java.lang.String strTitle,
boolean bModify,
Item itemData,
int iRootCategoryId,
java.util.List lstSubcategoryIds,
java.lang.String strInternalNumber)
throws org.opensubsystems.core.error.OSSException
client - - client displaying this dialogstrTitle - - title of the dialogbModify - - 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 storeditemData - - 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 inlstSubcategoryIds - - subcategories this item exist or should exist instrInternalNumber - - 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)
org.opensubsystems.core.error.OSSException - - an error as occured| Method Detail |
|---|
public Item displayDialog()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error as occured
public void displayCreateIdentificationDialog(double dDefaultCost,
java.util.List lstAvoidExternalNumbers,
java.util.List lstAvoidInternalNumbers,
IdentificationDialogListener dialogListener)
dDefaultCost - - default cost for the identification of the item.
This is passed in since it can depend on others
not yet persisted identifications.lstAvoidExternalNumbers - - list of external numbers which cannot be
used, since they may have already been
usedlstAvoidInternalNumbers - - list of internal numbers which cannot be
used, since they may have already been
useddialogListener - - listener which needs to be notified about changes
and actions on the gui
public void displayModifyIdentificationDialog(Identification data,
java.util.List lstAvoidExternalNumbers,
java.util.List lstAvoidInternalNumbers,
IdentificationDialogListener dialogListener)
data - - data to modify. This item doesn't have to exist in the
persistence store but may have been before created and it
is held in memory until some related data are created.lstAvoidExternalNumbers - - list of external numbers which cannot be
used, since they may have already been
usedlstAvoidInternalNumbers - - list of internal numbers which cannot be
used, since they may have already been
useddialogListener - - listener which needs to be notified about changes
and actions on the gui
public void displayCreateUnitDialog(double dDefaultCost,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
dDefaultCost - - default cost for the unit. This is passed in since
it can depend on others not yet persisted
units.lstAvoidCosts - - list of cost values, which cannot be used, since
they may have already been useddialogListener - - listener which needs to be notified about changes
and actions on the gui
public void displayModifyUnitDialog(Unit data,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
data - - data to modify. This item doesn't have to exist in the
persistence store but may have been before created and it
is held in memory until some related data are created.lstAvoidCosts - - list of cost values, which cannot be used, since
they may have already been useddialogListener - - listener which needs to be notified about changes
and actions on the guipublic void addItemDialogGuiListener(ItemDialogListener listener)
listener - - listener to addpublic void removeItemDialogGuiListener(ItemDialogListener listener)
listener - - listener to remove
protected IdentificationController getIdentificationController()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
protected UnitController getUnitController()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||