|
SalesPoint Framework v3.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 class 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 |
public static final String VALUE_PROPERTY
Method Detail |
public Value getValue()
CatalogItemValue
adapter.public Catalog getCatalog()
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 |