Package com.portal.bas.comp
Class PIAGroupTreeBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.PFieldControllerBean
com.portal.bas.comp.PIAFieldBean
com.portal.bas.comp.PIAGroupTreeBeanImpl
- All Implemented Interfaces:
PIAGroupTreeBean
,PControllerBean
,PFieldBean
,PLightComponent
,PropertyChangeListener
,Serializable
,Remote
,Unreferenced
,EventListener
- Direct Known Subclasses:
PAcctTreeBeanImpl
PIAGroupTreeBeanImpl
implements the controller for
PIAGroupTree
.- Version:
- %version: 6 % %date_modified: Tue Dec 18 20:52:37 2001 %
- See Also:
-
Field Summary
FieldsFields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
-
Constructor Summary
ConstructorsConstructorDescriptionCreates controller class for the PIAGroupTree component -
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildTree
(PCachedContext conn, Hashtable h, PDataFieldSpecification spec, FList fl, PModelHandle han) Builds a tree model.createAccountFlist
(Poid p, PFieldSpecification spec) read in only the fields required as per the spec, and some additional fields taht will be required irrespective of the specgetChildren
(PModelHandle group) Gets the children of a tree node.getDisplayData
(PModelHandle group) Gets the data to be displayed at a tree node.getDisplayData
(PModelHandle group, PFieldSpecification dSpec) Gets the data to be displayed at a tree nodegetSelectionDataFor
(String dataItem, int index) Given the name of a display data item and an optional index, returns the information needed for a selection event.protected ArrayList
performSearch
(FList searchTemplate) Perform the Search for a given input FListprotected ArrayList
prepareChildList
(Poid acctPoid) Returns the ArrayList of all the child of the current accountvoid
setLazy
(boolean b) Sets the state of the lazy expand flag, which determines whether the children of a node of the tree are to be fetched as soon as the the node is created.void
Updates the field according to thedisplayFieldDescription
property, if present.Methods inherited from class com.portal.bas.comp.PIAFieldBean
getDataDescriptor, getLightData, getRemoteListenerHandle, propertyChange, setLightData
Methods inherited from class com.portal.bas.PFieldControllerBean
getAssociatedClass, getDisplayFieldDescription, getDisplaySpec, getField, getFieldSpec, getModelFieldDescription, releaseSpecifications, revertToPrimary, setAssociatedClass, setDisplayFieldDescription, setField, setModelFieldDescription, togglePrimaryToSecondary
Methods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferenced
-
Field Details
-
mLazy
protected boolean mLazy
-
-
Constructor Details
-
PIAGroupTreeBeanImpl
Creates controller class for the PIAGroupTree component- Throws:
RemoteException
-
-
Method Details
-
update
Description copied from class:PIAFieldBean
Updates the field according to thedisplayFieldDescription
property, if present.- Overrides:
update
in classPIAFieldBean
- Parameters:
reason
- the reason for the updatedata
- the updated object- Throws:
RemoteException
- thrown for all errors
-
buildTree
protected void buildTree(PCachedContext conn, Hashtable h, PDataFieldSpecification spec, FList fl, PModelHandle han) throws RemoteException Builds a tree model.- Parameters:
conn
- thePCachedContext
h
- the hashtable for storing the tree modelspec
- the format of the data to display at each tree nodefl
- the account flist associated with a particular tree nodehan
- thePModelHandle
associated with a particular tree node- Throws:
RemoteException
- thrown for errors
-
prepareChildList
Returns the ArrayList of all the child of the current account- Parameters:
acctPoid
- Poid- Returns:
- ArrayList
-
performSearch
Perform the Search for a given input FList- Parameters:
searchTemplate
- FList- Returns:
- ArrayList
-
setLazy
Sets the state of the lazy expand flag, which determines whether the children of a node of the tree are to be fetched as soon as the the node is created.- Specified by:
setLazy
in interfacePIAGroupTreeBean
- Parameters:
b
- the new value of the lazy expand flag. True, if the children are to be loaded as soon as a node is created; false, otherwise.- Throws:
RemoteException
- thrown for errors
-
getChildren
Gets the children of a tree node.- Specified by:
getChildren
in interfacePIAGroupTreeBean
- Parameters:
group
- an account object, represented as aPModelHandle
- Throws:
RemoteException
- thrown for errors
-
createAccountFlist
read in only the fields required as per the spec, and some additional fields taht will be required irrespective of the spec- Parameters:
p
- The account poidspec
- The field spec- Throws:
RemoteException
-
getDisplayData
Gets the data to be displayed at a tree node.- Specified by:
getDisplayData
in interfacePIAGroupTreeBean
- Parameters:
group
- an account object, represented as aPModelHandle
- Throws:
RemoteException
- thrown for errors
-
getDisplayData
Gets the data to be displayed at a tree node- Specified by:
getDisplayData
in interfacePIAGroupTreeBean
- Parameters:
group
- An account object represented as a PModelHandledSpec
- The field specification of the data to be displayed- Throws:
RemoteException
-
getSelectionDataFor
Description copied from class:PIAFieldBean
Given the name of a display data item and an optional index, returns the information needed for a selection event. The information returned is usually model data.- Specified by:
getSelectionDataFor
in interfacePControllerBean
- Overrides:
getSelectionDataFor
in classPIAFieldBean
- Parameters:
dataItem
- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent
.index
- an optional index into an array data item- Returns:
- The model handle for the selected field or null.
- Throws:
RemoteException
- thrown for errors
-