bibliothek.gui.dock.station.stack
Interface CombinedTab

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

public interface CombinedTab

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.
 

Method Detail

getComponent

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

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

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