Skip to content

Commit

Permalink
profile for user and otganization fxml created, loginSite fxml create…
Browse files Browse the repository at this point in the history
…d, aboutPage fxml updated
  • Loading branch information
meenakshijay1005-netizen committed Apr 9, 2026
1 parent 12f46bc commit e99953a
Show file tree
Hide file tree
Showing 18 changed files with 2,913 additions and 1,207 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@

/**
* This controller represents the available organization page, where the user can search for a
* charity and choose to donate to it. It also has a button to return to the front page.
* The user can search for a charity by typing in the search field,
* and the charities that match the search query will be displayed.
* The user can click on a charity to see more details about it,
* or click on the featured charity to see more details about it.
* The user can also switch to the charity page or donation page for the selected charity.
* charity and choose to donate to it. It also has a button to return to the front page. The user
* can search for a charity by typing in the search field, and the charities that match the search
* query will be displayed. The user can click on a charity to see more details about it, or click
* on the featured charity to see more details about it. The user can also switch to the charity
* page or donation page for the selected charity.
*/
public class AvailableOrganizationController {

Expand All @@ -31,12 +30,11 @@ public class AvailableOrganizationController {
private List<Charity> allCharities;

/**
* This method is used to initialize the available organization page.
* It retrieves all charities from the database and sets up a listener on the search field
* to filter the charities based on the user's input.
* It also clears the cards container to prepare for displaying the filtered charities.
* The method is called automatically when the page is loaded,
* and it sets up the initial state of the page.
* This method is used to initialize the available organization page. It retrieves all charities
* from the database and sets up a listener on the search field to filter the charities based on
* the user's input. It also clears the cards container to prepare for displaying the filtered
* charities. The method is called automatically when the page is loaded, and it sets up the
* initial state of the page.
*/
@FXML
public void initialize() {
Expand All @@ -54,6 +52,7 @@ public void initialize() {

/**
* This method filters the charities based on the user's input in the search field.
*
* @param query is the user's input in the search field, which is used to filter the charities.
* @return a list of charities that match the search query.
*/
Expand All @@ -79,6 +78,7 @@ private List<Charity> filterCharities(String query) {

/**
* This method displays the charities in the cards container.
*
* @param charities is a list of charities to be displayed.
*/
private void displayCharities(List<Charity> charities) {
Expand All @@ -101,6 +101,7 @@ private void displayCharities(List<Charity> charities) {

/**
* This method is used to set the initial search query in the search field.
*
* @param query is the initial search query.
*/
@FXML
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public void switchToDonationPage(ActionEvent event) {

/**
* This method is used to search for charities based on the input in the search field.
*
* @param event is the event that triggered the search.
*/
@FXML
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ private void showAlert(Alert.AlertType type, String title, String message) {

/**
* This method is used to handle the search action when the user clicks the search button.
*
* @param event is the event that triggered the search.
*/
@FXML
Expand Down
Loading

0 comments on commit e99953a

Please sign in to comment.