|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.inventory.application.swt.ItemIdentificationPage
public class ItemIdentificationPage
Identification page of item dialog.
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.Button |
m_addButton
Add identification button. |
protected org.eclipse.swt.widgets.Composite |
m_clientArea
Client area containing all the other controls. |
protected double |
m_defaultCost
Default cost value for newly created identifications. |
protected org.eclipse.swt.widgets.Button |
m_editNumberButton
Button for not unique internal number. |
protected org.eclipse.swt.widgets.Label |
m_editNumberLabel
Label for not unique internal number. |
protected org.eclipse.swt.widgets.Text |
m_editNumberText
Edit text for not unique internal number. |
protected ItemDialog |
m_itemDialog
Dialog this gui is representing. |
protected java.util.List |
m_lstIdentifications
List of all identifications in table. |
protected org.eclipse.swt.widgets.Button |
m_modifyButton
Modify identification button. |
protected org.eclipse.swt.widgets.Button |
m_removeButton
Remove identification button. |
protected java.util.Set |
m_setListeners
Set where all listeners listening to the event notifications specific to this object are stored. |
protected org.eclipse.swt.widgets.Table |
m_table
Table with individual identifications. |
protected org.eclipse.swt.widgets.Label |
m_tableLabel
Label for table with individual identifications. |
| Constructor Summary | |
|---|---|
ItemIdentificationPage()
|
|
| Method Summary | |
|---|---|
void |
addItemIdentificationPageListener(ItemIdentificationPageListener listener)
Add listener for this dialog. |
org.eclipse.swt.widgets.Composite |
createClientArea(ItemDialog itemDialog,
org.eclipse.swt.widgets.TabFolder tab,
Item itemData,
java.lang.String strInternalNumber)
Create client area of this page. |
java.util.List |
getIdentifications()
Get list of individually identifiable items. |
java.lang.String |
getInternalNumberForNonUniqueItems()
Get internal number for non uniquely tracked items. |
protected org.opensubsystems.patterns.listdata.logic.ListController |
getListController()
Get list controller to use. |
int |
getNotRetiredIdentificationsCount()
Get count of not retired identifications |
int |
getRetiredCount()
Get count of retired identifications. |
boolean |
isUniquelyTracked()
Check if the units of this item are individually tracked or not |
protected void |
loadIdentifications(int iItemId)
Load all identifications into a table |
protected void |
notifyAverageCost(double dAverageCost)
Notify all listeners when average cost changes. |
protected void |
notifyCostChanged(double dCost)
Notify all listeners when cost changes. |
protected void |
notifyCostListeners()
Notify all listeners functions about changes to the cost values based on the changes to individual identifications. |
protected void |
notifyIdentificationCountChanged(int iCount)
Notify all listeners when number of individual identifications changes. |
protected void |
notifyRetiredChanged(boolean bRetired)
Notify all listeners when retired flag in some identifications changes. |
void |
removeItemIdentificationPageListener(ItemIdentificationPageListener listener)
Remove listener from this dialog. |
void |
setDefaultCostValue(double dCost)
Set the default cost for all existing and future individually identifiable items. |
protected void |
updateTable()
Update the table based on changes to individual identifications. |
| 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 org.eclipse.swt.widgets.Label m_editNumberLabel
protected org.eclipse.swt.widgets.Text m_editNumberText
protected org.eclipse.swt.widgets.Button m_editNumberButton
protected org.eclipse.swt.widgets.Label m_tableLabel
protected org.eclipse.swt.widgets.Table m_table
protected org.eclipse.swt.widgets.Button m_addButton
protected org.eclipse.swt.widgets.Button m_modifyButton
protected org.eclipse.swt.widgets.Button m_removeButton
protected org.eclipse.swt.widgets.Composite m_clientArea
protected ItemDialog m_itemDialog
protected double m_defaultCost
protected java.util.List m_lstIdentifications
| Constructor Detail |
|---|
public ItemIdentificationPage()
| Method Detail |
|---|
public org.eclipse.swt.widgets.Composite createClientArea(ItemDialog itemDialog,
org.eclipse.swt.widgets.TabFolder tab,
Item itemData,
java.lang.String strInternalNumber)
throws org.opensubsystems.core.error.OSSException
itemDialog - - dialog displaying this pagetab - - control this page belongs toitemData - - item to create or editstrInternalNumber - - 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 has occuredpublic void addItemIdentificationPageListener(ItemIdentificationPageListener listener)
listener - - listener to addpublic void removeItemIdentificationPageListener(ItemIdentificationPageListener listener)
listener - - listener to removepublic void setDefaultCostValue(double dCost)
dCost - - default cost valuepublic java.util.List getIdentifications()
public boolean isUniquelyTracked()
public int getNotRetiredIdentificationsCount()
public int getRetiredCount()
public java.lang.String getInternalNumberForNonUniqueItems()
protected void loadIdentifications(int iItemId)
throws org.opensubsystems.core.error.OSSException
iItemId - - id of the item to load identifications for
org.opensubsystems.core.error.OSSException - - an error has occuredprotected void updateTable()
protected void notifyCostListeners()
protected void notifyAverageCost(double dAverageCost)
dAverageCost - - new average cost valueprotected void notifyCostChanged(double dCost)
dCost - - new cost valueprotected void notifyIdentificationCountChanged(int iCount)
iCount - - new number of individual identificationsprotected void notifyRetiredChanged(boolean bRetired)
bRetired - - new retired value
protected org.opensubsystems.patterns.listdata.logic.ListController getListController()
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 | ||||||||