|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.inventory.application.swt.ItemBasicPage
public class ItemBasicPage
Basic information page of item dialog. TODO: ThickClient: This page doesn't allow to multiselect subcategories. If user is using mouse he should be able to do multiple at once.
| Field Summary | |
|---|---|
protected static int |
AVAILABLE_FIELD
Offset of field in the field arrays |
protected static int |
DESCRIPTION_FIELD
Offset of field in the field arrays |
protected org.eclipse.swt.widgets.Button |
m_addSub
Add subcategory button. |
protected java.util.List |
m_availableSubCategoriesList
List of all available subcategories for root category. |
protected org.eclipse.swt.widgets.List |
m_availableSubs
List with available subcategories for main category. |
protected org.eclipse.swt.widgets.Button[] |
m_buttons
Set of buttons next to the controls to edit the data. |
protected org.eclipse.swt.widgets.Combo |
m_categoryComboBox
Main category selection combo box. |
protected org.eclipse.swt.widgets.Composite |
m_clientArea
Client area containing all the other controls. |
protected int |
m_currentAvailableValue
Current available value. |
protected int |
m_iInventoryId
Inventory in the item should exist. |
protected ItemDialog |
m_itemDialog
Dialog this gui is representing. |
protected org.eclipse.swt.widgets.Label[] |
m_labels
Set of labels next to the controls. |
protected org.eclipse.swt.widgets.Button |
m_removeSub
Remove subcategory button. |
protected int[] |
m_rootCategoryIds
Ids of root categories loaded into the category combo box. |
protected java.util.List |
m_selectedSubCategoriesList
List of selected subcategories.We need to store the entire categories in here so that we have access to display order attribute to order the categories correctly, therefore this list stores Category objects. |
protected org.eclipse.swt.widgets.List |
m_selectedSubs
List with selected subcategories for main category. |
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.Text[] |
m_texts
Set of text edit fields to edit data in. |
protected static int |
NAME_STEM_FIELD
Offset of field in the field arrays |
protected static int |
REUSABLE_FIELD
Offset of field in the field arrays |
protected static int |
SHIPPED_FIELD
Offset of field in the field arrays |
protected static int |
SIZE_FIELD
Offset of field in the field arrays |
| Constructor Summary | |
|---|---|
ItemBasicPage()
|
|
| Method Summary | |
|---|---|
void |
addItemBasicPageListener(ItemBasicPageListener listener)
Add listener for this dialog. |
protected void |
addSubcategories()
Add selected subcategory from available list to selected list. |
org.eclipse.swt.widgets.Composite |
createClientArea(ItemDialog itemDialog,
org.eclipse.swt.widgets.TabFolder tab,
Item itemData,
int iRootCategoryId,
java.util.List lstSubcategoryIds)
Create client area of this page. |
int |
getAvailableCount()
|
int |
getCategoryId()
|
java.lang.String |
getDescription()
|
protected org.opensubsystems.patterns.listdata.logic.ListController |
getListController()
Get list controller to use. |
java.lang.String |
getNameStem()
|
boolean |
getReusable()
|
int |
getShippedCount()
|
java.lang.String |
getSize()
|
int[] |
getSubcategoryIds()
|
protected void |
loadCategories(int iRootCategoryId)
Load categories into a category combo box and select current category. |
protected void |
loadSubcategories(int iCategoryId,
java.util.List lstSubcategoryIds)
Load all subcategories to available list and clear selected list |
void |
modifyAvailableCount(int iDifference)
Modify available item count value by a specified amount. |
protected void |
notifySetConsumable(boolean bNewState)
Notify all listeners when consumable flag changes. |
void |
removeItemTypeBasicPageListener(ItemBasicPageListener listener)
Remove listener from this dialog. |
protected void |
removeSubcategories()
Remove selected subcategory from selected to available list |
void |
setAvailableCount(int iCount)
Set available count value. |
void |
setIdentificationCount(int iCount)
Number of identifications and therefore uniquely identifiable items has changed so readjust the values on this page. |
void |
setShippedCount(int iCount)
Set shipped count value. |
protected void |
startCharacterPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit)
Starts character pad dialog to edit textual value of a field. |
protected void |
startNumberPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit)
Starts number pad dialog to edit numeric value of a field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int NAME_STEM_FIELD
protected static final int SIZE_FIELD
protected static final int DESCRIPTION_FIELD
protected static final int REUSABLE_FIELD
protected static final int SHIPPED_FIELD
protected static final int AVAILABLE_FIELD
protected java.util.Set m_setListeners
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.Combo m_categoryComboBox
protected org.eclipse.swt.widgets.List m_availableSubs
protected org.eclipse.swt.widgets.List m_selectedSubs
protected org.eclipse.swt.widgets.Button m_addSub
protected org.eclipse.swt.widgets.Button m_removeSub
protected int m_iInventoryId
protected int[] m_rootCategoryIds
protected java.util.List m_availableSubCategoriesList
protected java.util.List m_selectedSubCategoriesList
protected int m_currentAvailableValue
protected org.eclipse.swt.widgets.Composite m_clientArea
protected ItemDialog m_itemDialog
| Constructor Detail |
|---|
public ItemBasicPage()
| Method Detail |
|---|
public org.eclipse.swt.widgets.Composite createClientArea(ItemDialog itemDialog,
org.eclipse.swt.widgets.TabFolder tab,
Item itemData,
int iRootCategoryId,
java.util.List lstSubcategoryIds)
throws org.opensubsystems.core.error.OSSException
itemDialog - - dialog displaying this pagetab - - control this page belongs toitemData - - item to create or editiRootCategoryId - - root category this item should or does exist inlstSubcategoryIds - - ids of subcategories this item should or does
exist in
org.opensubsystems.core.error.OSSException - - an error has occuredpublic java.lang.String getNameStem()
public java.lang.String getSize()
public java.lang.String getDescription()
public boolean getReusable()
public int getShippedCount()
public void setShippedCount(int iCount)
iCount - - new value for shipped count to apply on this page.public void setIdentificationCount(int iCount)
iCount - - new count of uniquely identifiable items to apply on this
pagepublic int getAvailableCount()
public void setAvailableCount(int iCount)
iCount - - new value for available count to apply on this page.public void modifyAvailableCount(int iDifference)
iDifference - - amount to change available count by.public int getCategoryId()
public int[] getSubcategoryIds()
public void addItemBasicPageListener(ItemBasicPageListener listener)
listener - - listener to addpublic void removeItemTypeBasicPageListener(ItemBasicPageListener listener)
listener - - listener to remove
protected void loadCategories(int iRootCategoryId)
throws org.opensubsystems.core.error.OSSException
iRootCategoryId - - id of root category where the item does or should
exist in
org.opensubsystems.core.error.OSSException - - an error has occured
protected void loadSubcategories(int iCategoryId,
java.util.List lstSubcategoryIds)
throws org.opensubsystems.core.error.OSSException
iCategoryId - - root category id for which to load subcategorieslstSubcategoryIds - - ids of subcategories this item should or does
exist in
org.opensubsystems.core.error.OSSException - - an error has occuredprotected void addSubcategories()
protected void removeSubcategories()
protected void startCharacterPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit)
strTitle - - text to display in the title of the dialogstrFirstLineText - - text displayed above the entry areaiFieldToEdit - - what field should be edited
protected void startNumberPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit)
strTitle - - text to display on the dialogstrFirstLineText - - text displayed above the entry areaiFieldToEdit - - what field should be editedprotected void notifySetConsumable(boolean bNewState)
bNewState - - new consumable button state
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 | ||||||||