com.inline.feature.standard
Class SimpleFeatureConstructor

java.lang.Object
  |
  +--com.inline.feature.ui.AbstractDisplayable
        |
        +--com.inline.feature.common.AbstractFeatureConstructor
              |
              +--com.inline.feature.standard.SimpleFeatureConstructor

public class SimpleFeatureConstructor
extends AbstractFeatureConstructor


Fields inherited from class com.inline.feature.ui.AbstractDisplayable
displayProperties, featureModel
 
Constructor Summary
SimpleFeatureConstructor(AbstractTypedFeatureSet featureSet)
           
 
Method Summary
 Feature construct()
          Creates a new feature or features.
 void insert(Feature feature)
          Call this method with a feature constructed using the same constructor to insert it into the feature model.
 boolean isEnabled()
          Calls FeatureModel.isConstructorEnabled().
 
Methods inherited from class com.inline.feature.common.AbstractFeatureConstructor
constructAndInsert, getDisplayType, getFeatureType, getName, getParentFeature, isAddFeatureActionAllowed, isDefault, toString
 
Methods inherited from class com.inline.feature.ui.AbstractDisplayable
getDisplayProperties, getFeatureModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleFeatureConstructor

public SimpleFeatureConstructor(AbstractTypedFeatureSet featureSet)
Method Detail

isEnabled

public boolean isEnabled()
Description copied from class: AbstractFeatureConstructor
Calls FeatureModel.isConstructorEnabled(). Overriding implementations of this method must call super.isEnabled() and return false if it returns false.
Overrides:
isEnabled in class AbstractFeatureConstructor
Tags copied from class: AbstractFeatureConstructor
See Also:
FeatureModel.isDefaultFeatureConstructor(Feature,String,FeatureConstructor)

construct

public Feature construct()
Description copied from interface: FeatureConstructor
Creates a new feature or features. You will need to call insert(feature) to actually add the feature to the feature model. If you choose not to insert it into the model after all, call feature.release().

insert

public void insert(Feature feature)
            throws InvalidFeatureException
Description copied from interface: FeatureConstructor
Call this method with a feature constructed using the same constructor to insert it into the feature model. If the feature has children at this point, all those features should be automatically inserted as well. Call featureModel.commit() to make the new feature(s) persistent.