|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CatalogItem
An item in a Catalog
.
CatalogItems describe available objects by their attributes. The only attribute that is mandatory is
a key
(String
), usually a name, but it could be an ID-Number or
anything. A CatalogItem can have a value
attribute.
Note that the name as obtained via Nameable.getName()
is used as the
CatalogItem's key when inserting the CatalogItem inside a Catalog.
CatalogItems are contained in Catalogs
.
Field Summary | |
---|---|
static String |
VALUE_PROPERTY
The programmatical name for the "value" property. |
Fields inherited from interface data.Nameable |
---|
NAME_PROPERTY |
Method Summary | |
---|---|
void |
addValueListener(PropertyChangeListener pcl)
Add a PropertyChangeListener that will receive events whenever the "value" property changes. |
Catalog |
getCatalog()
Get the Catalog that currently contains this CatalogItem. |
Value |
getValue()
Get the default value of this CatalogItem. |
void |
removeValueListener(PropertyChangeListener pcl)
Remove a PropertyChangeListener for the "value" property. |
Methods inherited from interface data.Nameable |
---|
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final String VALUE_PROPERTY
Method Detail |
---|
Value getValue()
CatalogItemValue
adapter.
Catalog getCatalog()
void addValueListener(PropertyChangeListener pcl)
void removeValueListener(PropertyChangeListener pcl)
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |