|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
org.openpermis.editor.policy.gui.DoubleClickForwarder
public class DoubleClickForwarder
Mouse listener that triggers an action on a double click.
Field Summary | |
---|---|
private Action |
action
The action to trigger. |
private String |
command
The command to pass. |
static String |
COMMAND
Default command used to trigger the action. |
Constructor Summary | |
---|---|
DoubleClickForwarder(Action action)
Creates a new double click listener. |
|
DoubleClickForwarder(Action action,
String command)
Creates a new double click listener. |
Method Summary | |
---|---|
void |
mouseClicked(MouseEvent e)
|
static DoubleClickForwarder |
register(JComponent component,
Action action)
Convenience method to add a double click action to a component. |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COMMAND
"doubleclick"
private Action action
private final String command
Constructor Detail |
---|
public DoubleClickForwarder(Action action)
COMMAND
as command.action
- the action to execute.public DoubleClickForwarder(Action action, String command)
action
- the action to execute.command
- the command to issue.Method Detail |
---|
public static DoubleClickForwarder register(JComponent component, Action action)
component
- the component to register the action at.action
- the action to register.
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class MouseAdapter
|
![]() |
||||||||
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