Class PDeviceHistoryBasePage

All Implemented Interfaces:
PAccountViewPage, PCCPage, PAppComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PViewDataChangeListener, ActionListener, ContainerListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible
Direct Known Subclasses:
PNumberHistoryPage, PSIMHistoryPage, PTelcoDeviceHistoryBase

public abstract class PDeviceHistoryBasePage extends PMaintenancePage implements ActionListener
Base panel for device history pages.
See Also:
  • Field Details

    • DEVICE_SEARCH_HISTORY_TITLE_SUFFIX

      public static final String DEVICE_SEARCH_HISTORY_TITLE_SUFFIX
      suffix of the device history title key
      See Also:
    • DEVICE_SEARCH_HISTORY_TITLE_FORMAT_SUFFIX

      public static final String DEVICE_SEARCH_HISTORY_TITLE_FORMAT_SUFFIX
      suffix of the device history title format key
      See Also:
    • mBundle

      protected ResourceBundle mBundle
    • mHistoryTitleLabel

      protected JLabel mHistoryTitleLabel
    • mDefaultHistoryTitle

      protected String mDefaultHistoryTitle
    • mDefaultHistoryTitleFormat

      protected String mDefaultHistoryTitleFormat
    • mLastRadioButton

      protected JRadioButton mLastRadioButton
    • mFromRadioButton

      protected JRadioButton mFromRadioButton
    • mAllRadioButton

      protected JRadioButton mAllRadioButton
    • mSearchButton

      protected JButton mSearchButton
    • mNumOfMonthsField

      protected IntegerTextField mNumOfMonthsField
    • mNunOfMonthSpinner

      protected SpinnerField mNunOfMonthSpinner
    • mFromDateField

      protected PIADateField mFromDateField
    • mToDateField

      protected PIADateField mToDateField
    • mDeviceModel

      protected PModelHandle mDeviceModel
    • mServiceModel

      protected PModelHandle mServiceModel
    • mSearchCriteria

      protected PDeviceHistorySearchCriteria mSearchCriteria
    • mHistoryTable

      protected PIASpecSpreadSheet mHistoryTable
    • mSearchResultsLabel

      protected JLabel mSearchResultsLabel
    • mResultsDefaultTitle

      protected String mResultsDefaultTitle
    • mResultsTitleNoResults

      protected String mResultsTitleNoResults
  • Constructor Details

    • PDeviceHistoryBasePage

      public PDeviceHistoryBasePage()
      Creates a new device history information display page.
  • Method Details

    • hasUnsavedChanges

      public boolean hasUnsavedChanges()
      Returns false because nothing needs to be saved.
      Specified by:
      hasUnsavedChanges in interface PAccountViewPage
      Overrides:
      hasUnsavedChanges in class PMaintenancePage
      Returns:
      false no saving required.
    • setDevice

      public void setDevice(PModelHandle deviceModel)
      Sets device model handle. This method should be called before "setService" to initialize the page title.
      Parameters:
      deviceModel - the device model handle to search for.
    • setService

      public void setService(PModelHandle serviceModel) throws RemoteException
      Sets service model handle. This method should be called after "setDevice" to initialize the page title.
      Parameters:
      deviceModel - the device model handle to search for.
      Throws:
      RemoteException
    • 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
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Action event handler for the controls on the panel.
      Specified by:
      actionPerformed in interface ActionListener
    • prepareSearch

      protected void prepareSearch()
      Prepares the search criteria. mSearchCriteria is updated for searching.
    • search

      protected void search()
      Called to start history lookup. Subclasses can override to implement their own search methods.
    • jbInit

      protected void jbInit() throws Exception
      Initializes the user interface. This method will in turn call "createEntryPanel", "createCommandPanel", and "createResultsPanel" methods to initialize the page.
      Throws:
      Exception
    • createEntryPanel

      protected JPanel createEntryPanel()
      Creates the search entry panel. Subclasses intend to use different search criteria should override this method.
      Returns:
      the entry panel.
    • createCommandPanel

      protected JPanel createCommandPanel()
      Creates the search command panel. Subclasses intend to use different search commands should override this method.
      Returns:
      the command panel.
    • createResultsPanel

      protected JPanel createResultsPanel() throws RemoteException
      Creates the search results panel. Subclasses must override this method to create the results panel.
      Returns:
      the results panel.
      Throws:
      RemoteException
    • clearSearch

      public void clearSearch()