|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.inventory.application.swt.ItemPropertiesPage
public class ItemPropertiesPage
Additional properties page of item dialog.
| Field Summary | |
|---|---|
protected static int |
AVERAGE_COST_FIELD
Offset of field in the field arrays |
protected org.eclipse.swt.widgets.Button[] |
m_buttons
Set of buttons next to the controls to edit the data. |
protected org.eclipse.swt.widgets.Composite |
m_clientArea
Client area containing all the other controls. |
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 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 |
MINIMAL_AVAILABLE_FIELD
Offset of field in the field arrays |
protected static int |
PERMANENTLY_ASSIGNED_FIELD
Offset of field in the field arrays |
protected static int |
PRICE_FIELD
Offset of field in the field arrays |
| Constructor Summary | |
|---|---|
ItemPropertiesPage()
|
|
| Method Summary | |
|---|---|
void |
addItemPropertiesPageListener(ItemPropertiesPageListener listener)
Add listener for this dialog. |
org.eclipse.swt.widgets.Composite |
createClientArea(ItemDialog itemDialog,
org.eclipse.swt.widgets.TabFolder tab,
Item itemData)
Create client area of this page. |
double |
getAverageCost()
|
int |
getMinimalAvailable()
|
boolean |
getPermanentlyAssigned()
|
double |
getPrice()
|
protected void |
notifyCostChanged(double dCost)
Notify all listeners when cost changes. |
void |
removeItemPropertiesPageListener(ItemPropertiesPageListener listener)
Remove listener from this dialog. |
void |
setAverageCost(double dCost)
Set an average cost value. |
void |
setCost(double dCost)
Set an actual cost value. |
protected void |
startNumberPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit,
boolean bDecimalDot)
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 PERMANENTLY_ASSIGNED_FIELD
protected static final int MINIMAL_AVAILABLE_FIELD
protected static final int PRICE_FIELD
protected static final int AVERAGE_COST_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.Composite m_clientArea
protected ItemDialog m_itemDialog
| Constructor Detail |
|---|
public ItemPropertiesPage()
| Method Detail |
|---|
public org.eclipse.swt.widgets.Composite createClientArea(ItemDialog itemDialog,
org.eclipse.swt.widgets.TabFolder tab,
Item itemData)
itemDialog - - dialog gui displaying this pagetab - - control this page belongs toitemData - - item to create or edit
public void addItemPropertiesPageListener(ItemPropertiesPageListener listener)
listener - - listener to addpublic void removeItemPropertiesPageListener(ItemPropertiesPageListener listener)
listener - - listener to removepublic boolean getPermanentlyAssigned()
public int getMinimalAvailable()
public double getPrice()
public double getAverageCost()
public void setAverageCost(double dCost)
dCost - - average cost valuepublic void setCost(double dCost)
dCost - - cost value
protected void startNumberPad(java.lang.String strTitle,
java.lang.String strFirstLineText,
int iFieldToEdit,
boolean bDecimalDot)
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 padprotected void notifyCostChanged(double dCost)
dCost - - new cost value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||