|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.openpermis.editor.policy.gui.SelectableAction
org.openpermis.editor.policy.view.ToolTrackerAction
public class ToolTrackerAction
Action that tracks the state of a tool.
Opens and closes the tool if the action is executed.
Field Summary | |
---|---|
private Tool |
tool
The tool to track. |
private ViewContext |
viewContext
The view context of the tool to track. |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
ToolTrackerAction(Tool tool,
ViewContext viewContext)
Creates a new tool tracker for the specified tool and view context. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
viewActivated(View view)
Indicates that a view has been activated in a view context. |
void |
viewClosed(View view)
Indicates that a view has been closed in a view context. |
void |
viewDeactivated(View view)
Indicates that a view has been deactivated in a view context. |
void |
viewOpened(View view)
Indicates that a view has been opened in a view context. |
Methods inherited from class org.openpermis.editor.policy.gui.SelectableAction |
---|
createCheckBox, createCheckBox, createCheckBoxMenuItem, createCheckBoxMenuItem, createToggleButton, createToggleButton, isSelected, isSelected, isSelectionEvent, itemStateChanged, setSelected |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Tool tool
private final ViewContext viewContext
Constructor Detail |
---|
public ToolTrackerAction(Tool tool, ViewContext viewContext)
tool
- the tool to track.viewContext
- the view context of the tool to track.Method Detail |
---|
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class SelectableAction
public void viewActivated(View view)
ViewContextListener
viewActivated
in interface ViewContextListener
view
- the view that has been activated.public void viewDeactivated(View view)
ViewContextListener
viewDeactivated
in interface ViewContextListener
view
- the view that has been deactivated.public void viewOpened(View view)
ViewContextListener
viewOpened
in interface ViewContextListener
view
- the view that has been opened.public void viewClosed(View view)
ViewContextListener
viewClosed
in interface ViewContextListener
view
- the view that has been closed.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG