Class PARItemSearchDlg

All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PARItemSearchDlg extends JDialog implements ActionListener, ItemListener
Dialog for specifying the search criteria when searching for bill items.
Author:
pashok
See Also:
  • Constructor Details

    • PARItemSearchDlg

      public PARItemSearchDlg(Frame frame, String title, boolean modal, PARBillItemSearchData billData, boolean bHasChildren)
      Constructs the Bill item search dialog
  • Method Details

    • initialize

      public void initialize(PARBillItemSearchData billItemData, boolean bHasChildren)
      Initializes the bill search dialog. The account number field will not be editable if the account has no subordinate children, otherwise you can edit it to specify a certain child account to refine the search.
      Parameters:
      billItemData - initializes the dialog controls
      bHasChildren - indicates if the account has any subordinate children
    • getBillItemData

      public PARBillItemSearchData getBillItemData()
      Gets the object that stores the search criteria
      Returns:
      objects that stores the bill item search criteria
    • includeChildren

      public int includeChildren()
      Indicates if the include children checkbox is selected
      Returns:
      true if selected or else false
    • onlyPaidItems

      public boolean onlyPaidItems()
      Indicates if the Closed radio is selected. This option will only fetch paid items.
      Returns:
      true if selected or else false
    • onlyUnPaidItems

      public boolean onlyUnPaidItems()
      Indicates if the open radio is selected. This option will only fetch unpaid items.
      Returns:
      true if selected or else false
    • allItems

      public boolean allItems()
      Indicates if the Both radio is selected. This will fetch open and closed items
      Returns:
      true if selected or else false
    • reset

      public void reset()
      Resets the value of the dialog controls to their default values
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Specified by:
      itemStateChanged in interface ItemListener
    • isClosed

      public boolean isClosed()
    • getFromCredit

      public BigDecimal getFromCredit()
    • getToCredit

      public BigDecimal getToCredit()
    • getFromDebit

      public BigDecimal getFromDebit()
    • getToDebit

      public BigDecimal getToDebit()
    • setCurrencyToDisplay

      public void setCurrencyToDisplay(String currency)
      This function is used to update the currency symbol for currency displaying fields in the Search Dialog.