Class PIAPhoneTableBeanImpl

All Implemented Interfaces:
PIAPhoneTableBean, PIASpecSpreadSheetBean, PControllerBean, PFieldBean, Serializable, Remote, Unreferenced

public class PIAPhoneTableBeanImpl extends PIASpecSpreadSheetBeanImpl implements PIAPhoneTableBean
Controller class for the PIAPhoneTable component. This class is used exclusively to aid collectData() in the client portion of this panel. It is faster to fill in the FList here on the server side. Essentially, the phone types and numbers are sent to this controller in separate arrays, and this class builds up an FList containing that data. That FList is returned to the client as a PModelHandle
Version:
%version: 5 % %date_modified: Tue Nov 06 17:26:49 2001 %
Author:
larrylf
See Also:
  • Constructor Details

  • Method Details

    • setIndex

      public void setIndex(int index)
      Establishes the PIN_FLD_NAMEINFO array index that should be used when building up the input FList (below).
      Specified by:
      setIndex in interface PIAPhoneTableBean
      Parameters:
      index -
    • setPhoneData

      public void setPhoneData(PModelHandle collectedData, int[] types, String[] phones, ArrayList<Integer> toRemove) throws RemoteException
      Aids the collectData() method from the client component
      Specified by:
      setPhoneData in interface PIAPhoneTableBean
      Parameters:
      collectedData - model handle to collect data
      types - array containing phone types
      phones - array containing phone numbers
      toRemove - ArrayList containing array indexes to be deleted
      Throws:
      RemoteException
    • getIndexFromValue

      public int getIndexFromValue(String value)
      gets array index (key) from the passed value ("Phone type+ Phone number") from the Hashmap created by createIndexValueMap method
      Specified by:
      getIndexFromValue in interface PIAPhoneTableBean
      Parameters:
      value -
      Returns:
      array index
    • updateIndexValueMap

      public void updateIndexValueMap(Integer index, String value)
      stores the value at the specified index in the Hashmap created by createIndexValueMap method
      Specified by:
      updateIndexValueMap in interface PIAPhoneTableBean
      Parameters:
      index -
      value -
    • createIndexValueMap

      public void createIndexValueMap(PModelHandle pm) throws RemoteException
      Retrives phone data from the /account model handle and creates HashMap where Array index is the key and "Phone type+ Phone number" is the value
      Specified by:
      createIndexValueMap in interface PIAPhoneTableBean
      Parameters:
      pm - /account mdoel handle
      Throws:
      RemoteException