psdi.plusc.webclient.beans.datasheet

Class PlusCDSChangeViewDataBean

    • Constructor Detail

      • PlusCDSChangeViewDataBean

        public PlusCDSChangeViewDataBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Description copied from class: DataBean
        Typically called after the DataBean gets a new MboSetRemote On the MboSetRemote it sets the app, the app defaults, user defaults If the remote is an instanceof NonPersistentMboSetRemote then setup is called on it and sets the current row to 0. If the DataBean isn't bound to a table then initialize fetches the first mbo (sets the current row to 0). If this method is overridden under most case you will want to call super.initalize at the end of the the new initialize method.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • canChangeView

        public boolean canChangeView()
                              throws java.rmi.RemoteException,
                                     MXException
        Returns:
        Throws:
        java.rmi.RemoteException
        MXException
      • changeview

        public int changeview()
                       throws MXException,
                              java.rmi.RemoteException
        This method is responsable for changing the Asset Function calibration points. The calibration points view change consists in show all the existing calibration points as default, when the change view button is clicked the only calibraiton points shown are the ones related to the selected Asset Function. The atribute responsable of controling the select view is the VIEWSASLOOP attribute from PLUSDSPLAN.
        Returns:
        EVENT_HANDLED
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSet

        public MboSetRemote getMboSet()
                               throws MXException,
                                      java.rmi.RemoteException
        This method was overided cause the Data Sheet app needs to know wich relationship have to be loaded for Asset Functions according to the View As Loop functionality
        Overrides:
        getMboSet in class DataBean
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • changeviewtopoints

        public int changeviewtopoints()
                               throws MXException,
                                      java.rmi.RemoteException
        Changes the PLUSCDSPOINTS Relationship before add a new row on that
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • changeRelationship

        protected void changeRelationship(DataBean dsBean,
                                          boolean isAltered)
        This method is responsable for alternating the Asset Function - Calibration Points relashionships according to the View As Loop functionality
        Parameters:
        dsBean -
        isAltered -
      • addrow

        public int addrow()
                   throws MXException
        Check the status of the DataSheet before any row is add to it's set obejct. If the Data Sheet is in approved Status no row can be added.
        Overrides:
        addrow in class DataBean
        Throws:
        MXException
      • setValue

        public void setValue(int nRow,
                             java.lang.String attribute,
                             java.lang.String value,
                             long accessModifier)
                      throws MXException
        Description copied from class: DataBean
        Updates an attribute's value on the given row. Fires a row change event to all the listeners upon success.
        Overrides:
        setValue in class DataBean
        Throws:
        MXException
      • validatePointsSet

        public void validatePointsSet(DataBean pointsBean)
                               throws MXException
        Issues 07-21756/07-21757
        Parameters:
        pointsBean -
        Throws:
        MXException