bibliothek.gui.dock.station.stack.tab
Interface TabMenu

All Superinterfaces:
TabPaneComponent
All Known Subinterfaces:
CombinedMenu
All Known Implementing Classes:
AbstractCombinedMenu, BubbleTabMenu, ButtonCombinedMenu, EclipseMenu, FlatMenu

public interface TabMenu
extends TabPaneComponent

A TabMenu is a list of one or several Dockables, the user can open the menu and select one of them.

Author:
Benjamin Sigg

Method Summary
 void addTabMenuListener(TabMenuListener listener)
          Adds a new listener to this menu.
 Dockable getDockable(int index)
          Gets the index'th Dockable of this menu.
 int getDockableCount()
          Gets the number of Dockables shown on this menu.
 Dockable[] getDockables()
          Gets all the Dockables that are shown in this menu.
 void removeTabMenuListener(TabMenuListener listener)
          Removes listener from this menu.
 
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.TabPaneComponent
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, getZOrder, isPaneVisible, setBounds, setOrientation, setPaneVisible, setZOrder
 

Method Detail

getDockables

Dockable[] getDockables()
Gets all the Dockables that are shown in this menu.

Returns:
the list of elements in this menu

getDockable

Dockable getDockable(int index)
Gets the index'th Dockable of this menu.

Parameters:
index - the index of an item
Returns:
the item

getDockableCount

int getDockableCount()
Gets the number of Dockables shown on this menu.

Returns:
the number of items

addTabMenuListener

void addTabMenuListener(TabMenuListener listener)
Adds a new listener to this menu.

Parameters:
listener - the new listener, not null

removeTabMenuListener

void removeTabMenuListener(TabMenuListener listener)
Removes listener from this menu.

Parameters:
listener - the listener to remove