java.lang.Object
user.actions.EmployeeViewHandler
user.actions.HRAdminViewHandler
Handles the actions and UI interactions for the HR Admin role.
-
Field Summary
Fields inherited from class user.actions.EmployeeViewHandler
attendanceBTN, attendancePage, dateRenderer, dynamicComponents, employee, isAttendanceColumnsRemoved, isLeaveHistoryColumnsRemoved, leaveBTN, leavePage, myProfileBTN, myProfilePage, payslipBTN, payslipPage -
Constructor Summary
ConstructorsConstructorDescriptionHRAdminViewHandler(HRAdmin hrAdmin, HRAdminUI hrAdminUI) Constructs an HRAdminViewHandler instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidThis method refreshes the display of the attendance records in the attendance table.protected voidDisplay the leave history by clearing existing rows from the table model, hiding specific columns, and adding new records to the table model.protected voidInitialize actions for various buttons and components in the UI.protected voidInitializes the components for the Java class.protected voidResets the visibility of various pages on the panel.Methods inherited from class user.actions.EmployeeViewHandler
displayPayslip, showLeavePage, showMyProfilePage
-
Constructor Details
-
HRAdminViewHandler
Constructs an HRAdminViewHandler instance.- Parameters:
hrAdmin- The HR Admin object.hrAdminUI- The HRAdminUI instance.
-
-
Method Details
-
initComponents
protected void initComponents()Description copied from class:EmployeeViewHandlerInitializes the components for the Java class.- Overrides:
initComponentsin classEmployeeViewHandler
-
initActions
protected void initActions()Description copied from class:EmployeeViewHandlerInitialize actions for various buttons and components in the UI.- Overrides:
initActionsin classEmployeeViewHandler
-
displayAttendanceRecord
Description copied from class:EmployeeViewHandlerThis method refreshes the display of the attendance records in the attendance table. It clears the existing rows from the table model, hides specific columns from the table, and then adds new rows to the table based on the attendanceRecords data.- Overrides:
displayAttendanceRecordin classEmployeeViewHandler- Throws:
AttendanceException- if there is an issue with the attendance
-
displayLeaveHistory
Description copied from class:EmployeeViewHandlerDisplay the leave history by clearing existing rows from the table model, hiding specific columns, and adding new records to the table model.- Overrides:
displayLeaveHistoryin classEmployeeViewHandler- Throws:
LeaveException- if there is an issue with the leave
-
resetPanelVisibility
protected void resetPanelVisibility()Description copied from class:EmployeeViewHandlerResets the visibility of various pages on the panel.- Overrides:
resetPanelVisibilityin classEmployeeViewHandler
-