Class PopoverMenu.Builder<B extends PopoverMenu.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.gnome.gtk.Widget.Builder<B>
org.gnome.gtk.Popover.Builder<B>
org.gnome.gtk.PopoverMenu.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>, BuilderInterface
- Enclosing class:
PopoverMenu
public static class PopoverMenu.Builder<B extends PopoverMenu.Builder<B>>
extends Popover.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePopoverMenuobject.setFlags(Set<PopoverMenuFlags> flags) The flags thatpopoveruses to create/display a menu from its model.setFlags(PopoverMenuFlags... flags) The flags thatpopoveruses to create/display a menu from its model.setMenuModel(MenuModel menuModel) The model from which the menu is made.setVisibleSubmenu(String visibleSubmenu) The name of the visible submenu.Methods inherited from class Popover.Builder
onActivateDefault, onClosed, setAutohide, setCascadePopdown, setChild, setDefaultWidget, setHasArrow, setMnemonicsVisible, setPointingTo, setPositionMethods inherited from class Widget.Builder
onDestroy, onDirectionChanged, onHide, onKeynavFailed, onMap, onMnemonicActivate, onMoveFocus, onQueryTooltip, onRealize, onShow, onStateFlagsChanged, onUnmap, onUnrealize, setCanFocus, setCanTarget, setCssClasses, setCssName, setCursor, setFocusable, setFocusOnClick, setHalign, setHasTooltip, setHeightRequest, setHexpand, setHexpandSet, setLayoutManager, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class GObject.Builder
onNotifyMethods inherited from class Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Accessible.Builder
setAccessibleRoleMethods inherited from interface BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building thePopoverMenuobject. This will callGObject.withProperties(Type, String[], Value[])to create a new GObject instance, which is then cast toPopoverMenu.- Overrides:
buildin classPopover.Builder<B extends PopoverMenu.Builder<B>>- Returns:
- a new instance of
PopoverMenuwith the properties that were set in the Builder object.
-
setFlags
The flags that
popoveruses to create/display a menu from its model.If a model is set and the flags change, contents are rebuilt, so if setting properties individually, set flags before model to avoid a redundant rebuild.
- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-
setMenuModel
-
setFlags
The flags that
popoveruses to create/display a menu from its model.If a model is set and the flags change, contents are rebuilt, so if setting properties individually, set flags before model to avoid a redundant rebuild.
- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 4.14
-