com.ibm.tivoli.maximo.amcrew.workman.beans

Class AssignCrewBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class AssignCrewBean
    extends AMBaseBean
    Assign Crew dialog bean
    • Constructor Detail

      • AssignCrewBean

        public AssignCrewBean()
    • 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
      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        This retrieves the AssignmentSet created in WMAssignmentSet.assignCrew and attaches it to this bean for display in the table.
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • cancelAMAssignCrewDialog

        public int cancelAMAssignCrewDialog()
                                     throws MXException,
                                            java.rmi.RemoteException
        If the user cancels out of the Assign Crew dialog, we must clear the selection on the crew list, but only if the action was clicking the availability grid. If they checked a checkbox and then used the drop-down menu or the toolbar button we want to let the selection stand (because it's visible). This method also takes care of another case. If they select a row *and* click the grid, we unselect the row before doing anything, so it's no problem in the objects, but we also must clear the checked checkbox on the screen. The call to Utility.sendEvent triggers a refresh event on the main page, as opposed to the Assign Crew dialog, which is what's needed -- as per Scott Manning's recommendation.
        Throws:
        MXException
        java.rmi.RemoteException