bibliothek.gui.dock.station.stack
Interface CombinedTab

All Superinterfaces:
DockElementRepresentative
All Known Implementing Classes:
BubbleStackDockComponent.Tab, FlatTab.FlatButton

public interface CombinedTab
extends DockElementRepresentative

A tab of a CombinedStackDockComponent. Every tab represents one Component which can be selected.

Author:
Benjamin Sigg

Method Summary
 JComponent getComponent()
          Gets a component which represents this tab.
 void setIcon(Icon icon)
          Sets the image of this tab.
 void setIndex(int index)
          Sets the location of this tab.
 void setText(String text)
          Sets the text of this tab.
 void setTooltip(String tooltip)
          Sets the tooltip of this tab.
 
Methods inherited from interface bibliothek.gui.dock.DockElementRepresentative
addMouseInputListener, getElement, getPopupLocation, isUsedAsTitle, removeMouseInputListener
 

Method Detail

getComponent

JComponent getComponent()
Gets a component which represents this tab.

Specified by:
getComponent in interface DockElementRepresentative
Returns:
the graphical representation of this tab

setText

void setText(String text)
Sets the text of this tab.

Parameters:
text - the text to display

setIcon

void setIcon(Icon icon)
Sets the image of this tab.

Parameters:
icon - an icon that should be shown, can be null

setTooltip

void setTooltip(String tooltip)
Sets the tooltip of this tab.

Parameters:
tooltip - the tooltip text, can be null

setIndex

void setIndex(int index)
Sets the location of this tab. Every tab has another location, and the location can be used to find the component for which this tab is shown.

Parameters:
index - the index of this tab