Class SidebarSection.Builder<B extends SidebarSection.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.adw.SidebarSection.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
SidebarSection
public static class SidebarSection.Builder<B extends SidebarSection.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
- Since:
- 1.9
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSidebarSectionobject.setMenuModel(MenuModel menuModel) Context menu model for the section items.Title of the section.Methods inherited from class GObject.Builder
onNotifyMethods inherited from class Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theSidebarSectionobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toSidebarSection.- Overrides:
buildin classGObject.Builder<B extends SidebarSection.Builder<B>>- Returns:
- a new instance of
SidebarSectionwith the properties that were set in the Builder object.
-
setMenuModel
Context menu model for the section items.
When a context menu is shown for an item, it will be constructed from the provided menu model. Use the
Sidebar::setup-menusignal to set up the menu actions for the particular item.If not set,
Sidebar:menu-modelwill be used instead.- Parameters:
menuModel- the value for themenu-modelproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 1.9
-
setTitle
-