public class PIAGroupTreeBeanImpl extends PIAFieldBean implements PIAGroupTreeBean
PIAGroupTreeBeanImpl implements the controller for
PIAGroupTree.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mLazy |
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
PIAGroupTreeBeanImpl()
Creates controller class for the PIAGroupTree component
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildTree(PCachedContext conn,
Hashtable h,
PDataFieldSpecification spec,
FList fl,
PModelHandle han)
Builds a tree model.
|
FList |
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
spec
|
Hashtable |
getChildren(PModelHandle group)
Gets the children of a tree node.
|
Object |
getDisplayData(PModelHandle group)
Gets the data to be displayed at a tree node.
|
Object |
getDisplayData(PModelHandle group,
PFieldSpecification dSpec)
Gets the data to be displayed at a tree node
|
Object |
getSelectionDataFor(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 FList
|
protected ArrayList |
prepareChildList(Poid acctPoid)
Returns the ArrayList of all the child of the current account
|
void |
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 |
update(int reason,
Object data)
Updates the field according to the
displayFieldDescription property,
if present. |
getDataDescriptor, getLightData, getRemoteListenerHandle, propertyChange, setLightDatagetAssociatedClass, getDisplayFieldDescription, getDisplaySpec, getField, getFieldSpec, getModelFieldDescription, releaseSpecifications, revertToPrimary, setAssociatedClass, setDisplayFieldDescription, setField, setModelFieldDescription, togglePrimaryToSecondaryaddRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedpublic PIAGroupTreeBeanImpl()
throws RemoteException
RemoteExceptionpublic void update(int reason,
Object data)
throws RemoteException
PIAFieldBeandisplayFieldDescription property,
if present.update in class PIAFieldBeanreason - the reason for the updatedata - the updated objectRemoteException - thrown for all errorsprotected void buildTree(PCachedContext conn, Hashtable h, PDataFieldSpecification spec, FList fl, PModelHandle han) throws RemoteException
conn - the PCachedContexth - 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 - the PModelHandle
associated with a particular tree nodeRemoteException - thrown for errorsprotected ArrayList prepareChildList(Poid acctPoid)
acctPoid - Poidprotected ArrayList performSearch(FList searchTemplate)
searchTemplate - FListpublic void setLazy(boolean b)
throws RemoteException
setLazy in interface PIAGroupTreeBeanb - 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.RemoteException - thrown for errorspublic Hashtable getChildren(PModelHandle group) throws RemoteException
getChildren in interface PIAGroupTreeBeangroup - an account object, represented as a
PModelHandleRemoteException - thrown for errorspublic FList createAccountFlist(Poid p, PFieldSpecification spec) throws RemoteException
p - The account poidspec - The field specRemoteExceptionpublic Object getDisplayData(PModelHandle group) throws RemoteException
getDisplayData in interface PIAGroupTreeBeangroup - an account object, represented as a
PModelHandleRemoteException - thrown for errorspublic Object getDisplayData(PModelHandle group, PFieldSpecification dSpec) throws RemoteException
getDisplayData in interface PIAGroupTreeBeangroup - An account object represented as a PModelHandledSpec - The field specification of the data to be displayedRemoteExceptionpublic Object getSelectionDataFor(String dataItem, int index) throws RemoteException
PIAFieldBeangetSelectionDataFor in interface PControllerBeangetSelectionDataFor in class PIAFieldBeandataItem - the name of a data item. Must match the name of
an item changed by sending a
PViewDataChangeEvent.index - an optional index into an array data itemRemoteException - thrown for errorsCopyright © 2003, 2023, Oracle and/or its affiliates.