Class PServicesDealsProductsTable

All Implemented Interfaces:
PAppComponent, PAppFieldComponent, PClientComponent, PCollectDataListener, PComponent, PComponentAttribute, PFieldBean, PViewDataChangeListener, ActionListener, MouseListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class PServicesDealsProductsTable extends PIASpecSpreadSheet
Presents the services, deals and products that are available for account creation, plan add-on and account view/modification.
Version:
%version: 33 % %date_modified: Mon Oct 29 15:27:40 2001 %
Author:
kowang
See Also:
  • Field Details

    • DEFAULT_TABLE_TYPE

      public static final int DEFAULT_TABLE_TYPE
      Default table type for the table on the product tab
      See Also:
    • PURCHASE_NEW_TABLE_TYPE

      public static final int PURCHASE_NEW_TABLE_TYPE
      Table type for the new services on the Purchase page
      See Also:
    • PURCHASE_EXISTING_TABLE_TYPE

      public static final int PURCHASE_EXISTING_TABLE_TYPE
      Table type for the existing services on the Purchase page
      See Also:
    • CUSTOMIZE_NEW_TABLE_TYPE

      public static final int CUSTOMIZE_NEW_TABLE_TYPE
      Table type for the new services on the Customize Products page
      See Also:
    • CUSTOMIZE_EXISTING_TABLE_TYPE

      public static final int CUSTOMIZE_EXISTING_TABLE_TYPE
      Table type for the existing services on the Customize Products page
      See Also:
    • DEFAULT_SERVICE_COL

      public static final int DEFAULT_SERVICE_COL
      Service column for the products table on Products tab
      See Also:
    • DEFAULT_LOGIN_COL

      public static final int DEFAULT_LOGIN_COL
      Service login/ID column for the products table on Products tab
      See Also:
    • DEFAULT_DEAL_COL

      public static final int DEFAULT_DEAL_COL
      Deal name column for the products table on Products tab
      See Also:
    • DEFAULT_PRODUCT_COL

      public static final int DEFAULT_PRODUCT_COL
      Product name column for the products table on Products tab
      See Also:
    • DEFAULT_CUSTOMIZE_COL

      public static final int DEFAULT_CUSTOMIZE_COL
      Product customizability column for the products table on Products tab
      See Also:
    • DEFAULT_PURCHASED_COL

      public static final int DEFAULT_PURCHASED_COL
      Product purchased date column for the products table on Products tab
      See Also:
    • DEFAULT_STATUS_COL

      public static final int DEFAULT_STATUS_COL
      Product status column for the products table on Products tab
      See Also:
    • DEFAULT_QTY_COL

      public static final int DEFAULT_QTY_COL
      Product quantity column for the products table on Products tab
      See Also:
    • PLAN_NAME_COL

      public static final int PLAN_NAME_COL
      Plan name column for the products table on Products tab
      See Also:
    • CUST_PROD_LOGIN_COL

      public static final int CUST_PROD_LOGIN_COL
      Login ID column for the products table on Customize Products page
      See Also:
  • Constructor Details

    • PServicesDealsProductsTable

      public PServicesDealsProductsTable(int tableType)
      Creates a panel that displays services, deals and products
      Parameters:
      tableType - The type of table will be created. The possible types are: DEFAULT_TABLE_TYPE -- table on the product tab PURCHASE_NEW_TABLE_TYPE -- table on purchase page for new services PURCHASE_EXISTING_TABLE_TYPE -- table on purchase page for existing services CUSTOMIZE_NEW_TABLE_TYPE -- table on customize products page for new services CUSTOMIZE_EXISTING_TABLE_TYPE -- table on customize products page for existing services
  • Method Details

    • recycle

      public void recycle()
      Clears out cached data so that the table can be reused.
    • refresh

      public void refresh()
      Refreshes the data in the table.
    • addSelectionListener

      public void addSelectionListener(PIASelectionListener l)
      Parameters:
      l - The selection listener
    • removeSelectionListener

      public void removeSelectionListener(PIASelectionListener l)
      Parameters:
      l - The selection listener
    • setModelHandle

      public void setModelHandle(PModelHandle pm) throws RemoteException
      Description copied from class: PIASpreadSheet
      Establishes the PModelHandle for this component
      Specified by:
      setModelHandle in interface PComponent
      Overrides:
      setModelHandle in class PIASpreadSheet
      Parameters:
      pm - The new PModelHandle from which information will be extracted.
      Throws:
      RemoteException
    • setSponsorshipData

      public void setSponsorshipData(SponsorshipData[] sData, ArrayList prod)
      Set the sponsorship information for the panel.
      Parameters:
      sData - an array of sponsor group information
      prod - a list of sponsored products
    • areProductsSponsored

      public boolean areProductsSponsored()
      Returns:
      true if there are sponsored products in the table
    • isDealRequired

      public boolean isDealRequired(PModelHandle selectedRow)
      isDealRequired returns true if the selected row is a required deal
      Parameters:
      selectedRow - PModelHandle
      Returns:
      boolean
    • isRegularDeal

      public boolean isRegularDeal(PModelHandle selectedRow)
      Check if the deal within the model is a regular deal(deal FLD_TYPE=2) or not.
      Parameters:
      selectedRow - Model containg the deal.
      Returns:
      true : regular deal, false : not a regular model
    • setDealLinkEnable

      public void setDealLinkEnable(boolean flag)
    • setSubscrptionGroupAvailable

      public void setSubscrptionGroupAvailable(boolean mIsSubscriptionGroupAvailable)
      set whether plan is having subcription group or not
      Parameters:
      mIsSubscriptionGroupAvailable - boolean
    • setLoginForAcctLevelDeals

      public void setLoginForAcctLevelDeals(String inString)
    • getFilteredTableMH

      public PModelHandle getFilteredTableMH(PModelHandle origMH, Properties props)
    • convertAcctProductsMH2TableMH

      public PModelHandle convertAcctProductsMH2TableMH(PModelHandle model)
    • convertDealMH2TableMH

      public PModelHandle convertDealMH2TableMH(PModelHandle model)
    • convertPlanMH2TableMH

      public PModelHandle convertPlanMH2TableMH(PModelHandle model, boolean includeNonProd)
    • updateServiceLoginsInTableMH

      public PModelHandle updateServiceLoginsInTableMH(PModelHandle model, HashMap newLoginsMap)
    • getServiceIndex2TableModelIndexesMap

      public HashMap getServiceIndex2TableModelIndexesMap()
    • updateSelectedProductModels

      public void updateSelectedProductModels(PModelHandle original, PModelHandle current, PModelHandle product, int modelIndex)
    • getControllerClassName

      public String getControllerClassName() throws RemoteException
      Description copied from class: PIASpreadSheet
      Retrieves the class name of this component's controller
      Specified by:
      getControllerClassName in interface PComponent
      Overrides:
      getControllerClassName in class PIASpecSpreadSheet
      Returns:
      The name of the controller for this component
      Throws:
      RemoteException
    • setPlanHaveSGroup

      public void setPlanHaveSGroup(boolean planHaveSGroup)
    • setDefaultSorting

      protected void setDefaultSorting(int col, boolean ascending)