The "add-tearoffs" property controls whether generated menus have tearoff menu items.
Note that this only affects regular menus. Generated popup menus never have tearoff menu items.
Builder instance for fluent chaining
Deprecated: Tearoff menus are deprecated and should not be used in newly written code.
Set addTearoffs property.