|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--data.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.
Fields inherited from class data.AbstractNameable |
m_ncContext,
m_pcsPropertyListeners |
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 |
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()
protected void setValue(Value vNew)
The method will fire a property change event for the "value" property.
public boolean isEditable()
public Catalog getCatalog()
public String toString()
protected abstract CatalogItemImpl getShallowClone()
public int compareTo(Object o)
public boolean equals(Object o)
o
is identical to this
object.public void addValueListener(PropertyChangeListener pcl)
public void removeValueListener(PropertyChangeListener pcl)
|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |