Package ui.employee

Class MyPayslipPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MyPayslipPanel extends JPanel
Represents the panel for viewing and printing employee payslips. It allows employees to view their payslip data, print the payslip, and search for specific payslips.

Available methods: - updatePayslipTable(Object[][]) - setSearchVisibility(boolean) - Getter methods for various components

Note: This class contains auto-generated code generated by the NetBeans GUI Builder.

See Also:
  • Constructor Details

    • MyPayslipPanel

      public MyPayslipPanel()
      Creates new form myPayslipPanel
  • Method Details

    • getPayMonthChooser

      public JComboBox<?> getPayMonthChooser()
      Retrieves the payment month chooser.
      Returns:
      The payment month chooser.
    • getPrintBTN

      public JButton getPrintBTN()
      Retrieves the Print button.
      Returns:
      The Print button.
    • getSearchBTN

      public JButton getSearchBTN()
      Retrieves the Search button.
      Returns:
      The Search button.
    • getSearchField

      public JTextField getSearchField()
      Retrieves the search field.
      Returns:
      The search field.
    • getPayslipTable

      public JTable getPayslipTable()
      Retrieves the payslip table.
      Returns:
      The payslip table.
    • getPayslipTableModel

      public DefaultTableModel getPayslipTableModel()
      Retrieves the payslip table model.
      Returns:
      The payslip table model.
    • getSavePdfBTN

      public JButton getSavePdfBTN()
      Retrieves the Save as PDF button.
      Returns:
      The Save as PDF button.
    • getPeriodType

      public JComboBox<String> getPeriodType()
    • updatePayslipTable

      public void updatePayslipTable(Object[][] data)
      Updates the payslip table with new data.
      Parameters:
      data - The new data to be displayed in the payslip table.
    • setSearchVisibility

      public void setSearchVisibility(boolean visibility)
      Sets the visibility of the search components.
      Parameters:
      visibility - The visibility status to set.