public interface CombinedTab extends DockElementRepresentative, Tab
CombinedStackDockComponent
. Every tab represents one
Component which can be selected.Modifier and Type | Method and Description |
---|---|
java.awt.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(javax.swing.Icon icon)
Sets the image of this tab.
|
void |
setText(java.lang.String text)
Sets the text of this tab.
|
void |
setTooltip(java.lang.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
java.awt.Component getComponent()
getComponent
in interface DockElementRepresentative
null
void setText(java.lang.String text)
text
- the text to displayvoid setIcon(javax.swing.Icon icon)
icon
- an icon that should be shown, can be null
void setTooltip(java.lang.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)