Package ui.payroll

Class PayrollReportPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PayrollReportPanel extends JPanel
Represents a panel for displaying payroll reports. Users can generate reports based on different periods and search for specific data. The panel includes a table to display payroll information such as employee ID, full name, position, department, gross income, deductions, and net pay.

Available methods: - getPeriodType() Returns the combo box for selecting the period type. - getGenerateBTN() Returns the button for generating the report. - getPayrollReportTable() Returns the table displaying the payroll report. - getSearchBTN() Returns the button for searching within the report. - getSearchField() Returns the text field for entering search queries. - getPayrollReportTableModel() Returns the table model for the payroll report. - getReportTableSorter() Returns the sorter for the payroll report table. - getPayrollReportTableScroll() Returns the scroll pane containing the payroll report table. - setDataTableColumnWidth() Sets the preferred column width for the table.

See Also:
  • Constructor Details

    • PayrollReportPanel

      public PayrollReportPanel()
      Creates new form payrollReportPanel
  • Method Details

    • getPeriodType

      public JComboBox<String> getPeriodType()
      Retrieves the period type combo box.
      Returns:
      The period type combo box component.
    • getGenerateBTN

      public JButton getGenerateBTN()
      Retrieves the button for generating the report.
      Returns:
      The generate button component.
    • getPayrollReportTable

      public JTable getPayrollReportTable()
      Retrieves the table displaying payroll reports.
      Returns:
      The payroll report table component.
    • getSearchBTN

      public JButton getSearchBTN()
      Retrieves the button for searching.
      Returns:
      The search button component.
    • getSearchField

      public JTextField getSearchField()
      Retrieves the text field for search queries.
      Returns:
      The search field component.
    • getPayrollReportTableModel

      public DefaultTableModel getPayrollReportTableModel()
      Retrieves the model for the payroll report table.
      Returns:
      The payroll report table model.
    • getReportTableSorter

      public TableRowSorter<DefaultTableModel> getReportTableSorter()
      Retrieves the sorter for the payroll report table.
      Returns:
      The payroll report table sorter.
    • setDataTableColumnWidth

      public void setDataTableColumnWidth()
      Sets the preferred column width for the table.