Class ConfirmAdjustDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ConfirmAdjustDialog extends JDialog
A modal confirmation dialog for the Adjust Event Dialog. It displays the resources to be adjusted, the amount of the adjustment and the tax amount if applicable.
See Also:
  • Field Details

    • ERROR_OPTION

      public static final int ERROR_OPTION
      Return value if an error occured.
      See Also:
    • APPROVE_OPTION

      public static final int APPROVE_OPTION
      Return value if ok is chosen.
      See Also:
    • CANCEL_OPTION

      public static final int CANCEL_OPTION
      Return value if cancel is chosen.
      See Also:
  • Constructor Details

    • ConfirmAdjustDialog

      public ConfirmAdjustDialog(Frame parent, ResourceBundle res)
      A confirmation dialog which displays each resource, it's total amount, and it's tax amount in a table.
  • Method Details

    • showDialog

      public int showDialog()
      Displays the dialog.
      Returns:
      the return state of the dialog: CANCEL_OPTION, APPROVE_OPTION
    • setData

      public void setData(com.portal.browse.AdjustmentInfo[] info)
      Sets the current data with the information contained in the given AdjustmentInfo object.
    • addNotify

      public void addNotify()
      Update the size of table based upon its number of rows and columns.
      Overrides:
      addNotify in class Dialog