|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.inline.feature.common.AbstractResourceListener | +--com.inline.feature.common.AbstractFeatureSet | +--com.inline.feature.common.AggregateFeatureSet
FeatureSet that aggregates other FeatureSets and forwards messages to them. It is used by AbstractFeatureModel to allocate sets of children for Features.
AbstractFeatureModel.getChildFeatureSet(Feature)
Fields inherited from class com.inline.feature.common.AbstractResourceListener |
active,
featureModel,
parent,
resourceAdapters,
resourceSetAdapters,
revalidate |
Constructor Summary | |
AggregateFeatureSet(Feature parent)
|
Method Summary | |
protected void |
activate()
Registers this object as an observer on all registered resource adapters and resource set adapters, then it calls invalidate() on self
to restart the resource parsing process. |
void |
addFeatureSet(java.lang.String type,
FeatureSet set)
|
protected Feature |
allocateFeature(java.lang.String type,
java.lang.String signature)
|
void |
featureAdded(FeatureSet set,
Feature feature)
|
void |
featureRemoved(FeatureSet set,
Feature feature)
|
void |
featureReplaced(FeatureSet set,
Feature oldFeature,
Feature newFeature)
|
Feature |
getFeature(java.lang.String type,
java.lang.String signature)
Finds the feature that has the specified type and signature |
com.sun.java.util.collections.Set |
getFeatureConstructors()
Returns a set of FeatureConstructor objects suitable for the use in the context of this feature set's parent. |
com.sun.java.util.collections.Set |
getFeatures()
Returns all features handled by this set. |
com.sun.java.util.collections.Set |
getFeatures(java.lang.String type)
Returns a subset of features which have the specified type. |
protected com.sun.java.util.collections.Set |
getPrimitiveFeatureConstructors(java.lang.String type)
Returns a set of basic feature constructors which can be used to build features of the specified type. |
Feature[] |
getSortedFeatures()
Returns features sorted according to their DisplayProperty's preferences. |
boolean |
isEmpty()
This method exists for optimization purposes. |
protected void |
passivate()
Unregisters this object as an observer from all registered resource adapters and resource set adapters. |
void |
release()
This method is called when the parent feature is removed from the feature tree. |
Methods inherited from class com.inline.feature.common.AbstractFeatureSet |
addFeatureSetListener,
fireFeatureAdded,
fireFeatureRemoved,
fireFeatureReplaced,
getDefaultFeatureConstructor,
getFeatureConstructor,
getFeatureConstructors,
removeFeatureSetListener,
shouldCheckHasChildren |
Methods inherited from class com.inline.feature.common.AbstractResourceListener |
getFeatureModel,
getParent,
invalidate,
propertyChange,
registerDependencies,
registerResourceAdapter,
registerResourceAdapter,
registerResourceSetAdapter,
registerResourceSetAdapter,
resourceAdded,
resourceChanged,
resourceRemoved,
unregisterResourceAdapter,
unregisterResourceSetAdapter |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AggregateFeatureSet(Feature parent)
Method Detail |
public void addFeatureSet(java.lang.String type, FeatureSet set)
protected Feature allocateFeature(java.lang.String type, java.lang.String signature)
public com.sun.java.util.collections.Set getFeatures()
public com.sun.java.util.collections.Set getFeatures(java.lang.String type)
public Feature getFeature(java.lang.String type, java.lang.String signature)
public Feature[] getSortedFeatures()
DisplayProperties
public boolean isEmpty()
protected void activate()
invalidate()
on self
to restart the resource parsing process.AbstractFeature.addPropertyChangeListener(PropertyChangeListener)
,
AbstractFeatureSet.addFeatureSetListener(FeatureSetListener)
protected void passivate()
AbstractFeature.removePropertyChangeListener(PropertyChangeListener)
,
AbstractFeatureSet.removeFeatureSetListener(FeatureSetListener)
public void release()
public com.sun.java.util.collections.Set getFeatureConstructors()
protected com.sun.java.util.collections.Set getPrimitiveFeatureConstructors(java.lang.String type)
public void featureAdded(FeatureSet set, Feature feature)
public void featureRemoved(FeatureSet set, Feature feature)
public void featureReplaced(FeatureSet set, Feature oldFeature, Feature newFeature)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |