Package ui.employee

Class LeavePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LeavePanel extends JPanel
Represents the panel for requesting leave. It allows employees to request different types of leave, specify start and end dates, provide a reason for the leave, and submit the request.

Available methods: - Getter methods for various components

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

See Also:
  • Constructor Details

    • LeavePanel

      public LeavePanel()
      Creates new form LeavePanel
  • Method Details

    • getLeaveHistoryModel

      public DefaultTableModel getLeaveHistoryModel()
      Retrieves the leave history table model.
      Returns:
      The leave history table model.
    • getSubmitBTN

      public JButton getSubmitBTN()
      Retrieves the Submit button.
      Returns:
      The Submit button.
    • getLeaveTypeComboBox

      public JComboBox<String> getLeaveTypeComboBox()
      Retrieves the leave type combo box.
      Returns:
      The leave type combo box.
    • getStartDateChooser

      public com.toedter.calendar.JDateChooser getStartDateChooser()
      Retrieves the start date chooser.
      Returns:
      The start date chooser.
    • getEndDateChooser

      public com.toedter.calendar.JDateChooser getEndDateChooser()
      Retrieves the end date chooser.
      Returns:
      The end date chooser.
    • getLeaveReasonsTxtArea

      public JTextArea getLeaveReasonsTxtArea()
      Retrieves the leave reasons text area.
      Returns:
      The leave reasons text area.
    • getSickLeaveTxtField

      public JTextField getSickLeaveTxtField()
      Retrieves the sick leave text field.
      Returns:
      The sick leave text field.
    • getVacationLeaveTxtField

      public JTextField getVacationLeaveTxtField()
      Retrieves the vacation leave text field.
      Returns:
      The vacation leave text field.
    • getPaternalLeaveTxtField

      public JTextField getPaternalLeaveTxtField()
      Retrieves the paternal leave text field.
      Returns:
      The paternal leave text field.
    • getBereavementLeaveTxtField

      public JTextField getBereavementLeaveTxtField()
      Retrieves the bereavement leave text field.
      Returns:
      The bereavement leave text field.
    • getLeaveHistoryTable

      public JTable getLeaveHistoryTable()
      Retrieves the leave history table.
      Returns:
      The leave history table.
    • getLeaveHistoryTableSorter

      public TableRowSorter<DefaultTableModel> getLeaveHistoryTableSorter()
      Retrieves the leave history table sorter.
      Returns:
      The leave history table sorter.