Trait sap_scripting::traits::GuiVContainerMethods
source · pub trait GuiVContainerMethods<T: GuiContainerMethods + GuiVComponentMethods = Self>: GuiVComponentMethods<T> {
// Provided methods
fn find_by_name<S>(&self, name: S, kind: S) -> Result<SAPComponent>
where S: AsRef<str> { ... }
fn find_by_name_ex<S>(&self, name: S, kind: i64) -> Result<SAPComponent>
where S: AsRef<str> { ... }
}
Expand description
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.
Provided Methods§
sourcefn find_by_name<S>(&self, name: S, kind: S) -> Result<SAPComponent>where
S: AsRef<str>,
fn find_by_name<S>(&self, name: S, kind: S) -> Result<SAPComponent>where S: AsRef<str>,
Unlike FindById, this function does not guarantee a unique result. It will simply return the first descendant matching both the name and type parameters. This is a more natural description of the object than the complex id, but it only makes sense on dynpro objects as most other objects do not have a meaningful name. If no descendant with matching name and type can be found, the function raises an exception.
sourcefn find_by_name_ex<S>(&self, name: S, kind: i64) -> Result<SAPComponent>where
S: AsRef<str>,
fn find_by_name_ex<S>(&self, name: S, kind: i64) -> Result<SAPComponent>where S: AsRef<str>,
This method works exactly like FindByName, but takes the type parameter with data type long coming from the GuiComponentType enumeration. See also GuiComponentType.