Skip to content

AboutSectionController Class

Natalie L edited this page Dec 5, 2024 · 2 revisions

The AboutSectionController class is part of the controllers package (package org.example.globalgoodsindex.controllers) .

It dynamically adds sections to the "About" page, including the description, acknowledgments, developers, feedback links, and footer. It utilizes various JavaFX components and layouts for organizing and styling the content.

FXML

JavaFX Components Used:

VBox

  • Used to lay out sections vertically. Each section (description, acknowledgment, developers, etc.) is added to a VBox container.

TextFlow

  • Used for displaying and styling text, allowing for mixed text styles within a single block. For example, the description text with a styled part (italicized app name).

Label

  • Used for displaying textual content such as section titles and descriptions. It is used for titles, content, and footer labels. It also applies custom CSS classes for styling.

Text

  • Used within TextFlow to display plain text. For example, it displays the content text for acknowledgment and footer sections.

Hyperlink

  • Used to create clickable links, for example, linking to the GitHub profiles of developers or external URLs like feedback surveys.

HBox

  • Used for laying out the developer entries horizontally. It aligns the developer names with their corresponding GitHub links and icons.

ImageView

  • Displays images such as the GitHub logo for developer entries. It is used in conjunction with Hyperlink to create developer link entries.

Pos

  • Used to set the alignment of components, e.g., aligning content or developer names centrally in an HBox.

TextAlignment

  • Used to set the alignment of text in a TextFlow, such as centering text in the feedback section.

MenuBarController.openWebsite()

  • A method used to open external links (like GitHub or survey URLs) when a Hyperlink is clicked.

Clone this wiki locally