Class PBackdatedCancelDialog

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

public class PBackdatedCancelDialog extends JDialog implements ActionListener, ItemListener
Cancel confirmation dialog displayed while cancelling a deal/plan/discount
Author:
afpatel
See Also:
  • Field Details

  • Constructor Details

    • PBackdatedCancelDialog

      public PBackdatedCancelDialog(int type)
  • Method Details

    • showDialog

      public int showDialog()
      makes dialog visible
      Returns:
      option (option is set by setOption() method when Yes or NO button is clicked)
    • getDate

      public Date getDate()
      called by the class that uses PBackdatedCancelDialog to get the selected backdate backdate is null if backdate option is not selected
      Returns:
      backdate
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      listener method for JButtons
      Specified by:
      actionPerformed in interface ActionListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent e)
      listener method for JRadioButton state change
      Specified by:
      itemStateChanged in interface ItemListener