|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.AbstractNameable
data.ooimpl.CatalogItemImpl
Pure Java implementation of the CatalogItem interface. See the documentation for
CatalogItem for a description of the semantics of this class.
| Field Summary |
| Fields inherited from class data.AbstractNameable |
m_ncContext, m_pcsPropertyListeners |
| Fields inherited from interface data.CatalogItem |
VALUE_PROPERTY |
| Fields inherited from interface data.Nameable |
NAME_PROPERTY |
| Fields inherited from interface data.DataBasketKeys |
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY |
| Constructor Summary | |
CatalogItemImpl(String sName)
Create a new CatalogItemImpl. |
|
CatalogItemImpl(String sName,
Value vValue)
Create a new CatalogItemImpl. |
|
| Method Summary | |
void |
addValueListener(PropertyChangeListener pcl)
Add a PropertyChangeListener that will receive events whenever the "value" property changes. |
int |
compareTo(Object o)
Compare this CatalogItem to an object. |
boolean |
equals(Object o)
Check whether two objects are equal. |
Catalog |
getCatalog()
Get the Catalog of this CatalogItem. |
protected abstract CatalogItemImpl |
getShallowClone()
Get a shallow clone of the CatalogItem. |
Value |
getValue()
Get the item's value. |
boolean |
isEditable()
Return true if this CatalogItem is editable. |
void |
removeValueListener(PropertyChangeListener pcl)
Remove a PropertyChangeListener for the "value" property. |
protected void |
setValue(Value vNew)
Set the item's value. |
String |
toString()
Return a String representation of the item. |
| Methods inherited from class data.AbstractNameable |
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface data.Nameable |
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
| Constructor Detail |
public CatalogItemImpl(String sName)
IntegerValue of 0.
sName - the name of the new item.
public CatalogItemImpl(String sName,
Value vValue)
sName - the name of the new item.vValue - the value of the item.| Method Detail |
public Value getValue()
getValue in interface CatalogItemprotected void setValue(Value vNew)
The method will fire a property change event for the "value" property.
public boolean isEditable()
public Catalog getCatalog()
getCatalog in interface CatalogItempublic String toString()
protected abstract CatalogItemImpl getShallowClone()
public int compareTo(Object o)
compareTo in interface ComparableClassCastException - if the given object cannot be cast into a CatalogItem.names of these two CatalogItems.public boolean equals(Object o)
o is identical to this
object.public void addValueListener(PropertyChangeListener pcl)
addValueListener in interface CatalogItempublic void removeValueListener(PropertyChangeListener pcl)
removeValueListener in interface CatalogItem
|
SalesPoint Framework v3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||