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, updateViewpublic 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)
AbstractViewActioninstallViewListeners in class AbstractViewActionprotected void uninstallViewListeners(View p)
uninstallViewListeners in class AbstractViewActionprotected void updateView()
AbstractViewActionupdateView in class AbstractViewAction