Package app.ui.camp.listview
Class CampListView
java.lang.Object
app.ui.windows.Window
app.ui.camp.listview.CampListView
- All Implemented Interfaces:
ICallBack
- Direct Known Subclasses:
CampListViewStaff,CampListViewStudent
Represents a view displaying a list of camps with filtering options and functionalities.
It extends the Window class and implements the ICallBack interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WidgetButtonprotected CampListprotected WidgetLabelprotected WidgetToggleprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetTextBoxprotected WidgetToggleprotected WidgetTextBoxprotected WidgetToggleprotected WidgetTextBoxprotected WidgetToggleprotected intprotected WidgetLabelprotected WidgetLabelprotected WidgetLabelprotected WidgetLabelprotected Stringprotected intprotected WidgetPageSelectionFields inherited from class app.ui.windows.Window
backColor, buffer, overlays, printColor, switchToWindow, widgets -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a CampListView with default dimensions and initializes various UI elements. -
Method Summary
Modifier and TypeMethodDescriptionprotected CampListCustomFilter(CampList list) Customizes the filter for camps based on certain criteria.voidMessage loop to update and manage the UI elements and interactions.voidonExit()Performs actions when the window is closed or exited.voidonWindowFinished(int chose, String choseString) Handles window-specific actions upon certain selections.voidrefreshList(boolean forceRefresh) Refreshes the list of camps based on applied filters.Methods inherited from class app.ui.windows.Window
addOverlay, addWidget, addWidgetAfter, clearArea, clearOuterArea, draw, getLenX, getLenY, getSwitchToWindow, getWidgetIndex, getX, getY, keyStroke, keyStrokeHelper, messageLoopHelper, removeWidget, selectNext, selectPrev, setClear, setPointer, setY, switchFrom
-
Field Details
-
filterLabel1
-
filter1Start
-
filter1Comment
-
filter1End
-
filter1Enable
-
filterLabel2
-
filter2
-
filter2Enable
-
filterLabel3
-
filter3
-
filter3Enable
-
filterLabel4
-
filter4
-
filter4Enable
-
widgetPageSelection
-
filter4Index
protected int filter4Index -
displayCamps
-
backButton
-
campListForExport
-
lastFilter
-
lastSize
protected int lastSize
-
-
Constructor Details
-
CampListView
public CampListView()Constructs a CampListView with default dimensions and initializes various UI elements.
-
-
Method Details
-
CustomFilter
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:
messageLoopin classWindow
-
onExit
public void onExit()Performs actions when the window is closed or exited. -
onWindowFinished
Handles window-specific actions upon certain selections.- Specified by:
onWindowFinishedin interfaceICallBack- Parameters:
chose- The chosen action identifier.choseString- The string representation of the chosen action.
-