Configuring Siebel Open UI > Architecture of Siebel Open UI > Life Cycle of User Interface Elements >

Summary of Presentation Model Methods


This topic summarizes some of the methods that a presentation model uses during the life cycle of a user interface element.

How Siebel Open UI Uses the Init Method of the Presentation Model

The Init method uses the following methods to configure the properties, methods, and bindings of the presentation model. For an example that uses Init, see Creating the Presentation Model:

  • AddProperty. Adds a property to a presentation model. This property can be simple or derived. If you use AddProperty to define a derived property, then Siebel Open UI uses the Get method on the presentation model to calculate and return the property value. For more information about deriving values, see Deriving Presentation Models, Physical Renderers and Plug-in Wrappers. For more information, see Get Method.
  • AddMethod. Adds a method to the presentation model. For more information, see AddMethod Method.
  • AttachEventHandler. Attaches a method that handles the logical event. Siebel Open UI calls this method when it sends an event to the presentation model through the OnControlEvent method. For more information, see OnControlEvent Method and AttachEventHandler Method.
  • AttachNotificationHandler. Attaches a method that handles the notification that Siebel Open UI calls when the Siebel Server sends a notification to an applet. A notification is a message that Siebel Open UI sends to the client when this client requests Siebel Open UI to modify a business component. For example, to create or delete a business component record. For more information, see Notifications That Siebel Open UI Supports.
  • AttachPSHandler. Handles other incoming property sets that the Siebel Server sends to the client. It can extract the values that a property set contains to individual properties or do other processing.
  • AttachPreProxyExecuteBinding. Attaches a method to the presentation model. Siebel Open UI calls AttachPreProxyExecuteBinding before it processes the reply that it receives from the Siebel Server, but after it receives a reply from this server to the method that Siebel Open UI supplies as an argument. For more information, see Customizing Events.
  • AttachPostProxyExecuteBinding. Attaches a method to the presentation model. Siebel Open UI calls AttachPostProxyExecuteBinding after it processes the reply from the Siebel Server.

The physical renderer calls the following presentation model methods:

  • Get. Gets the value of a property that resides in a presentation model.
  • ExecuteMethod. Runs a method that the AddMethod method calls. For more information, see ExecuteMethod Method.
  • OnControlEvent. Calls an event. The physical renderer uses the OnControlEvent method to call the presentation model and send an event. To call the method, the presentation model uses a binding that exists between the event and the presentation model method and the AttachEventHandler method. For more information, see OnControlEvent Method and AttachEventHandler Method.
  • SetProperty. Sets the value of a presentation model property. The physical renderer can set this value directly in some situations. For more information, see SetProperty Method.

How Siebel Open UI Uses the Setup Method of the Presentation Model

The Setup method extracts the values that a property set contains. If Siebel Open UI creates an object on the Siebel Server, such as a frame, then this server sends the property set that describes this object to the client. Siebel Open UI uses this property set to set up the presentation model properties in the client. The Setup method uses the AddProperty method to extract this property set into presentation model properties. It does this work the first time Siebel Open UI creates the user interface object in the client. For more information, see Methods That Manipulate Property Sets. For an example that uses Setup, see Customizing the Setup Logic of the Presentation Model.

Configuring Siebel Open UI Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.