KetraTerm
API · DevelopmentAll versions

hyperlink

fun hyperlink(lineIndex: Int, startOffset: Int, endOffset: Int, action: SwingHyperlinkAction, validationStartOffset: Int = 0, validationEndOffset: Int = Int.MAX_VALUE, uri: String? = null, presentation: SwingHyperlinkPresentation = SwingHyperlinkPresentation.DEFAULT, activation: SwingHyperlinkActivation = SwingHyperlinkActivation.MODIFIER): SwingHyperlink

Builds a single-line occurrence with a conservative context dependency. Explicit validation bounds must contain the highlight and its delimiters. Ordered defaults depend on the whole supplied batch; specify a narrower dependency only when the action is genuinely independent of surrounding text. The retained owner validates source/validation offsets against its snapshots.