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, setEnabled
protected 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.ActionListener
protected 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 Feature
public java.lang.String getStringValue(java.lang.String key)
public void initialize(Controller controller)
initialize
in interface Initializable
public boolean isInitialized()
isInitialized
in interface Initializable
public boolean isTwoState()
Feature
isTwoState
in interface Feature
public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
propertyChange
in interface java.beans.PropertyChangeListener
protected java.lang.Object register(java.lang.String featureID, Registry registry)
protected void setMenuAccellerator(Controller controller)