com.inline.feature.common
Class AbstractFeatureAction

java.lang.Object
  |
  +--com.inline.feature.ui.AbstractDisplayable
        |
        +--com.inline.feature.common.AbstractFeatureAction
Direct Known Subclasses:
AddFeatureAction, FieldListAction, RemoveFeatureAction

public abstract class AbstractFeatureAction
extends AbstractDisplayable
implements FeatureAction

Recommended superclass for FeatureActions.


Field Summary
protected  Feature feature
           
 
Fields inherited from class com.inline.feature.ui.AbstractDisplayable
displayProperties, featureModel
 
Fields inherited from interface com.inline.feature.FeatureAction
DISPLAY_TYPE_PREFIX
 
Constructor Summary
AbstractFeatureAction(Feature feature)
           
 
Method Summary
 Feature getFeature()
           
 boolean isEnabled()
          Calls featureModel.isFeatureActionEnabled(feature, this) to allow the feature model to participat in the management of FeatureActions.
 java.lang.String toString()
           
 
Methods inherited from class com.inline.feature.ui.AbstractDisplayable
getDisplayProperties, getDisplayType, getFeatureModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

feature

protected Feature feature
Constructor Detail

AbstractFeatureAction

public AbstractFeatureAction(Feature feature)
Method Detail

getFeature

public Feature getFeature()

isEnabled

public boolean isEnabled()
Calls featureModel.isFeatureActionEnabled(feature, this) to allow the feature model to participat in the management of FeatureActions.
Specified by:
isEnabled in interface FeatureAction
See Also:
FeatureModel.isFeatureActionEnabled(Feature,FeatureAction)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object