Module sap_scripting::traits

source ·
Expand description

The methods available are exposed through traits.

Traits

  • A GuiBox is a simple frame with a name (also called a “Group Box”). The items inside the frame are not children of the box. The type prefix is “box”.
  • GuiComponent is the base class for most classes in the Scripting API. It was designed to allow generic programming, meaning you can work with objects without knowing their exact type.
  • This interface resembles GuiVContainer. The only difference is that it is not intended for visual objects but rather administrative objects such as connections or sessions. Objects exposing this interface will therefore support GuiComponent but not GuiVComponent. GuiContainer extends the GuiComponent Object.
  • The GuiVComponent interface is exposed by all visual objects, such as windows, buttons or text fields. Like GuiComponent, it is an abstract interface. Any object supporting the GuiVComponent interface also exposes the GuiComponent interface. GuiVComponent extends the GuiComponent Object.
  • An object exposes the GuiVContainer interface if it is both visible and can have children. It will then also expose GuiComponent and GuiVComponent. Examples of this interface are windows and subscreens, toolbars or controls having children, such as the splitter control. GuiVContainer extends the GuiContainer Object and the GuiVComponent Object.
  • A component that has an IDispatch value. Every component needs this, and this trait guarantees that.