|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FeatureActionFactories produce FeatureActions for individual Features. Factories of all types are registered in the ResourceFactory for the product or a plug-in.
There are three types of actions:
Feature.getActions()
is a combination of all three.
FeatureActionFactory produces a set of FeatureActions that are potentially applicable to the feature. Whether or not any particular action is enabled is determined dynamically by the FeatureAction.isEnabled() method. A Feature is likely to build the sets of FeatureActions only once and then cache it.
Field Summary | |
static java.lang.String |
TYPE
Resource type for instances of FeatureFactory |
Method Summary | |
com.sun.java.util.collections.Set |
allocateFeatureActions(Feature feature)
Returns a set of FeatureActions objects which can operate on the supplied feature. |
com.sun.java.util.collections.Set |
getSupportedFeatureTypes(FeatureModel model)
A factory is associated with one or more feature types within the scope of every feature model. |
boolean |
isEnabled(Feature feature)
Should return true if the factory is suited to allocate feature actions for this particular feature. |
Field Detail |
public static final java.lang.String TYPE
Method Detail |
public com.sun.java.util.collections.Set getSupportedFeatureTypes(FeatureModel model)
public boolean isEnabled(Feature feature)
FeatureActions.isEnabled()
method.public com.sun.java.util.collections.Set allocateFeatureActions(Feature feature)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |