MenuBar
classin packageklyn.gui.terminal
public class MenuBar extends Widget
└ Widget
└ MenuBar

Function-key menu bar.

This widget owns both menu metadata and menu rendering so the terminal does not have to duplicate ordering, compact-title selection and hit-testing.

Fields
Modifier and Type Member Description
public activeKey
activeKey as String = ""
No summary.
Inherited Attributes
attributeInherited Attributes from Widget: lastRenderAnsi, lastRenderHeight, lastRenderPlain, lastRenderWidth, layout, visible
Inherited Properties
propertyInherited Properties from Widget: focusable, focused, lastRenderFrame, position, size
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public MenuBar No summary.
Methods
Modifier and Type Member Description
public compactTitleOf
compactTitleOf(key as Object) as String
No summary.
public hasKey
hasKey(key as Object) as Boolean
No summary.
public keyAt
keyAt(col as Int, width as Int) as String
No summary.
public keys
keys() as ArrayList<String>
No summary.
public override paintToFrame
paintToFrame(frame as TerminalFrame, row as Int, col as Int, width as Int, height as Int) as Boolean
No summary.
public setMenu
setMenu(key as Object, title as String, compactTitle as String = "", action as () -> Void = null) as Void
Adds or updates a menu entry rendered from the left edge.
public setTrailingMenu
setTrailingMenu(key as Object, title as String, compactTitle as String = "", action as () -> Void = null) as Void
Adds or updates the menu entry anchored to the right edge.
public titleOf
titleOf(key as Object) as String
No summary.
public trigger
trigger(key as Object) as Boolean
Invokes the action registered for a menu shortcut.
Inherited Methods
methodInherited Methods from Widget: add, baseAnsiStyle, captureRenderFrame, children, clearChildren, configureCursor, focusNext, handleEvent, handleMouseEvent, hasActiveTextInput, idle, paint, paintToFrame, performLayout, refresh, renderAnsiSnapshot, renderPlainSnapshot, scrollbarThumbGlyph, scrollbarTrackGlyph, terminalPromptVisible
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml