Class AdjustEventPanel

All Implemented Interfaces:
PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class AdjustEventPanel extends PIACustomizablePanel
Panel for making event level adjustments. Different resources are displayed as different panels in a tabbed pane. The user has the option of adjusting a resource by either the full or partial amount. Partial Amounts can be broken down further as to be either a percentage or a fixed amount.
Version:
%version: 16 % %date_modified: Tue Oct 23 16:56:03 2001 %
Author:
mgaines
See Also:
  • Field Details

    • OK

      public static final String OK
      Constant used to specify that the OK button was selected.
      See Also:
    • CANCEL

      public static final String CANCEL
      Constant used to specify that the Cancel button was selected.
      See Also:
    • HELP

      public static final String HELP
      Constant used to specify that the Help button was selected.
      See Also:
    • CURRENCY

      public static final int CURRENCY
      Constant used to specify the Currency checkbox.
      See Also:
    • NON_CURRENCY

      public static final int NON_CURRENCY
      Constant used to specify the Non-Currency checkbox.
      See Also:
    • BOTH

      public static final int BOTH
      Constant used to specify both the Currency and Non-Currency checkboxes.
      See Also:
  • Constructor Details

    • AdjustEventPanel

      public AdjustEventPanel(Hashtable events)
      Creates a panel for doing full and partial event adjustments. The panel is created from resource information contained in the list of marked events.
      Parameters:
      events - the list of events to adjust
    • AdjustEventPanel

      public AdjustEventPanel(Hashtable events, boolean b)
      Creates a panel for doing full and partial event adjustments. The panel is created from resource information contained in the list of marked events.
      Parameters:
      events - the list of events to adjust
      b - if true, indicates that this is a tax-only adjustment
  • Method Details

    • setHierarchyBasedAdjust

      public void setHierarchyBasedAdjust(boolean hierarchyBasedAdjust)
    • adjustTaxesOnly

      public void adjustTaxesOnly()
      This method does a taxes only type of adjustment. It uses the events that were pased into the constructor for the adjustment. A status dialog will be displayed, if there were no errors, indicating the results of the adjustment for each event.
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Gets the class name for this class's controller.
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIACustomizablePanel
      Returns:
      a String with the component's controller's classname
      Throws:
      RemoteException - thrown for errors
    • setSettingEnabled

      public void setSettingEnabled(int setting, boolean b)
      Enables or disables the settings which determine whether currency or non-currency panels are enabled.

      The Setting can be one of:

      CURRENCY
      Any tabs related to currency resources.
      NON_CURRENCY
      Any tabs related to non-currency resources.
      BOTH
      All tabs regardless of resource type.

    • isSettingEnabled

      public boolean isSettingEnabled(int setting)
      Returns whether the given setting is enabled or disabled.

      The Setting can be one of:

      CURRENCY
      Any tabs related to currency resources.
      NON_CURRENCY
      Any tabs related to non-currency resources.

      See Also:
    • addActionListener

      public void addActionListener(ActionListener l)
      Adds an action listener to the buttons of the dialog. The listener will be notified if one of the dialog buttons is pressed.
      Parameters:
      l - the action listener to be added
    • removeActionListener

      public void removeActionListener(ActionListener l)
      Removes the given action listener from the dialog.
      Parameters:
      l - the action listener to be removed
    • setBalanceImpactData

      public void setBalanceImpactData(PModelHandle[] pm)
    • getBalanceImpactData

      public Vector getBalanceImpactData()
    • fireActionEvent

      protected void fireActionEvent(String action)
      Fires an action event when one of the buttons is pressed on the panel.
      Parameters:
      action - the string that indicates the button pressed