FileTabView

class FileTabView(file: File, model: TuPrologIDEModel, ideController: TuPrologIDEController, initialText: String = "") : Tab

A Tab hosting a RichTextFX CodeArea editor for a single Prolog file, as added to the IDE's file tab pane by TuPrologIDEController whenever TuPrologIDEModel.onFileLoaded fires. It keeps the model's in-memory copy of the file (see TuPrologIDEModel.setFile) in sync with the editor's text on every keystroke, applies SyntaxColoring to the editor, and forwards caret/keyboard events to ideController so the status bar can be updated.

Constructors

Link copied to clipboard
constructor(file: File, model: TuPrologIDEModel, ideController: TuPrologIDEController, initialText: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
lateinit var codeArea: CodeArea
Link copied to clipboard
var content: Node?
Link copied to clipboard
var contextMenu: ContextMenu?
Link copied to clipboard
open val cssMetaData: List<CssMetaData<out Styleable?, *>?>?
Link copied to clipboard
var file: File

The File this tab's editor content is associated with in the model; setting it also renames the tab's label.

Link copied to clipboard
var graphic: Node?
Link copied to clipboard
var id: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var onClosed: EventHandler<Event?>?
Link copied to clipboard
open var onCloseRequest: EventHandler<Event?>?
Link copied to clipboard
var onSelectionChanged: EventHandler<Event?>?
Link copied to clipboard
val properties: ObservableMap<Any?, Any?>?
Link copied to clipboard
val pseudoClassStates: ObservableSet<PseudoClass?>?
Link copied to clipboard
Link copied to clipboard
open val styleableNode: Node?
Link copied to clipboard
open val styleableParent: Styleable?
Link copied to clipboard
open val styleClass: ObservableList<String?>?
Link copied to clipboard
var tabPane: TabPane?
Link copied to clipboard
var text: String?
Link copied to clipboard
var tooltip: Tooltip?
Link copied to clipboard
open val typeSelector: String?
Link copied to clipboard
open var userData: Any?
Link copied to clipboard

The full text currently in the editor; setting it replaces the editor's content and updates the model's copy of file.

Functions

Link copied to clipboard
fun <E : Event?> addEventFilter(p0: EventType<E?>?, p1: EventHandler<in E?>?)
Link copied to clipboard
fun <E : Event?> addEventHandler(p0: EventType<E?>?, p1: EventHandler<in E?>?)
Link copied to clipboard
open fun buildEventDispatchChain(p0: EventDispatchChain?): EventDispatchChain?
Link copied to clipboard
fun closableProperty(): BooleanProperty?
Link copied to clipboard
fun contentProperty(): ObjectProperty<Node?>?
Link copied to clipboard
fun contextMenuProperty(): ObjectProperty<ContextMenu?>?
Link copied to clipboard
fun disabledProperty(): ReadOnlyBooleanProperty?
Link copied to clipboard
fun disableProperty(): BooleanProperty?
Link copied to clipboard
fun graphicProperty(): ObjectProperty<Node?>?
Link copied to clipboard
Link copied to clipboard
fun idProperty(): StringProperty?
Link copied to clipboard

Updates the SyntaxColoring's keyword set to operators and re-highlights the editor immediately.

Link copied to clipboard
fun onClosedProperty(): ObjectProperty<EventHandler<Event?>?>?
Link copied to clipboard
fun onCloseRequestProperty(): ObjectProperty<EventHandler<Event?>?>?
Link copied to clipboard
fun onKeyPressedOnCodeArea(e: KeyEvent)
Link copied to clipboard
fun onKeyTypedOnCodeArea(e: KeyEvent)
Link copied to clipboard
fun onMousePressedOnCodeArea(e: MouseEvent)
Link copied to clipboard
fun onSelectionChangedProperty(): ObjectProperty<EventHandler<Event?>?>?
Link copied to clipboard
fun onTabSelectionChanged(e: Event)
Link copied to clipboard
fun <E : Event?> removeEventFilter(p0: EventType<E?>?, p1: EventHandler<in E?>?)
Link copied to clipboard
fun <E : Event?> removeEventHandler(p0: EventType<E?>?, p1: EventHandler<in E?>?)
Link copied to clipboard
fun selectedProperty(): ReadOnlyBooleanProperty?
Link copied to clipboard
fun styleProperty(): StringProperty?
Link copied to clipboard
fun tabPaneProperty(): ReadOnlyObjectProperty<TabPane?>?
Link copied to clipboard
fun textProperty(): StringProperty?
Link copied to clipboard
fun tooltipProperty(): ObjectProperty<Tooltip?>?
Link copied to clipboard

Forces an immediate re-highlighting of the editor's current text, e.g. right after this tab is selected.