FileSystemView
classin packageklyn.gui.terminal
public class FileSystemView extends ScrollView
└ Widget
└ FileSystemView

File-system panel showing current folder entries.

When attached through Terminal.addDockedPane(...), it is rendered as an overlay above the active page instead of resizing the page underneath.

Fields
Modifier and Type Member Description
public currentPath
currentPath as String = "."
Current directory displayed in this panel.
public entries
entries as ArrayList<String> = []
Sorted names for current directory.
public scrollIndex
scrollIndex as Long = 0
No summary.
public selectedIndex
selectedIndex as Long = 0
Selected row index in entries.
Inherited Attributes
attributeInherited Attributes from ScrollView: scrollOffset
attributeInherited Attributes from Widget: lastRenderAnsi, lastRenderHeight, lastRenderPlain, lastRenderWidth, layout, visible
Inherited Properties
propertyInherited Properties from ScrollView: hasSelection
propertyInherited Properties from Widget: focusable, focused, lastRenderFrame, position, size
propertyInherited Properties from Object: type
Inherited Signals
signalInherited Signals from ScrollView: text
Constructors
Modifier and Type Member Description
public FileSystemView
FileSystemView(path as String = ".")
No summary.
Methods
Modifier and Type Member Description
public consumePendingOpen
consumePendingOpen() as EditorView
Consumes a pending open request produced by a double-click.
public goParent
goParent() as Void
Moves to parent folder when possible.
public override handleMouseEvent
handleMouseEvent(mouse as MouseEvent, localX as Int, localY as Int, viewWidth as Int, viewHeight as Int) as Boolean
Handles mouse selection and double-click opening inside this file-system view.
public override handleVerticalScrollbarMouse
handleVerticalScrollbarMouse(mouse as MouseEvent, localX as Int, localY as Int, viewWidth as Int, viewHeight as Int, totalLines as Long, topInset as Int = 0, bottomInset as Int = 0, rightInset as Int = 0) as Boolean
No summary.
public openSelected
openSelected() as EditorView
Opens selected entry.
public pageDown
pageDown() as Void
No summary.
public pageUp
pageUp() as Void
No summary.
public override paintToFrame
paintToFrame(frame as TerminalFrame, row as Int, col as Int, panelWidth as Int, panelHeight as Int) as Boolean
No summary.
public override refresh
refresh() as Void
Refreshes displayed directory entries.
public scrollBy
scrollBy(delta as Int, viewHeight as Int) as Boolean
No summary.
public override scrollToTrackRow
scrollToTrackRow(trackRow as Int, totalLines as Long, viewHeight as Int, topInset as Int = 0, bottomInset as Int = 0) as Boolean
No summary.
public override scrollbarThumbSize
scrollbarThumbSize(totalLines as Long, viewHeight as Int, topInset as Int = 0, bottomInset as Int = 0) as Int
No summary.
public override scrollbarThumbTop
scrollbarThumbTop(totalLines as Long, viewHeight as Int, topInset as Int = 0, bottomInset as Int = 0) as Int
No summary.
public selectAtPanelPosition
selectAtPanelPosition(panelRow as Int, panelCol as Int, panelWidth as Int, panelHeight as Int) as Boolean
Selects an entry from a click inside the rendered panel coordinates.
public selectNext
selectNext() as Void
Selects the next entry.
public selectPrevious
selectPrevious() as Void
Selects the previous entry.
Inherited Methods
methodInherited Methods from ScrollView: appendLine, clampScrollOffsetFor, clear, contentWidth, copySelectionToClipboard, handleVerticalScrollbarMouse, hasVerticalScrollbar, maxScrollOffsetFor, paintToFrame, scrollByAmount, scrollToTrackRow, scrollbarColumn, scrollbarThumbSize, scrollbarThumbTop, selectedText, terminalPromptVisible, toString, visibleRowCount
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