psdi.mbo

Interface MboValueListener

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int TYPE_DOMAIN
      Indicates that a listener is from a domain ID (maxattribute.domainid).
      static int TYPE_FIELDCLASS
      Indicates that a listener is from a field validation class (maxattribute.classname).
      static int TYPE_KEY
      Indicates that a listener is for a key uniqueness check (maxattribute.primarykeycolseq).
      static int TYPE_UNKNOWN
      Indicates that the listener type has not been set.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void action()
      Called if the data is valid, to perform some action
      java.lang.String[] getAppLink()
      Return the application names for the application link.
      MboSetRemote getList()
      Get value list (if it has one).
      java.lang.String getLookupName()
      Return the lookup name.
      java.lang.String getMatchingAttr()
      Get the attribute in the lookup table which matches this field.
      java.lang.String getMatchingAttr(java.lang.String sourceObjectName)
      Get the attribute in the lookup table which matches this field for the given source name
      int getType()
      Get the type of listener.
      boolean hasList()
      Has the MboValue got a value list ?
      void init()
      Called to initalize the listener.
      void initValue()
      Called to initialize the MboValue's value.
      void setType(int type)
      Set the type of listener.
      void setValueFromLookup(MboRemote sourceMbo)
      If hasList() is true for this listener, setValueFromLookup() method should be implemented by the listner and will be invoked when a value is set from the lookup list.
      MboSetRemote smartFill(java.lang.String value, boolean exact) 
      MboSetRemote smartFind(java.lang.String value, boolean exact) 
      MboSetRemote smartFind(java.lang.String objectName, java.lang.String value, boolean exact) 
      void validate()
      Called to validate the data
    • Field Detail

      • TYPE_UNKNOWN

        static final int TYPE_UNKNOWN
        Indicates that the listener type has not been set. This is the default.
        See Also:
        Constant Field Values
      • TYPE_FIELDCLASS

        static final int TYPE_FIELDCLASS
        Indicates that a listener is from a field validation class (maxattribute.classname).
        See Also:
        Constant Field Values
      • TYPE_DOMAIN

        static final int TYPE_DOMAIN
        Indicates that a listener is from a domain ID (maxattribute.domainid).
        See Also:
        Constant Field Values
      • TYPE_KEY

        static final int TYPE_KEY
        Indicates that a listener is for a key uniqueness check (maxattribute.primarykeycolseq).
        See Also:
        Constant Field Values
    • Method Detail

      • init

        void init()
           throws MXException,
                  java.rmi.RemoteException
        Called to initalize the listener. Guarenteed to be called once, and prior to any setValue on the field.
        Throws:
        MXException
        java.rmi.RemoteException
      • initValue

        void initValue()
                throws MXException,
                       java.rmi.RemoteException
        Called to initialize the MboValue's value. Guaranteed to be called once, and prior to any get* or setValue method on the field.
        Throws:
        MXException
        java.rmi.RemoteException
      • validate

        void validate()
               throws MXException,
                      java.rmi.RemoteException
        Called to validate the data
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        void action()
             throws MXException,
                    java.rmi.RemoteException
        Called if the data is valid, to perform some action
        Throws:
        MXException
        java.rmi.RemoteException
      • hasList

        boolean hasList()
        Has the MboValue got a value list ?
      • smartFind

        MboSetRemote smartFind(java.lang.String objectName,
                               java.lang.String value,
                               boolean exact)
                        throws MXException,
                               java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setValueFromLookup

        void setValueFromLookup(MboRemote sourceMbo)
                         throws MXException,
                                java.rmi.RemoteException
        If hasList() is true for this listener, setValueFromLookup() method should be implemented by the listner and will be invoked when a value is set from the lookup list. If there are multiple MboValueListner attached to the same Mbo value, there should only be one whose hasList() returns true.
        Parameters:
        sourceMbo -
        Throws:
        MXException
        java.rmi.RemoteException
      • getAppLink

        java.lang.String[] getAppLink()
                               throws MXException,
                                      java.rmi.RemoteException
        Return the application names for the application link.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getLookupName

        java.lang.String getLookupName()
                                throws MXException,
                                       java.rmi.RemoteException
        Return the lookup name.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getMatchingAttr

        java.lang.String getMatchingAttr()
                                  throws MXException,
                                         java.rmi.RemoteException
        Get the attribute in the lookup table which matches this field.
        Throws:
        MXException
        java.rmi.RemoteException
      • getMatchingAttr

        java.lang.String getMatchingAttr(java.lang.String sourceObjectName)
                                  throws MXException,
                                         java.rmi.RemoteException
        Get the attribute in the lookup table which matches this field for the given source name
        Throws:
        MXException
        java.rmi.RemoteException
      • setType

        void setType(int type)
        Set the type of listener.
        Parameters:
        type -