|
||||||||||
| 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.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 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. |
| 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 tab| Method Detail |
|---|
public Dockable getDockable()
ActionPopup
getDockable 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-method
popup in class ActionPopupevent - The MouseEvent that triggers the popup. The event must not
consumedprotected DockActionSource getActions()
ActionPopup
getActions in class ActionPopupprotected Object getSource()
ActionPopup
getSource in class ActionPopupnullprotected boolean isEnabled()
ActionPopup
isEnabled in class ActionPopuptrue if a popup can be displayed, false
otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||