|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.event.MouseInputAdapter bibliothek.gui.dock.action.ActionPopup bibliothek.gui.dock.station.stack.DefaultStackDockComponent.Tab
public class DefaultStackDockComponent.Tab
Representation of a single tab of this StackDockComponent
.
Field Summary | |
---|---|
protected Dockable |
dockable
the element on the tab |
Constructor Summary | |
---|---|
DefaultStackDockComponent.Tab(Dockable dockable)
Creates a new Tab |
Method Summary | |
---|---|
protected DockActionSource |
getActions()
Gets the actions, that will be displayed |
Dockable |
getDockable()
Gets the Dockable to which the actions are linked. |
protected java.lang.Object |
getSource()
Gets the source object, the object which is responsible for showing the current menu. |
protected boolean |
isEnabled()
Tells, whether a popup can be displayed, or not. |
void |
popup(java.awt.event.MouseEvent event)
Shows the popup of this ActionPopup. |
void |
setController(DockController controller)
Tells this tab which controller is currently used. |
Methods inherited from class bibliothek.gui.dock.action.ActionPopup |
---|
getFactory, getPopupLocation, isMenuOpen, isSuppressable, mousePressed, mouseReleased, popup, setSuppressable |
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 |
---|
protected Dockable dockable
Constructor Detail |
---|
public DefaultStackDockComponent.Tab(Dockable dockable)
dockable
- the element on the tabMethod Detail |
---|
public Dockable getDockable()
ActionPopup
getDockable
in class ActionPopup
public void setController(DockController controller)
null
if this tab is no longer used, or when the connection to a
DockController
is lost.
controller
- the new source of information, can be null
public void popup(java.awt.event.MouseEvent event)
ActionPopup
mousePressed
or the mouseReleased
-method
popup
in class ActionPopup
event
- The MouseEvent
that triggers the popup. The event must not
consumed
protected DockActionSource getActions()
ActionPopup
getActions
in class ActionPopup
protected java.lang.Object getSource()
ActionPopup
getSource
in class ActionPopup
null
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 |