public class ToggleViewPropertyAction extends AbstractViewAction
ENABLED_PROPERTY, VIEW_PROPERTY
Constructor and Description |
---|
ToggleViewPropertyAction(Application app,
View view,
java.lang.String propertyName)
Creates a new instance.
|
ToggleViewPropertyAction(Application app,
View view,
java.lang.String propertyName,
java.lang.Class propertyClass,
java.lang.Object selectedPropertyValue,
java.lang.Object deselectedPropertyValue) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt) |
protected void |
installViewListeners(View p)
Installs listeners on the view object.
|
protected void |
uninstallViewListeners(View p)
Installs listeners on the view object.
|
protected void |
updateView()
This method is invoked, when the property changed and when
the view changed.
|
getActiveView, getApplication, getPropertyName, isEnabled, setEnabled, setPropertyName, updateEnabled, updateView
public ToggleViewPropertyAction(Application app, View view, java.lang.String propertyName)
public ToggleViewPropertyAction(Application app, View view, java.lang.String propertyName, java.lang.Class propertyClass, java.lang.Object selectedPropertyValue, java.lang.Object deselectedPropertyValue)
public void actionPerformed(java.awt.event.ActionEvent evt)
protected void installViewListeners(View p)
AbstractViewAction
installViewListeners
in class AbstractViewAction
protected void uninstallViewListeners(View p)
uninstallViewListeners
in class AbstractViewAction
protected void updateView()
AbstractViewAction
updateView
in class AbstractViewAction