psdi.app.asset

Class FldAssetChild

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldAssetChild
    extends FldMboKey
    Attribute handler for the assetnum attribute of asset. Special rules implements for hierarchical displays.
    • Constructor Detail

      • FldAssetChild

        public FldAssetChild(MboValue mbv)
                      throws MXException
        Construct and attach to the MboValue.
        Parameters:
        mbv - The MboValue field in the workorder object attach to.
        Throws:
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        When used in hierarchy mode, can specify an existing piece of asset. validates child , cannot build or break a hierarchy if the child or the parent is in the inventory location.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class FldMboKey
        Throws:
        MXException - With "asset", "cantAddChildOrParent".
        MXException - With "asset", "NotValidAsset".
        java.rmi.RemoteException
      • hasList

        public boolean hasList()
        In a hierarchical situation, always assumes that there are potential child asset records. No list when not in a hierarchical situation. Has list when in move asset page (cross site change).
        Specified by:
        hasList in interface MboValueListener
        Overrides:
        hasList in class MboValueAdapter
        Returns:
        true or false
      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        List returned are existing asset which may be children of the owner asset. In move asset page, returns assets in the given site(cross site change).
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MboValueAdapter
        Returns:
        Mboset
        Throws:
        MXException
        java.rmi.RemoteException
      • setValueFromLookup

        public void setValueFromLookup(MboRemote sourceMbo)
                                throws MXException,
                                       java.rmi.RemoteException
        Set the value of the field and other fields which are part of the foreign key from the sourceMbo to the Mbo that this mbo value belongs to.
        Specified by:
        setValueFromLookup in interface MboValueListener
        Overrides:
        setValueFromLookup in class MboValueAdapter
        Parameters:
        sourceMbo -
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.mbo.MboValueListner#setvalueFromLookup