public class AbstractFeature extends javax.swing.AbstractAction implements Feature
| Modifier and Type | Field and Description |
|---|---|
protected Controller |
controller |
protected java.lang.String |
featureID |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFeature(java.lang.String s,
java.lang.String featureID,
Registry registry) |
protected |
AbstractFeature(java.lang.String s,
java.lang.String featureID,
java.lang.String largeIconPath,
Registry registry) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent actionEvent) |
protected void |
addToToolBar() |
protected void |
doActionPerformed(java.awt.event.ActionEvent actionEvent) |
void |
doPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent) |
Controller |
getController() |
java.lang.String |
getFeatureID() |
java.lang.String |
getName() |
java.lang.String |
getStringValue(java.lang.String key) |
void |
initialize(Controller controller) |
boolean |
isInitialized() |
boolean |
isOn() |
boolean |
isTwoState()
Indicates whether the feature can be either on or off, without any other states.
|
void |
propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent) |
protected java.lang.Object |
register(java.lang.String featureID,
Registry registry) |
protected void |
setMenuAccellerator(Controller controller) |
void |
turnOn(boolean tf) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprotected Controller controller
protected java.lang.String featureID
protected AbstractFeature(java.lang.String s,
java.lang.String featureID,
Registry registry)
protected AbstractFeature(java.lang.String s,
java.lang.String featureID,
java.lang.String largeIconPath,
Registry registry)
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
actionPerformed in interface java.awt.event.ActionListenerprotected void addToToolBar()
protected void doActionPerformed(java.awt.event.ActionEvent actionEvent)
public void doPropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
public Controller getController()
public java.lang.String getFeatureID()
getFeatureID in interface Featurepublic java.lang.String getStringValue(java.lang.String key)
public void initialize(Controller controller)
initialize in interface Initializablepublic boolean isInitialized()
isInitialized in interface Initializablepublic boolean isTwoState()
FeatureisTwoState in interface Featurepublic void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
propertyChange in interface java.beans.PropertyChangeListenerprotected java.lang.Object register(java.lang.String featureID,
Registry registry)
protected void setMenuAccellerator(Controller controller)