psdi.app.company

Class FldCompanyParentCompany

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldCompanyParentCompany
    extends FldCompany
    Companies.parentcompany validation class: The value entered as the parent company should be a valid company existing in the COMPANIES table and not be a child of some other company.
    See Also:
    FldCompany
    • Constructor Detail

      • FldCompanyParentCompany

        public FldCompanyParentCompany(MboValue mv)
                                throws MXException
        Construct and attach to the MboValue.
        Parameters:
        mbv -
        Throws:
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Use the base class FldCompany to do the basic validation to check if the entered value is a valid company. Also validate that the company entered here as a parent is not a child to some other company.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXApplicationException - (company, CannotBeParent) This company cannot be used as a parent.
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Set some editability rules. If the field is cleared or made null, set the USEPARENTREMITTO attribute to false and read/only, or else make it editable.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class CrossOverDomain
        Throws:
        MXException
        java.rmi.RemoteException