psdi.webclient.beans.common

Class AssetLocDrilldownBean

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


    public class AssetLocDrilldownBean
    extends DataBean
    • Field Detail

      • DRILLDOWN_DIALOG_RETURN_NOTHING

        public static final int DRILLDOWN_DIALOG_RETURN_NOTHING
        See Also:
        Constant Field Values
      • DRILLDOWN_DIALOG_RETURN_LOCATION

        public static final int DRILLDOWN_DIALOG_RETURN_LOCATION
        See Also:
        Constant Field Values
      • DRILLDOWN_DIALOG_RETURN_ASSET

        public static final int DRILLDOWN_DIALOG_RETURN_ASSET
        See Also:
        Constant Field Values
      • DRILLDOWN_DIALOG_RETURN_SYSTEM

        public static final int DRILLDOWN_DIALOG_RETURN_SYSTEM
        See Also:
        Constant Field Values
      • DRILLDOWN_DIALOG_RETURN_SITE

        public static final int DRILLDOWN_DIALOG_RETURN_SITE
        See Also:
        Constant Field Values
      • DRILLDOWN_DIALOG_RETURN_ALL

        public static final int DRILLDOWN_DIALOG_RETURN_ALL
        See Also:
        Constant Field Values
      • pageType

        public int pageType
      • whichTabToStart

        public java.lang.String whichTabToStart
    • Constructor Detail

      • AssetLocDrilldownBean

        public AssetLocDrilldownBean()
    • 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
      • getStartingTab

        public java.lang.String getStartingTab()
        Returns:
        string values: LOCATIONS: start with the location tab ASSET: start with the asset tab ASSETGETTOP:start with the asset tab and fire getTop
        Throws:
        MXException
        java.rmi.RemoteException
      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: DataBean
        This method is meant to be overrided by dialog beans but by default if the bean's remote is a NonPersistentMboSetRemote, then execute is called on the bean's remote and if the DataBean has a parent then execute is called on the bean's parent bean. If the remote is not a NonPersistentMboSetRemote then if the bean has a parentbean and a parent relationship then execute is called on the parent bean, else save is called on the bean's remote If you do not want to save the parent of the bean then override execute and just call save.
        Overrides:
        execute in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • setValue

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

        public boolean getflag(long flag)
      • setflag

        public void setflag(long flag)
      • clearflag

        public void clearflag(long flag)
      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        Description copied from class: DataBean
        Obtains and returns a MboSetRemote using the mboname of parent/relationship setup for the bean. Override this method if the DataBean needs to get a MboSetRemote in a non-standard way. (Not via a the MXSession, or a relationship from another DataBean).
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • wasAssetNull

        public boolean wasAssetNull()
                             throws MXException,
                                    java.rmi.RemoteException
        09-23038
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • wasLocNull

        public boolean wasLocNull()
                           throws MXException,
                                  java.rmi.RemoteException
        09-23038
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException