psdi.webclient.beans.designer

Class TypeAheadBean

    • Constructor Detail

      • TypeAheadBean

        public TypeAheadBean()
    • Method Detail

      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        gets the Datastore Mbo to display in the configuration dialog. Finds the mbo for the Datastore in AppInstance.DatastoreSet, copies it and displays it in the dialog. If the dialog is cancelled the copy is thrown away, and if the dialog is saved (clicking ok) the copy is kept and the original is thrown away.
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        update the nonpersistent datastore mboset with current changes. this method replaces the typeahead children of the matching datastore in AppInstance.datastoreSet with the typeahead children from this bean. if datastore is not found at all, adds this datastore mbo to the AppInstance.datastoreSet. If all children are deleted from the bean's child set, remove the datastore as well
        Overrides:
        execute in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • addNewDatastore

        protected MboRemote addNewDatastore(MboSetRemote datastoreSet,
                                            java.lang.String attribute,
                                            java.lang.String datasrc,
                                            java.lang.String domain)
                                     throws MXException,
                                            java.rmi.RemoteException
        adds a new datastore object with a default typeahead entry to the passed in datastoreSet for datastore: need to set the id to a unique value. attribute, datasrc, domain need to be set explicitly validfor, cachedata will default (based on virtual object default) for typeahead child: need to set the id to a unique value, domainattribute is set to attribute, keyattribute is true type will default based on relationname. see DatastoreChild.add()
        Parameters:
        curControl -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • updateChildSet

        protected boolean updateChildSet(java.lang.String setName,
                                         MboRemote targetDatastore)
                                  throws MXException,
                                         java.rmi.RemoteException
        updates the named child set for the target datastore to the child set contained in this databean returns boolean whether the set was updated or not used by subclass FilterSetValueBean
        Parameters:
        setName -
        targetDatastore -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException