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 void
This method refreshes the display of the attendance records in the attendance table.protected void
Display the leave history by clearing existing rows from the table model, hiding specific columns, and adding new records to the table model.protected void
Initialize actions for various buttons and components in the UI.protected void
Initializes the components for the Java class.protected void
Resets 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:EmployeeViewHandler
Initializes the components for the Java class.- Overrides:
initComponents
in classEmployeeViewHandler
-
initActions
protected void initActions()Description copied from class:EmployeeViewHandler
Initialize actions for various buttons and components in the UI.- Overrides:
initActions
in classEmployeeViewHandler
-
displayAttendanceRecord
Description copied from class:EmployeeViewHandler
This 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:
displayAttendanceRecord
in classEmployeeViewHandler
- Throws:
AttendanceException
- if there is an issue with the attendance
-
displayLeaveHistory
Description copied from class:EmployeeViewHandler
Display the leave history by clearing existing rows from the table model, hiding specific columns, and adding new records to the table model.- Overrides:
displayLeaveHistory
in classEmployeeViewHandler
- Throws:
LeaveException
- if there is an issue with the leave
-
resetPanelVisibility
protected void resetPanelVisibility()Description copied from class:EmployeeViewHandler
Resets the visibility of various pages on the panel.- Overrides:
resetPanelVisibility
in classEmployeeViewHandler
-