-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started with Jetson for developers
public
class
extends JFrame
A bundle of Jetson utilities in the form of a file manager.
public
static
File
public
static
File
public
static
File
public
static
File
public
static
final
JetRL
public
static
final
String[]
public
static
final
String
public
static
final
boolean
public
static
final
boolean
public
static
final
boolean
private
int
private
final
JPanel
private
final
JLabel
private
final
JLabel
private
final
inputField
private
final
JetsonList
private
JPanel
private
File
private
File
private
File
private
final
Font
private
final
Font
public
Creates a new Jetson() GUI with no commands initialized
public
static
void
Returns a new Jetson() with all commands initialized
public
void
Lists inputted files in listPanel
public
void
Refreshes listPanel
public
void
Wipes listPanel of any listings
public
void
Wipes Jetson() of all components
public
boolean
Updates listPanel with new inputted directory files
public
void
As the name implies, it clears inputField
public
void
Refreshes listPanel
public
void
Deselects all selected listings inside listPanel
public
void
Fully updates title of Jetson() everywhere with inputted string
public
void
Refreshes titleLabel inside titleBar
public
void
Updates custom Jetson scrollbar
public
void
Closes Jetson() using the default close operator
public
JPanel
Returns titleBar
public
JLabel
Returns titleLabel
public
JLabel
Returns suffix for titleLabel (the label that shows your username or the selected file name)
public
File
Returns selectedFile
Returns parent directory of current directory
public
void
Goes one directory up in listPanel
public
static
void
Verifies and checks if .jetson and all verified .jetson files exist. If any non-verified files are present, they are automatically deleted
public
static
File
Verifies all .jetson files then returns .jetson
public
static
File
Returns the Resource folder inside .jetson directory
public
static
File
Verifies all .jetson files then returns Temp.txt inside .jetson
public
static
File
Verifies all .jetson files then returns Bloat.txt inside .jetson
public
static
File
Verifies all .jetson files then returns the Dummy directory (the directory where all directory duplicates are stored) inside .jetson
public
JPanel
Returns listPanel
public
void
Sets listPanel to inputted component
public
JScrollPane
Returns listScrollPane (containing listPanel)
public
JTextField
Returns inputField
public
void
Sets selectedFile to inputted file
public
void
Sets currentDirectory to inputted file
Corrupts inputted file, if directory goes through it and corrupts all files in it all child directories
Clears listPanel
Goes one directory up
Refreshes listPanel
Opens selected file or folder externally, should be platform independent
Reads selected file and writes its contents to Temp.txt in .jetson
Deletes selected file or folder
Corrupts selected file or folder
Bloats selected file or folder. If selected is a folder it has to have some kind of contents for it to work
Creates a dummy version of the selected folder and stores it in the Dummy directory in .jetson
Minimizes Jetson
Verifies .jetson directroy
Exits out of Jetson
public
abstract
class
public
File
public
public
File
Returns RESOURCE_FOLDER
public
File
Returns the file going by the inputted fileName in RESOURCE_FOLDER
public
class
extends ResourceLoader
public static Color
public static Color
public static Color
public static Color
public static Color
public static Color
public static Color
public static Color
public static Color
public
Does super(resourceFolder)
public
Font
throws FontFormatException, IOException
Registers inputted font file in the Local Graphics Environment and returns the registered version
public
Font
Registeres and returns a terminal font depending on the system, just for aesthetics
public
Font
Returns createTerminalFont(12)
public
Font
Returns JetBrainsMono font if on Windows; createTerminalFont() otherwise
public
Font
Returns createMonoFont(12)
Returns an icon from RESOURCE_FOLDER with the inputted iconName and all other parameters
public
class
Reads and returns contents of inputted file
public
class
public
static
boolean
Creates a dummy version of inputted dir and stores it as the file sandbox. Returns true if successful; false otherwise
public
class
public
static
boolean
System-independently views inputted file externally. Returns true, if successful; false otherwise
public
class
public
static
boolean
Writes data to file. If takeNewLineSyntax is true: it will properly use \n for new lines; will ignore it otherwise. Returns true if it successfully wrote to the inputted file; false otherwise
Returns write(file, data, false)
public
class
public
static
boolean
Does a sophisticated deletion of any directory or file inputted. Returns true, if successful; false otherwise