KetraTerm
API · DevelopmentAll versions

SwingHyperlinkAction

fun interface SwingHyperlinkAction

Host-owned navigation and optional hover behavior for a discovered hyperlink.

Actions belong to retained occurrences independently of the viewport. Swing UI invokes activation and hover callbacks on the EDT, never during painting. open follows the occurrence's SwingHyperlinkActivation policy or an explicit context-menu request and may navigate through an IDE, browser, or file opener.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun mouseEntered(component: JComponent, x: Int, y: Int, width: Int, height: Int)

Optional provider hover callback. Bounds are component-local; invoked on entry, never in paint.

Link copied to clipboard
open fun mouseExited()

Balances an entry when the pointer leaves, the occurrence changes, or the binding closes.

Link copied to clipboard
abstract fun open(): Boolean

Opens the hyperlink target.

open fun open(event: MouseEvent): Boolean

Opens from a captured gesture, preserving a host navigation popup's anchor.