org.nakedobjects.metamodel.facets.properties.choices
Interface PropertyChoicesFacet

All Superinterfaces:
Facet
All Known Implementing Classes:
PropertyChoicesFacetAbstract, PropertyChoicesFacetViaMethod

public interface PropertyChoicesFacet
extends Facet

Provides a set of choices for a property.

Viewers would typically represent this as a drop-down list box for the property.

In the standard Naked Objects Programming Model, corresponds to the choicesXxx supporting method for the property with accessor getXxx.

Note: an alternative mechanism may be to use the @Bounded annotation against the referenced class.


Method Summary
 java.lang.Object[] getChoices(NakedObject adapter)
          Gets the available choices for this property.
 
Methods inherited from interface org.nakedobjects.metamodel.facets.Facet
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet
 

Method Detail

getChoices

java.lang.Object[] getChoices(NakedObject adapter)
Gets the available choices for this property.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.