public interface CombinedTab extends DockElementRepresentative, Tab
CombinedStackDockComponent
. Every tab represents one
Component which can be selected.Modifier and Type | Method and Description |
---|---|
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.
|
addMouseInputListener, getElement, getPopupLocation, isUsedAsTitle, removeMouseInputListener, shouldFocus, shouldTransfersFocus
getDockable, getMinimumSize, getPreferredSize
getBounds, getMaximumSize, getMinimumSize, getOverlap, getPreferredSize, getTabParent, getZOrder, isPaneVisible, setBounds, setOrientation, setPaneVisible, setZOrder
Component getComponent()
getComponent
in interface DockElementRepresentative
null
void setText(String text)
text
- the text to displayvoid setIcon(Icon icon)
icon
- an icon that should be shown, can be null
void setTooltip(String tooltip)
tooltip
- the tooltip text, can be null
void setEnabled(boolean enabled)
enabled
- whether to enable or disable this tabvoid setConfiguration(TabConfiguration configuration)
configuration
- the new configuration to useCombinedStackDockComponent.getConfiguration(bibliothek.gui.Dockable)