Class JtvFileInfoPane
public class JtvFileInfoPane
extends JtvView
An information pane that shows details about the focused file.
TFileInfoPane is displayed at the bottom of a JtvFileDialog. It renders two rows of text:
- The current directory path combined with the active wildcard filter.
- The focused file's name, size (or
<DIR>for directories), and last-modified date/time.
The pane updates automatically when a cmFileFocused broadcast arrives
from the JtvFileList.
Colour palette
The single-entry palette cpInfoPane maps to:
- Info pane text colour.
org.viktor44.jtvision.dialogs.JtvFileInfoPane
Summary
Constructors
| Visibility | Signature |
|---|---|
| public | JtvFileInfoPane(JtvRect bounds) |
Fields
| Modifiers | Field name | Type |
|---|---|---|
| private static final | cpInfoPane | org.viktor44.jtvision.core.JtvPalette |
| private static final | DATE_FMT | java.text.SimpleDateFormat |
| private | fileRecord | org.viktor44.jtvision.dialogs.JtvFileRecord |
Methods
| Modifiers | Method signature | Return type |
|---|---|---|
| public | draw() | void |
| public | getPalette() | org.viktor44.jtvision.core.JtvPalette |
| public | handleEvent(JtvEvent event) | void |
Constructors
JtvFileInfoPane(JtvRect bounds)
Creates a file-info pane with the given bounds.
Adds evBroadcast to the event mask so it receives cmFileFocused
broadcasts.
Parameters
bounds- the bounding rectangle
Fields
org.viktor44.jtvision.core.JtvPalette cpInfoPane
Single-entry colour palette:
0x1E— info pane text colour.
java.text.SimpleDateFormat DATE_FMT
Date formatter used in row 2 for the last-modified timestamp.
org.viktor44.jtvision.dialogs.JtvFileRecord fileRecord
The most recently focused file record, used to populate row 2 of the pane.
Methods
draw()
Overrides:
draw() in org.viktor44.jtvision.views.JtvView
Draws the two-row information display:
- Row 0 — the directory + wildcard path from the owning JtvFileDialog.
- Row 1 — the focused file's name, size, and date.
getPalette()
Overrides:
getPalette() in org.viktor44.jtvision.views.JtvView
Returns the default color palette cpInfoPane.
Returns
the info pane's color palette
handleEvent(JtvEvent event)
Overrides:
handleEvent(JtvEvent event) in org.viktor44.jtvision.views.JtvView
Updates the displayed file information when a cmFileFocused broadcast
carries a JtvFileRecord.
Parameters
event- the incoming event