Understanding the Kanji 0.1.5
A tool for understanding the meaning behind the Japanese Kanji characters.
Loading...
Searching...
No Matches
net.samuelcmace.utk.gui.controller.KanjiEditorController Class Reference

The controller that corresponds to the KanjiEditor view. More...

Collaboration diagram for net.samuelcmace.utk.gui.controller.KanjiEditorController:
Collaboration graph

Public Member Functions

 KanjiEditorController ()
 Initializes a new instance of KanjiEditorController.
 
void initialize ()
 Method called by the FXML Loader when the view is loaded.
 
void onClick_returnButton (ActionEvent actionEvent)
 Called when the return button is pressed.
 
void onClick_resetButton (ActionEvent actionEvent)
 Called when the reset button is pressed.
 
void onClick_saveButton (ActionEvent actionEvent)
 Called when the save button is pressed.
 

Private Member Functions

void writeContentsToDisk () throws SQLException
 Internal method to write contents to the hard disk database.
 
void loadContentsFromDisk () throws SQLException
 Internal method to read contents from the hard disk database.
 

Private Attributes

String originalNoteContents
 The note contents at the time of the last save.
 
DBConnectionPool dbConnectionPool
 Singleton instance of dbConnectionPool associated with the KanjiEditorController object.
 
TextArea noteEditor
 FXML GUI object containing the text that the user is entering.
 

Detailed Description

The controller that corresponds to the KanjiEditor view.

Member Function Documentation

◆ onClick_resetButton()

void net.samuelcmace.utk.gui.controller.KanjiEditorController.onClick_resetButton ( ActionEvent  actionEvent)

Called when the reset button is pressed.

Parameters
actionEventThe default arguments passed to the event.

◆ onClick_returnButton()

void net.samuelcmace.utk.gui.controller.KanjiEditorController.onClick_returnButton ( ActionEvent  actionEvent)

Called when the return button is pressed.

Parameters
actionEventThe default arguments passed to the event.

◆ onClick_saveButton()

void net.samuelcmace.utk.gui.controller.KanjiEditorController.onClick_saveButton ( ActionEvent  actionEvent)

Called when the save button is pressed.

Parameters
actionEventThe default arguments passed to the event.

The documentation for this class was generated from the following file: