com.inline.feature.common
Class RemoveFeatureAction
java.lang.Object
|
+--com.inline.feature.ui.AbstractDisplayable
|
+--com.inline.feature.common.AbstractFeatureAction
|
+--com.inline.feature.common.RemoveFeatureAction
- public class RemoveFeatureAction
- extends AbstractFeatureAction
An action that simply invokes markForDeletion()
on the feature
and then calls FeatureModel.commit()
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
java.lang.String |
getDisplayType()
Displayable objects are bound to their display properties using
an abstract identifier called display type. |
Feature |
getFeature()
|
boolean |
isEnabled()
Calls featureModel.isFeatureActionEnabled(feature, this) to allow
the feature model to participat in the management of FeatureActions. |
void |
perform()
Brings up the "Are you sure?" panel, then calls markForDeletion()
on the feature and then calls FeatureModel.commit() |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
NAME
public static final java.lang.String NAME
RemoveFeatureAction
public RemoveFeatureAction(Feature feature)
getDisplayType
public java.lang.String getDisplayType()
- Description copied from interface: Displayable
- Displayable objects are bound to their display properties using
an abstract identifier called display type. Ask a displayable object
for its display type, then go find a DisplayPropertyFactory that accepts
that display type. That is the sole purpose of display type.
- Overrides:
- getDisplayType in class AbstractDisplayable
getFeature
public Feature getFeature()
- Overrides:
- getFeature in class AbstractFeatureAction
isEnabled
public boolean isEnabled()
- Description copied from class: AbstractFeatureAction
- Calls
featureModel.isFeatureActionEnabled(feature, this)
to allow
the feature model to participat in the management of FeatureActions.
- Overrides:
- isEnabled in class AbstractFeatureAction
- Tags copied from class: AbstractFeatureAction
- See Also:
FeatureModel.isFeatureActionEnabled(Feature,FeatureAction)
perform
public void perform()
- Brings up the "Are you sure?" panel, then calls
markForDeletion()
on the feature and then calls FeatureModel.commit()