Bookshelf Home | Contents | Index | PDF |
Configuring Siebel Open UI > Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Component Manager ClassThis topic describes the methods that Siebel Open UI uses with the Component Manager class. It includes the following information: The Component Manager class manages components in Siebel Open UI. It can create or delete components and it allows you to configure Siebel Open UI to search for a component according to criteria that you specify. The DeleteComponent method deletes a component from the component tree. It uses the following syntax: For example, the following code deletes the component that SiebelAppFacade.ComponentMgr.DeleteComponent(cmpObj); The FindComponent method identifies a component according to the criteria that a function specifies. It returns an array that includes component names. If it cannot identify any components, then it returns nothing. It uses the following syntax: FindComponent({id : "custom_dependency_object"}); Siebel Open UI maps the Id of the component to the name of this component. It does the same mapping when it uses the MakeComponent method to create a dependency. You can use the following code to find a component according to the component Id: var cmpObj = SiebelAppFacade.ComponentMgr.FindComponent({id : If you provide a component and a relation, then the FindComponent method gets a list of components according to the component and relation that you specify. You use the following code: var cmprelationship = SiebelAppFacade.ComponentMgr.FindComponent({cmp: cmpObj, rel : consts.get("values")});
For example, the following code gets a list of parents: var cmpParent = SiebelAppFacade.ComponentMgr.FindComponent({cmp: cmpObj, rel : consts.get("SWE_CMP_REL_PARENT")}); The MakeComponent method creates a component. It returns nothing. It uses the following syntax: SiebelAppFacade.ComponentMgr.MakeComponent(parent,psInfo, dependency);
The MakeComponent method does the following work:
For an example that uses the MakeComponent method, see Creating Components. The Show method that Siebel Open UI uses for component managers displays components. It uses the following syntax: The Show method that Siebel Open UI uses for component managers calls a show on the component object. This component object then calls a Show method on the physical renderer that the component references. You can use the Show method to configure Siebel Open UI to display all components that reside in the tree that contains the component. If you must configure Siebel Open UI to display only one component, then is recommended that you use the Show method on each individual component. For information about the Show method that Siebel Open UI uses for components, see Setup Method for Components. |
Configuring Siebel Open UI | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |