コード例 #1
0
 /// <summary>
 /// Attaches event handler <code>fnFunction</code> to the {@link #event:select select} event of this <code>sap.ui.unified.MenuItemBase</code>.
 ///
 /// When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code> if specified, otherwise it will be bound to this <code>sap.ui.unified.MenuItemBase</code> itself.
 ///
 /// Fired when the item is selected by the user. <b>Note:</b> The event is also available for items which have a submenu. In general, applications must not handle event in this case because the user selection opens the sub menu.
 /// </summary>
 /// <param name="fnFunction">The function to be called when the event occurs</param>
 /// <returns>Reference to <code>this</code> in order to allow method chaining</returns>
 public extern virtual sap.ui.unified.MenuItemBase attachSelect(sap.ui.unified.Menu.SelectDelegate fnFunction);
コード例 #2
0
 /// <summary>
 /// Detaches event handler <code>fnFunction</code> from the {@link #event:select select} event of this <code>sap.ui.unified.MenuItemBase</code>.
 ///
 /// The passed function and listener object must match the ones used for event registration.
 /// </summary>
 /// <param name="fnFunction">The function to be called, when the event occurs</param>
 /// <param name="oListener">Context object on which the given function had to be called</param>
 /// <returns>Reference to <code>this</code> in order to allow method chaining</returns>
 public extern virtual sap.ui.unified.MenuItemBase detachSelect(sap.ui.unified.Menu.SelectDelegate fnFunction, object oListener);
コード例 #3
0
 /// <summary>
 /// Attaches event handler <code>fnFunction</code> to the {@link #event:itemSelect itemSelect} event of this <code>sap.ui.unified.Menu</code>.
 ///
 /// When called, the context of the event handler (its <code>this</code>) will be bound to <code>oListener</code> if specified, otherwise it will be bound to this <code>sap.ui.unified.Menu</code> itself.
 ///
 /// Fired on the root menu of a menu hierarchy whenever a user selects an item within the menu or within one of its direct or indirect submenus. <b>Note:</b> There is also a select event available for each single menu item. This event and the event of the menu items are redundant.
 /// </summary>
 /// <param name="oData">An application-specific payload object that will be passed to the event handler along with the event object when firing the event</param>
 /// <param name="fnFunction">The function to be called when the event occurs</param>
 /// <returns>Reference to <code>this</code> in order to allow method chaining</returns>
 public extern virtual sap.ui.unified.Menu attachItemSelect(object oData, sap.ui.unified.Menu.SelectDelegate fnFunction);