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.KanjiViewController Class Reference

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

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

Public Member Functions

 KanjiViewController ()
 Initializes a new instance of KanjiBrowserController.
 
void initialize ()
 Method called by FXML after the view is loaded.
 
void onClick_returnButton (ActionEvent actionEvent)
 Called when the return button is pressed.
 
void onClick_editNoteButton (ActionEvent actionEvent)
 Called when the edit button is pressed.
 
void onClick_cardKanjiContents (ActionEvent actionEvent)
 Called when the Kanji Card Contents hyperlink is clicked.
 
void onClick_cardHeisigKeyword5thEditionContents (ActionEvent actionEvent)
 Called when the Kanji 5th Edition Keyword hyperlink is clicked.
 
void onClick_cardHeisigKeyword6thEditionContents (ActionEvent actionEvent)
 Called when the Kanji 6th Edition Keyword hyperlink is clicked.
 

Public Attributes

Hyperlink cardHeisigKeyword6thEditionContents
 The FXML Label containing the contents of the Heisig 6th edition keyword.
 
Label cardOnReadingContents
 The FXML Label containing the Chinese (On) Reading of the Kanji character.
 
Label cardKunReadingContents
 The FXML Label containing the Japanese (Kun) Reading of the Kanji character.
 
Label cardNoteContents
 The FXML Label containing the user-entered note contents associated with the character (if any).
 
Button editNoteButton
 The FXML Button that allows the user to edit the note.
 

Private Member Functions

void enableFields ()
 Enables the lookup hyperlinks and edit note button upon the completion of a successful database query.
 
void setupHyperlinkStyling ()
 Sets up the default styling for the hyperlinks.
 

Private Attributes

Label cardIDContents
 The FXML Label containing the contents of the card ID.
 
Hyperlink cardKanjiContents
 The FXML Label containing the contents of the card's Kanji character.
 
Label cardHeisigIndex5thEditionContents
 The FXML Label containing the contents of the 5th edition Heisig index.
 
Label cardHeisigIndex6thEditionContents
 The FXML Label containing the contents of the 6th edition Heisig index.
 
Hyperlink cardHeisigKeyword5thEditionContents
 The FXML Label containing the contents of the 5th edition Heisig keyword.
 
DBConnectionPool dbConnectionPool
 The DBConnectionPool singleton instance associated with KanjiBrowserController.
 

Detailed Description

The controller that corresponds to the KanjiBrowser view.

Member Function Documentation

◆ onClick_cardHeisigKeyword5thEditionContents()

void net.samuelcmace.utk.gui.controller.KanjiViewController.onClick_cardHeisigKeyword5thEditionContents ( ActionEvent  actionEvent)

Called when the Kanji 5th Edition Keyword hyperlink is clicked.

Opens a new browser window to the Merriam-Webster's Dictionary with the keyword.

Parameters
actionEventThe default arguments passed to the event.

◆ onClick_cardHeisigKeyword6thEditionContents()

void net.samuelcmace.utk.gui.controller.KanjiViewController.onClick_cardHeisigKeyword6thEditionContents ( ActionEvent  actionEvent)

Called when the Kanji 6th Edition Keyword hyperlink is clicked.

Opens a new browser window to the Merriam-Webster's Dictionary with the keyword.

Parameters
actionEventThe default arguments passed to the event.

◆ onClick_cardKanjiContents()

void net.samuelcmace.utk.gui.controller.KanjiViewController.onClick_cardKanjiContents ( ActionEvent  actionEvent)

Called when the Kanji Card Contents hyperlink is clicked.

Opens a new browser window to the JapanDict Kanji Lookup tool.

Parameters
actionEventThe default arguments passed to the event.

◆ onClick_editNoteButton()

void net.samuelcmace.utk.gui.controller.KanjiViewController.onClick_editNoteButton ( ActionEvent  actionEvent)

Called when the edit button is pressed.

Parameters
actionEventThe default arguments passed to the event.

◆ onClick_returnButton()

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

Called when the return button is pressed.

Parameters
actionEventThe default arguments passed to the event.

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