SwingTerminalSearchBar

class SwingTerminalSearchBar @JvmOverloads constructor(terminal: SwingTerminal, componentFactory: SwingTerminalSearchBarComponentFactory = SwingTerminalSearchBarComponentFactory.DEFAULT)

Optional host-owned search bar for a SwingTerminal.

The bar owns visible search chrome only. Search scanning, highlight projection, and result navigation stay in SwingTerminal. Hosts decide whether to instantiate this class, where to mount component, and which shortcut opens it.

Parameters

terminal

terminal whose headless search API backs this bar.

componentFactory

factory for host-specific Swing controls.

Constructors

Link copied to clipboard
constructor(terminal: SwingTerminal, componentFactory: SwingTerminalSearchBarComponentFactory = SwingTerminalSearchBarComponentFactory.DEFAULT)

Properties

Link copied to clipboard

Swing component that hosts should mount as floating pane chrome.

Functions

Link copied to clipboard
fun close()

Closes the search bar and clears active terminal search highlights.

Link copied to clipboard

Returns whether the search bar is visible.

Link copied to clipboard
fun open()

Opens the search bar and focuses the query field.

Link copied to clipboard

Refreshes host colors from the terminal component.