org.opensubsystems.inventory.application.swt
Class ViewInventory

java.lang.Object
  extended by org.opensubsystems.inventory.application.swt.ViewInventory

public class ViewInventory
extends java.lang.Object

Screen to view items in the inventory.

Version:
$Id: ViewInventory.java,v 1.8 2007/01/07 06:14:07 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.6 2006/03/19 15:38:31 bastafidli

Field Summary
protected  org.eclipse.swt.widgets.Composite m_clientArea
          Client area containing all the other controls.
protected  org.eclipse.swt.widgets.Button m_createItem
          Create button for an item.
protected  org.eclipse.swt.widgets.Button m_createSubcategory
          Create subcategory button
protected  Inventory m_currentInventory
          Current inventory used to display items.
protected  ItemTable m_items
          Table with items to select from.
protected  org.eclipse.swt.widgets.Button m_modifyItem
          Modify button for an item.
protected  InventoryModule m_module
          Module displaying this screen.
protected  int m_selectedCategoryId
          Id of currently selected category
protected  int[] m_showStatus
          Which show togle button is pressed.
 
Constructor Summary
ViewInventory(org.eclipse.swt.widgets.Composite parent, InventoryModule module, Inventory currentInventory, java.util.Map selectedCategories, java.util.Map selectedSubCategories)
          Construct new screen to display items in the inventory.
 
Method Summary
 void refresh()
          Refresh screen by reloading all items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_module

protected InventoryModule m_module
Module displaying this screen.


m_items

protected ItemTable m_items
Table with items to select from.


m_showStatus

protected int[] m_showStatus
Which show togle button is pressed.


m_selectedCategoryId

protected int m_selectedCategoryId
Id of currently selected category


m_currentInventory

protected Inventory m_currentInventory
Current inventory used to display items.


m_clientArea

protected org.eclipse.swt.widgets.Composite m_clientArea
Client area containing all the other controls.


m_createSubcategory

protected org.eclipse.swt.widgets.Button m_createSubcategory
Create subcategory button


m_createItem

protected org.eclipse.swt.widgets.Button m_createItem
Create button for an item.


m_modifyItem

protected org.eclipse.swt.widgets.Button m_modifyItem
Modify button for an item.

Constructor Detail

ViewInventory

public ViewInventory(org.eclipse.swt.widgets.Composite parent,
                     InventoryModule module,
                     Inventory currentInventory,
                     java.util.Map selectedCategories,
                     java.util.Map selectedSubCategories)
              throws org.opensubsystems.core.error.OSSException
Construct new screen to display items in the inventory.

Parameters:
parent - - who is parent of this screen
module - - module displaying this screen
currentInventory - - Inventory which is currently used
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.
Throws:
org.opensubsystems.core.error.OSSException - - an error initializing the screen
Method Detail

refresh

public void refresh()
Refresh screen by reloading all items.



Copyright © 2003 - 2006 OpenSubsystems s.r.o.