com.ibm.tivoli.maximo.miniapps.scheduler.compare

Class CompareViewBean

    • Field Detail

      • COL_SCENARIO_NAME

        public static final java.lang.String COL_SCENARIO_NAME
        See Also:
        Constant Field Values
      • currentTooltipActivityId

        protected java.lang.String currentTooltipActivityId
      • currentCompareJsonData

        protected com.ibm.json.java.JSONObject currentCompareJsonData
    • Constructor Detail

      • CompareViewBean

        public CompareViewBean()
    • Method Detail

      • COMPARE

        public int COMPARE()
        COMPARE mxevent to open the Compare Scenarios Dialog
        Returns:
      • addCompareIcons

        protected void addCompareIcons(UIOptions opts)
      • updateCompareData

        public void updateCompareData(WebClientSession sess,
                                      com.ibm.json.java.JSONObject compareJsonData)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • loadCompareData

        public void loadCompareData(WebClientSession sess,
                                    com.ibm.json.java.JSONObject compareJsonData)
                             throws java.lang.Exception
        Load the compare project data
        Parameters:
        sess -
        Throws:
        java.lang.Exception
      • loadCompareUI

        public void loadCompareUI(WebClientSession sess,
                                  java.lang.String appName,
                                  com.ibm.json.java.JSONObject compareJsonData)
                           throws java.lang.Exception
        Load the compare project data
        Parameters:
        sess -
        Throws:
        java.lang.Exception
      • onReset

        public void onReset()
        Description copied from class: BaseTreeGridMiniAppBean
        OnReset is called whenever we need to clear the state of our beean. And reinitialize it for a new state. ie, when Maximo changes a record, etc, we need to clear the bean data, the load the state for that record
        Specified by:
        onReset in interface ResetListener
        Overrides:
        onReset in class BaseTreeGridMiniAppBean
      • getProjectId

        protected java.lang.String getProjectId(int modelId)
      • getScenarioName

        protected java.lang.String getScenarioName(int modelId)
      • getTooltip

        public DynamicTooltip getTooltip(WebClientSession sess,
                                         java.lang.String projectid,
                                         java.lang.String col,
                                         java.lang.String id)
                                  throws MXException,
                                         java.rmi.RemoteException,
                                         java.lang.InterruptedException,
                                         java.util.concurrent.ExecutionException
        In a CompareView each ID has a postfix of .0, .1, or .2. TreeGrid required that each row have a unique id. We need to pop off the .0, .1, or .2 and the use that to determine which model to use when fetching the tooltip
        Overrides:
        getTooltip in class BaseTreeGridMiniAppBean
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException