|
![]() |
||||||||
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.ClickForwarder
public class ClickForwarder
Mouse listener that triggers an action on a double click.
Field Summary | |
---|---|
static String |
COMMAND
Default command used to trigger the action. |
Constructor Summary | |
---|---|
ClickForwarder(int clickCount,
Action action)
Creates a new double click listener. |
|
ClickForwarder(int clickCount,
Action action,
String command)
Creates a new double click listener. |
Method Summary | |
---|---|
void |
mouseClicked(MouseEvent e)
|
static ClickForwarder |
registerClick(JComponent component,
int clickCount,
Action action)
Convenience method to add a single click action to a component. |
static ClickForwarder |
registerDoubleClick(JComponent component,
Action action)
Convenience method to add a double click action to a component. |
static ClickForwarder |
registerSingleClick(JComponent component,
Action action)
Convenience method to add a double click action to a component. |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved |
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
"click"
Constructor Detail |
---|
public ClickForwarder(int clickCount, Action action)
COMMAND
as command.clickCount
- the number of clicks required to trigger the action.action
- the action to execute.public ClickForwarder(int clickCount, Action action, String command)
clickCount
- the number of clicks required to trigger the action.action
- the action to execute.command
- the command to issue.Method Detail |
---|
public static ClickForwarder registerDoubleClick(JComponent component, Action action)
component
- the component to register the action at.action
- the action to register.
public static ClickForwarder registerSingleClick(JComponent component, Action action)
component
- the component to register the action at.action
- the action to register.
public static ClickForwarder registerClick(JComponent component, int clickCount, Action action)
component
- the component to register the action at.clickCount
- the number of clicks required to trigger the action.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 |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG