org.nakedobjects.metamodel.facets.object.ident.icon
Interface IconFacet
- All Superinterfaces:
- Facet
- All Known Implementing Classes:
- IconFacetAbstract, IconFacetViaMethod
public interface IconFacet
- extends Facet
Mechanism for obtaining the name of the icon for this instance of a class.
Typically a single icon is used for every instance of a class (for example, by placing an appropriately
named image file into a certain directory). This facet allows the icon to be changed on an
instance-by-instance basis. For example, the icon might be adapted with an overlay to represent its state
through some well-defined lifecycle (eg pending approval, approved, rejected). Alternatively a
bounded class might have completely different icons for its instances (eg Visa,
Mastercard, Amex).
In the standard Naked Objects Programming Model, typically corresponds to a method named iconName.
- See Also:
TitleFacet,
PluralFacet
iconName
java.lang.String iconName(NakedObject object)
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.