Package com.portal.app.comp
Class PIAPhoneTableBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.PFieldControllerBean
com.portal.bas.comp.PIASpecSpreadSheetBeanImpl
com.portal.app.comp.PIAPhoneTableBeanImpl
- All Implemented Interfaces:
PIAPhoneTableBean,PIASpecSpreadSheetBean,PControllerBean,PFieldBean,Serializable,Remote,Unreferenced
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:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRetrives phone data from the /account model handle and creates HashMap where Array index is the key and "Phone type+ Phone number" is the valueintgetIndexFromValue(String value) gets array index (key) from the passed value ("Phone type+ Phone number") from the Hashmap created by createIndexValueMap methodvoidsetIndex(int index) Establishes the PIN_FLD_NAMEINFO array index that should be used when building up the input FList (below).voidsetPhoneData(PModelHandle collectedData, int[] types, String[] phones, ArrayList<Integer> toRemove) Aids the collectData() method from the client componentvoidupdateIndexValueMap(Integer index, String value) stores the value at the specified index in the Hashmap created by createIndexValueMap methodMethods inherited from class com.portal.bas.comp.PIASpecSpreadSheetBeanImpl
getRegion, getRegion, getSelectionDataFor, getTable, revertToPrimary, setColumnDisplayDescription, setColumnModelDescription, setData, setUntypedData, toggleCurrency, toggleCurrency, updateMethods inherited from class com.portal.bas.PFieldControllerBean
getAssociatedClass, getDisplayFieldDescription, getDisplaySpec, getField, getFieldSpec, getModelFieldDescription, releaseSpecifications, revertToPrimary, setAssociatedClass, setDisplayFieldDescription, setField, setModelFieldDescription, togglePrimaryToSecondaryMethods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Constructor Details
-
PIAPhoneTableBeanImpl
- Throws:
RemoteException
-
-
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:
setIndexin interfacePIAPhoneTableBean- 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:
setPhoneDatain interfacePIAPhoneTableBean- Parameters:
collectedData- model handle to collect datatypes- array containing phone typesphones- array containing phone numberstoRemove- ArrayList containing array indexes to be deleted- Throws:
RemoteException
-
getIndexFromValue
gets array index (key) from the passed value ("Phone type+ Phone number") from the Hashmap created by createIndexValueMap method- Specified by:
getIndexFromValuein interfacePIAPhoneTableBean- Parameters:
value-- Returns:
- array index
-
updateIndexValueMap
stores the value at the specified index in the Hashmap created by createIndexValueMap method- Specified by:
updateIndexValueMapin interfacePIAPhoneTableBean- Parameters:
index-value-
-
createIndexValueMap
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:
createIndexValueMapin interfacePIAPhoneTableBean- Parameters:
pm- /account mdoel handle- Throws:
RemoteException
-