|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.event.MouseInputAdapter
bibliothek.gui.dock.action.ActionPopup
public abstract class ActionPopup
A mouse-listener that may be added to any component. When
the popup-trigger is pressed, a popupmenu will appear. This menu
shows a list of DockActions
.
Field Summary | |
---|---|
private boolean |
suppressable
Whether to check the ActionPopupSuppressor or not |
Constructor Summary | |
---|---|
ActionPopup(boolean suppressable)
Constructs a new ActionPopup |
Method Summary | |
---|---|
protected abstract Dockable |
getDockable()
Gets the Dockable to which the actions are linked. |
protected abstract DockActionSource |
getSource()
Gets the actions, that will be displayed |
protected abstract boolean |
isEnabled()
Tells, whether a popup can be displayed, or not. |
boolean |
isSuppressable()
Whether this ActionPopup can be suppressed or not. |
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
boolean |
popup(java.awt.Component owner,
int x,
int y)
Pops up this menu. |
protected void |
popup(java.awt.event.MouseEvent e)
Shows the popup of this ActionPopup. |
void |
setSuppressable(boolean suppressable)
Sets whether to ask the ActionPopupSuppressor if this menu
is allowed to popup or not. |
Methods inherited from class javax.swing.event.MouseInputAdapter |
---|
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean suppressable
ActionPopupSuppressor
or not
Constructor Detail |
---|
public ActionPopup(boolean suppressable)
suppressable
- whether to check the ActionPopupSuppressor
before popping up, or not. The suppressor can tell the popup, that it
should not be made visible.Method Detail |
---|
public boolean isSuppressable()
true
if this can be suppressedpublic void setSuppressable(boolean suppressable)
ActionPopupSuppressor
if this menu
is allowed to popup or not.
suppressable
- true
if the suppressor is allowed to
suppress this popuppublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class javax.swing.event.MouseInputAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class javax.swing.event.MouseInputAdapter
protected abstract boolean isEnabled()
true
if a popup can be displayed, false
otherwise.protected abstract Dockable getDockable()
protected abstract DockActionSource getSource()
protected void popup(java.awt.event.MouseEvent e)
mousePressed
or the mouseReleased
-method
e
- The MouseEvent
that triggers the popup. The event must not
consumed
public boolean popup(java.awt.Component owner, int x, int y)
owner
- the owner of the menux
- x-coordinatey
- y-coordinate
true
if the menu is shown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |