com.inline.feature.common
Class AddFeatureAction
java.lang.Object
|
+--com.inline.feature.ui.AbstractDisplayable
|
+--com.inline.feature.common.AbstractFeatureAction
|
+--com.inline.feature.common.AddFeatureAction
- public class AddFeatureAction
- extends AbstractFeatureAction
A simple Add Feature action based on a constructor.
Field Summary |
protected static com.inline.ui.swing.ComponentPool |
pool
|
Method Summary |
java.lang.String |
getDisplayType()
Displayable objects are bound to their display properties using
an abstract identifier called display type. |
FeatureConstructor |
getFeatureConstructor()
|
boolean |
isEnabled()
Calls featureModel.isFeatureActionEnabled(feature, this) to allow
the feature model to participat in the management of FeatureActions. |
void |
perform()
If the constructor's display properties define an editor,
brings that editor up as a dialog. |
protected void |
showDialog(java.lang.Class viewClass)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
pool
protected static com.inline.ui.swing.ComponentPool pool
AddFeatureAction
public AddFeatureAction(Feature parent,
FeatureConstructor constructor)
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
getFeatureConstructor
public FeatureConstructor getFeatureConstructor()
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()
- If the constructor's display properties define an editor,
brings that editor up as a dialog. Otherwise, simply calls
constructAndInsert()
on the FeatureConstructor.
showDialog
protected void showDialog(java.lang.Class viewClass)