|
|||||||||
| 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.UnitDialog
public class UnitDialog
Dialog to create and edit units. 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 Unit |
m_data
Data for the unit being created or modified. |
protected java.util.List |
m_lstAvoidCosts
List of cost values, 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 | |
|---|---|
UnitDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog,
java.lang.String strTitle,
boolean bModify,
Unit data,
java.util.List lstAvoidCosts)
Constructor for dialog to create or edit unit. |
|
| Method Summary | |
|---|---|
void |
addUnitDialogGuiListener(UnitDialogListener listener)
Add listener for this dialog. |
Unit |
displayDialog()
Display the dialog. |
void |
removeUnitDialogGuiListener(UnitDialogListener 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 Unit m_data
protected java.util.List m_lstAvoidCosts
| Constructor Detail |
|---|
public UnitDialog(org.opensubsystems.core.application.ThickClientDialog parentDialog,
java.lang.String strTitle,
boolean bModify,
Unit data,
java.util.List lstAvoidCosts)
throws org.opensubsystems.core.error.OSSException
parentDialog - - parent dialog 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 storeddata - - unit to be created or edited, but never null. When creating
new unit load the template data from the backend and then
use the template data in this dialog.lstAvoidCosts - - list of cost values, which cannot be used, since
they may have already been used
org.opensubsystems.core.error.OSSException - - an error has occured| Method Detail |
|---|
public Unit displayDialog()
throws org.opensubsystems.core.error.OSSException
org.opensubsystems.core.error.OSSException - - an error as occuredpublic void addUnitDialogGuiListener(UnitDialogListener listener)
listener - - listener to addpublic void removeUnitDialogGuiListener(UnitDialogListener listener)
listener - - listener to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||