bibliothek.gui.dock.station.stack
Interface CombinedTab

All Superinterfaces:
DockElementRepresentative, Tab, TabPaneComponent
All Known Implementing Classes:
BubbleTab, EclipseTab, FlatTab

public interface CombinedTab
extends DockElementRepresentative, Tab

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

Author:
Benjamin Sigg

Method Summary
 Component getComponent()
          Gets the component which paints and represents this tab.
 void setConfiguration(TabConfiguration configuration)
          Fine tunes this tab.
 void setEnabled(boolean enabled)
          Enables or disables this tab.
 void setIcon(Icon icon)
          Sets the image 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, shouldFocus, shouldTransfersFocus
 
Methods inherited from interface bibliothek.gui.dock.station.stack.tab.Tab
getDockable, getMinimumSize, getPreferredSize
 
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

getComponent

Component getComponent()
Gets the component which paints and represents this tab.

Specified by:
getComponent in interface DockElementRepresentative
Returns:
the component, never null

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

setEnabled

void setEnabled(boolean enabled)
Enables or disables this tab. A disabled shoutl not react to any mouse input, and it should be visually distinct from enabled tabs.

Parameters:
enabled - whether to enable or disable this tab

setConfiguration

void setConfiguration(TabConfiguration configuration)
Fine tunes this tab.

Parameters:
configuration - the new configuration to use
See Also:
CombinedStackDockComponent.getConfiguration(bibliothek.gui.Dockable)