|
||||||||||
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
bibliothek.gui.dock.control.PopupController.ComponentObserver
private class PopupController.ComponentObserver
A mouse listener opening a popup menu when necessary.
Field Summary | |
---|---|
protected Dockable |
dockable
the dockable for which a listener might be opened |
private DockTitle |
title
the observed title, can be null |
Constructor Summary | |
---|---|
PopupController.ComponentObserver(Dockable dockable,
DockTitle title)
Creates a new observer |
Method Summary | |
---|---|
protected Dockable |
getDockable()
Gets the Dockable to which the actions are linked. |
protected DockActionSource |
getSource()
Gets the actions, that will be displayed |
protected boolean |
isEnabled()
Tells, whether a popup can be displayed, or not. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
Methods inherited from class bibliothek.gui.dock.action.ActionPopup |
---|
isSuppressable, mousePressed, mouseReleased, popup, popup, setSuppressable |
Methods inherited from class javax.swing.event.MouseInputAdapter |
---|
mouseDragged, mouseEntered, mouseExited, mouseMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Dockable dockable
private DockTitle title
null
Constructor Detail |
---|
public PopupController.ComponentObserver(Dockable dockable, DockTitle title)
dockable
- the element for which a popup might be openedtitle
- the title which might be observed, can be null
Method Detail |
---|
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class javax.swing.event.MouseInputAdapter
protected Dockable getDockable()
ActionPopup
getDockable
in class ActionPopup
protected DockActionSource getSource()
ActionPopup
getSource
in class ActionPopup
protected boolean isEnabled()
ActionPopup
isEnabled
in class ActionPopup
true
if a popup can be displayed, false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |