Class PAccountsResultsPanel

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

public class PAccountsResultsPanel extends PIACustomizablePanel implements PSearchResults, ActionListener
See Also:
  • Field Details

    • openBut

      protected JButton openBut
    • printBut

      protected JButton printBut
  • Constructor Details

    • PAccountsResultsPanel

      public PAccountsResultsPanel()
  • Method Details

    • setPrintingAllowed

      public void setPrintingAllowed(boolean b)
      Allows printing for the panel based upon the value of the given boolean. If it's not allowed, then the print button is removed from the display. By default printing is allowed.
      Parameters:
      b - if true printing is enabled/shown
    • getPrintingAllowed

      public boolean getPrintingAllowed()
      Returns:
      whether or not printing is allowed
    • setOpenActionLabel

      public void setOpenActionLabel(String s)
      Changes the lable and action command of the open button to be the given string.
      Parameters:
      s - the new label for the open button
    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Specified by:
      actionPerformed in interface ActionListener
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • setStatusPanel

      public void setStatusPanel(PropertyChangeListener p)
    • addIASelectionListener

      public void addIASelectionListener(PIASelectionListener l)
      Implemented as a no-op.
      Specified by:
      addIASelectionListener in interface PSearchConsumer
      Parameters:
      l - The selection listener
    • removeIASelectionListener

      public void removeIASelectionListener(PIASelectionListener l)
      Implemented as a no-op.
      Specified by:
      removeIASelectionListener in interface PSearchConsumer
      Parameters:
      l - The selection listener
    • getSpreadSheet

      public PIASpecSpreadSheet getSpreadSheet()
      Description copied from interface: PSearchConsumer
      Useful to facilitate customization to add search results panels. Implemented by the parent panels that host the results panels of type PIASpecSpreadSheet.
      Specified by:
      getSpreadSheet in interface PSearchConsumer
      Returns:
      the spreadsheet that contains the results
    • getSelectedItems

      public PModelHandle[] getSelectedItems()
      Specified by:
      getSelectedItems in interface PSearchResults
      Returns:
      the list of selected items in the table
    • setDisplay

      public void setDisplay(PModelHandle[] pm)
      Updates the table with the given list of data.
      Specified by:
      setDisplay in interface PSearchResults
      Parameters:
      pm - the list of new data
    • addButtonListener

      public void addButtonListener(ActionListener l)
      Registers the given listener with action events for the buttons in the panel.
      Specified by:
      addButtonListener in interface PSearchResults
      Parameters:
      l - the action listener to add
    • removeButtonListener

      public void removeButtonListener(ActionListener l)
      Removes the given action listener from the buttons in the panel.
      Specified by:
      removeButtonListener in interface PSearchResults
      Parameters:
      l - the action listener to remove
    • setMultipleSelectionsMode

      public void setMultipleSelectionsMode()
      Enables multiple interval selection for this table; else, single selection.
    • getButtonPanelReference

      public JPanel getButtonPanelReference()