public class DefaultStackDockComponent.Tab extends ActionPopup
StackDockComponent.| Modifier and Type | Field and Description |
|---|---|
protected Dockable |
dockable
the element on the tab
|
| Constructor and Description |
|---|
Tab(Dockable dockable)
Creates a new Tab
|
| Modifier and Type | Method and Description |
|---|---|
protected DockActionSource |
getActions()
Gets the actions, that will be displayed
|
Dockable |
getDockable()
Gets the Dockable to which the actions are linked.
|
protected 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(MouseEvent event)
Shows the popup of this ActionPopup.
|
void |
setController(DockController controller)
Tells this tab which controller is currently used.
|
getFactory, getPopupLocation, isMenuOpen, isSuppressable, mousePressed, mouseReleased, popup, setSuppressablemouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseClicked, mouseEntered, mouseExitedmouseDragged, mouseMovedprotected Dockable dockable
public Tab(Dockable dockable)
dockable - the element on the tabpublic Dockable getDockable()
ActionPopupgetDockable in class ActionPopuppublic 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 nullpublic void popup(MouseEvent event)
ActionPopupmousePressed
or the mouseReleased-methodpopup in class ActionPopupevent - The MouseEvent that triggers the popup. The event must not
consumedprotected DockActionSource getActions()
ActionPopupgetActions in class ActionPopupprotected Object getSource()
ActionPopupgetSource in class ActionPopupnullprotected boolean isEnabled()
ActionPopupisEnabled in class ActionPopuptrue if a popup can be displayed, false
otherwise.Copyright © 2017 Docking Frames. All rights reserved.