|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl
org.opensubsystems.inventory.application.swt.SWTUnitDialogGui
public class SWTUnitDialogGui
GUI for dialog used to add or modify units implemented using SWT. TODO: ThickApp: This dialog doesn't open character and number pad automatically to enter data. This should be implemented.
| Field Summary | |
|---|---|
protected static int |
AVAILABLE_FIELD
Offset of field in the field arrays |
protected static int |
COST_FIELD
Offset of field in the field arrays |
static java.lang.String |
INVENTORY_EDITSHIPPEDUNIT_FLAG
Property which signals if the shipped value is editable once it is entered. |
protected org.eclipse.swt.widgets.Button |
m_actionButton
Action button on the bottom of the dialog. |
protected org.eclipse.swt.widgets.Button[] |
m_buttons
Set of buttons next to the controls to edit the data. |
protected org.eclipse.swt.widgets.Button |
m_cancelButton
Cancel button. |
protected org.eclipse.swt.widgets.Label[] |
m_labels
Set of labels next to the controls. |
protected org.eclipse.swt.widgets.Text[] |
m_texts
Set of text edit fields to edit data in. |
protected UnitDialog |
m_unitDialog
Dialog this gui is representing. |
protected static boolean |
s_bShippedEditable
Flag controling if the shipped value is editable once it is entered. |
protected static int |
SHIPPED_FIELD
Offset of field in the field arrays |
| Fields inherited from class org.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl |
|---|
m_client, m_oldClientLocation, m_outsideBoundingArea, m_parent, m_shell |
| Constructor Summary | |
|---|---|
SWTUnitDialogGui()
|
|
| Method Summary | |
|---|---|
protected void |
createClientArea(boolean bModify,
Unit unitData,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
Create the client area of the dialog. |
void |
displayDialog(UnitDialog unitDialog,
boolean bModify,
Unit unitData,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
Display the dialog. |
protected void |
startNumberPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit,
boolean bDecimalDot,
java.util.List lstAvoidValues,
boolean bModify)
Starts number pad dialog to edit numeric value of a field. |
| Methods inherited from class org.opensubsystems.core.application.swt.SWTThickClientDialogGuiImpl |
|---|
createDialogWindow, createDialogWindow, createDialogWindow, displayDialogWindow, displayMessage, getClient, getShell, interactWithUser |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensubsystems.core.application.ThickClientDialogGui |
|---|
displayMessage |
| Field Detail |
|---|
public static final java.lang.String INVENTORY_EDITSHIPPEDUNIT_FLAG
protected static final int SHIPPED_FIELD
protected static final int AVAILABLE_FIELD
protected static final int COST_FIELD
protected UnitDialog m_unitDialog
protected org.eclipse.swt.widgets.Label[] m_labels
protected org.eclipse.swt.widgets.Text[] m_texts
protected org.eclipse.swt.widgets.Button[] m_buttons
protected org.eclipse.swt.widgets.Button m_actionButton
protected org.eclipse.swt.widgets.Button m_cancelButton
protected static boolean s_bShippedEditable
| Constructor Detail |
|---|
public SWTUnitDialogGui()
| Method Detail |
|---|
public void displayDialog(UnitDialog unitDialog,
boolean bModify,
Unit unitData,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
displayDialog in interface UnitDialogGuiunitDialog - - dialog displaying this guibModify - - 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 storedunitData - - data 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 useddialogListener - - listener which needs to be notified about changes
and actions on the gui
protected void createClientArea(boolean bModify,
Unit unitData,
java.util.List lstAvoidCosts,
UnitDialogListener dialogListener)
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 storedunitData - - data 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 useddialogListener - - listener which needs to be notified about changes
and actions on the gui
protected void startNumberPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit,
boolean bDecimalDot,
java.util.List lstAvoidValues,
boolean bModify)
strTitle - - text to display on the dialogstrFirstLineText - - text displayed above the entry areaiFieldToEdit - - what field should be editedbDecimalDot - - if true display decimal dot button in number padlstAvoidValues - - list of values which should be avoidedbModify - - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||