Skip to main content

Class JtvDirEntry

public class JtvDirEntry

A data object representing a single entry in the directory tree list.

JtvDirEntry pairs a formatted display string (with indentation and prefix characters that visualise the tree structure) with the absolute path of the directory it represents. Instances are created internally by JtvDirListBox and passed as event payloads in cmChangeDir command events.

org.viktor44.jtvision.dialogs.JtvDirEntry

Summary​

Constructors​

VisibilitySignature
publicJtvDirEntry(String txt, String dir)

Fields​

ModifiersField nameType
private finaldisplayTextString
private finaldirectoryString

Methods​

ModifiersMethod signatureReturn type
publicgetDisplayText()String
publicgetDirectory()String

Constructors​

JtvDirEntry(String txt, String dir)​

Creates a directory entry with the given display text and path.

Parameters

  • txt - the formatted display string (tree prefix + directory name)
  • dir - the absolute directory path

Fields​

String displayText​

The formatted text shown in the directory list (includes tree-drawing prefix characters).

String directory​

The absolute path of the directory this entry represents.

Methods​

getDisplayText()​

The formatted text shown in the directory list (includes tree-drawing prefix characters).

getDirectory()​

The absolute path of the directory this entry represents.