|
||||||||||
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 java.lang.String |
VALUE_PROPERTY
The programmatical name for the "value" property. |
Fields inherited from interface org.salespointframework.core.data.interfaces.Nameable |
---|
NAME_PROPERTY |
Method Summary | |
---|---|
void |
addValueListener(java.beans.PropertyChangeListener pcl)
Add a PropertyChangeListener that will receive events whenever the "value" property changes. |
void |
firePropertyChanged()
Signals persistence layer to update objects values |
Catalog |
getCatalog()
Get the Catalog that currently contains this CatalogItem. |
java.awt.image.BufferedImage |
getImage()
Get the image of the CatalogItem |
Value |
getValue()
Get the default value of this CatalogItem. |
void |
removeValueListener(java.beans.PropertyChangeListener pcl)
Remove a PropertyChangeListener for the "value" property. |
boolean |
setImage(java.net.URI filename)
Set the image of the CatalogItem |
Methods inherited from interface org.salespointframework.core.data.interfaces.Nameable |
---|
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.salespointframework.core.data.interfaces.SpItem |
---|
getName |
Field Detail |
---|
static final java.lang.String VALUE_PROPERTY
Method Detail |
---|
Value getValue()
CatalogItemValue
adapter.
boolean setImage(java.net.URI filename)
filename
- uri, pointing to the image file
java.awt.image.BufferedImage getImage()
Catalog getCatalog()
void addValueListener(java.beans.PropertyChangeListener pcl)
void removeValueListener(java.beans.PropertyChangeListener pcl)
void firePropertyChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |