TabWidget
classin packageklyn.gui.windows
public class TabWidget extends Container:
tabs = TabWidget()
tabs.addTab("Welcome", Label("Ready"), false)
tabs.addTab("Query.sql", editor, true)
Properties
| Modifier and Type |
Member |
Description |
| public readonly property |
activeIndex |
Index of the currently visible tab. |
| public property |
closeAreaWidthcloseAreaWidth as Int = 40 |
Area reserved at the right of a closeable tab for its close button. |
| public property |
tabHeight |
Tab header height in pixels. |
Properties inherited from Widget: accentColor,
backgroundColor,
borderColor,
bottom,
canFocus,
cornerRadius,
font,
foregroundColor,
hasFocus,
height,
isEnabled,
isHovered,
isManaged,
isTabStop,
isVisible,
layoutParams,
margin,
maxHeight,
maxWidth,
minHeight,
minWidth,
parent,
preferredHeight,
preferredWidth,
right,
sizePolicy,
styleClass,
width,
window,
x,
y
Constructors
| Modifier and Type |
Member |
Description |
| public |
TabWidget |
Creates an empty tab widget. |
Methods
| Modifier and Type |
Member |
Description |
| public |
addTab |
Adds a tab. |
| public override |
applyLayoutapplyLayout(recursive as Boolean = true) as Void: |
No summary. |
| public |
closeTab |
Closes a closeable tab by index. |
| public |
findTab |
Returns the index of a tab by title, or -1 when absent. |
| public override |
paint |
No summary. |
| public |
select |
Selects a tab by index. |
| public override |
setBoundssetBounds(x as Int, y as Int, width as Int, height as Int) as Void: |
No summary. |
Methods inherited from Widget: blur,
containsPoint,
emitKeyPressed,
emitKeyReleased,
emitMouseMoved,
emitMousePressed,
emitMouseReleased,
emitMouseWheel,
handleTabKey,
notifyPaintRequested,
paint,
paintOverlay,
repaint,
requestFocus,
resolvePreferredHeight,
resolvePreferredWidth,
resolvedFont,
setBounds