|
||||||||||
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
protected 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 | |
---|---|
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 |
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 |
---|
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(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 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 |