Class PAcctNoHierarchyPage

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

public class PAcctNoHierarchyPage extends PMaintenancePage implements ActionListener
The page that displays the information that the account is not part of a hierarchy.
Version:
%version: 12 % %date_modified: Tue Nov 20 11:08:32 2001 %
Author:
lnair
See Also:
  • Constructor Details

    • PAcctNoHierarchyPage

      public PAcctNoHierarchyPage()
  • Method Details

    • getCustomizerProperties

      public void getCustomizerProperties()
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • closeMovePanel

      public void closeMovePanel(boolean force)
      close the move panel
      Parameters:
      force - determines if the move panel should be closed despite unsaved changes being present
    • setHierarchyPanelReference

      public void setHierarchyPanelReference(PIACustomizablePanel hierarchyPanel)
      sets the reference of hierarchyPanel
      Parameters:
      hierarchyPanel - PIACustomizablePanel reference of the hierarchy panel.
    • setPermission

      public void setPermission(boolean flag)
      sets the flag if CSR has permission for hierarchy(PERM_HIERARCHY)
    • setModelHandle

      public void setModelHandle(PModelHandle data) throws RemoteException
      sets the model handel of hierarchyPanel, forcing it to refresh
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIACustomizablePanel
      Parameters:
      data - the new PModelHandle from which to extract information
      pm - Model handle.
      Throws:
      RemoteException - thrown for errors
    • addAdditionalActions

      protected void addAdditionalActions(AbstractAction[] actions)
      Called to add actions to the service display component. This results in a new Action dropdown (if this is the first time the method is called). Your subclass should look like the following:
       public class MyHierarchyPage extends PAcctHierarchyPage {
              public MyHierarchyPage() {
                      PAddOnAction[] actions = new PAddOnAction[1];
                      actions[0] = new MyActionA();
                      addAdditionalActions(actions);
              }
       }
      
       class MyActionA extends PAddOnAction {
              public MyActionA() {
              }
      
              public String getMenuLabel() {
                      return "Action A";
              }
      
              public void actionPerformed(ActionEvent e){
                      //Custom Action
                      //JOptionPane.showMessageDialog(null,"My Action A");
              }
       }
       
      Parameters:
      actions - The array of AbstractAction instances to append