Class CampListView

java.lang.Object
app.ui.windows.Window
app.ui.camp.listview.CampListView
All Implemented Interfaces:
ICallBack
Direct Known Subclasses:
CampListViewStaff, CampListViewStudent

public class CampListView extends Window implements ICallBack
Represents a view displaying a list of camps with filtering options and functionalities. It extends the Window class and implements the ICallBack interface.
  • Field Details

  • Constructor Details

    • CampListView

      public CampListView()
      Constructs a CampListView with default dimensions and initializes various UI elements.
  • Method Details

    • CustomFilter

      protected CampList CustomFilter(CampList list)
      Customizes the filter for camps based on certain criteria.
      Parameters:
      list - The original list of camps.
      Returns:
      The filtered list of camps.
    • refreshList

      public void refreshList(boolean forceRefresh)
      Refreshes the list of camps based on applied filters.
      Parameters:
      forceRefresh - Boolean indicating whether to force a refresh.
    • messageLoop

      public void messageLoop()
      Message loop to update and manage the UI elements and interactions.
      Overrides:
      messageLoop in class Window
    • onExit

      public void onExit()
      Performs actions when the window is closed or exited.
      Overrides:
      onExit in class Window
    • onWindowFinished

      public void onWindowFinished(int chose, String choseString)
      Handles window-specific actions upon certain selections.
      Specified by:
      onWindowFinished in interface ICallBack
      Parameters:
      chose - The chosen action identifier.
      choseString - The string representation of the chosen action.