|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.opensubsystems.inventory.application.swt.CategorizedItemsTable
org.opensubsystems.inventory.application.swt.ItemTable
public class ItemTable
Table displaying list of items in the inventory.
| Field Summary | |
|---|---|
static int |
AVAILABLE_COUNT_COLUMN
Column, which displays available count. |
static int |
DIFF_COUNT_COLUMN
Column, which displays difference between available and shipped count. |
protected org.opensubsystems.patterns.thickclient.application.swt.ToggleButtonSelectionAdapter |
m_adapter
Adapter used to selet if the item is ordered or not. |
protected int |
m_iTableVersion
Table version value for async data loader |
static int |
OUT_COUNT_COLUMN
Column, which displays out count, which is count of items users borrowed. |
protected static java.text.NumberFormat |
s_currencyFormat
Formatting object used to format currencies. |
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|---|
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|---|
handle |
| Constructor Summary | |
|---|---|
ItemTable(org.eclipse.swt.widgets.Composite parent,
InventoryModule module,
Inventory defaultInventory,
java.util.Map selectedCategories,
java.util.Map selectedSubCategories,
int[] showStatus,
int displayedDataType)
Constructor. |
|
| Method Summary | |
|---|---|
void |
allDataLoaded(org.opensubsystems.patterns.listdata.util.AsyncDataLoader loader)
|
org.opensubsystems.patterns.listdata.data.ListOptions |
getInitialListOptions(org.opensubsystems.patterns.listdata.util.AsyncDataLoader loader,
org.opensubsystems.patterns.listdata.data.ListOptions defaultOptions)
|
int |
getSelectedItemId()
Get id of the selected item |
protected void |
loadItems()
Load items asynchronously. |
void |
processData(org.opensubsystems.patterns.listdata.util.AsyncDataLoader loader,
java.util.List lstDataToAdd,
int iOriginalObjectVersion)
|
void |
refresh()
Refresh screen by reloading all items. |
protected void |
setSelectedItemValue(java.lang.String strNewAvailableValue,
java.lang.String strNewDiffValue,
java.lang.Integer iItemId,
org.eclipse.swt.graphics.Color newColor)
Set new value for the selected item. |
protected void |
startNumberPad(java.lang.String strValue)
Function opens number pad dialog |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int AVAILABLE_COUNT_COLUMN
public static final int OUT_COUNT_COLUMN
public static final int DIFF_COUNT_COLUMN
protected static java.text.NumberFormat s_currencyFormat
protected int m_iTableVersion
protected org.opensubsystems.patterns.thickclient.application.swt.ToggleButtonSelectionAdapter m_adapter
| Constructor Detail |
|---|
public ItemTable(org.eclipse.swt.widgets.Composite parent,
InventoryModule module,
Inventory defaultInventory,
java.util.Map selectedCategories,
java.util.Map selectedSubCategories,
int[] showStatus,
int displayedDataType)
throws org.opensubsystems.core.error.OSSException
parent - - who is parent of this tablemodule - - module displaying this tabledefaultInventory - - Inventory which is used in the system.selectedCategories - - what categories are selected in the list
of items. Key is the id, category is the value;selectedSubCategories - - what subcategories are selected in the list
of items. Key is the id, category is the value;showStatus - - which show button will be toggleddisplayedDataType - - which data are displayed : Inventory, Receiving
org.opensubsystems.core.error.OSSException - - an error initializing the screen| Method Detail |
|---|
public org.opensubsystems.patterns.listdata.data.ListOptions getInitialListOptions(org.opensubsystems.patterns.listdata.util.AsyncDataLoader loader,
org.opensubsystems.patterns.listdata.data.ListOptions defaultOptions)
public void processData(org.opensubsystems.patterns.listdata.util.AsyncDataLoader loader,
java.util.List lstDataToAdd,
int iOriginalObjectVersion)
public void allDataLoaded(org.opensubsystems.patterns.listdata.util.AsyncDataLoader loader)
public int getSelectedItemId()
public void refresh()
protected void loadItems()
loadItems in class CategorizedItemsTableprotected void startNumberPad(java.lang.String strValue)
strValue - - initial value in the dialog
protected void setSelectedItemValue(java.lang.String strNewAvailableValue,
java.lang.String strNewDiffValue,
java.lang.Integer iItemId,
org.eclipse.swt.graphics.Color newColor)
strNewAvailableValue - - new value for the current selected item
available countstrNewDiffValue - - new value for the current selected item
out countiItemId - - id of data to setnewColor - - new color of the item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||