Package org.gnome.gtk
Class Popover.Builder<B extends Popover.Builder<B>>
java.lang.Object
io.github.jwharm.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>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
- Direct Known Subclasses:
EmojiChooser.Builder
,PopoverMenu.Builder
- Enclosing class:
Popover
public static class Popover.Builder<B extends Popover.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building thePopover
object.Emitted whend the user activates the default widget.onClosed
(Popover.ClosedCallback handler) Emitted when the popover is closed.setAutohide
(boolean autohide) Whether to dismiss the popover on outside clicks.setCascadePopdown
(boolean cascadePopdown) Whether the popover pops down after a child popover.The child widget.setDefaultWidget
(Widget defaultWidget) The default widget inside the popover.setHasArrow
(boolean hasArrow) Whether to draw an arrow.setMnemonicsVisible
(boolean mnemonicsVisible) Whether mnemonics are currently visible in this popover.setPointingTo
(Rectangle pointingTo) Rectangle in the parent widget that the popover points to.setPosition
(PositionType position) How to place the popover, relative to its parent.Methods inherited from class org.gnome.gtk.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, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequest
Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRole
Methods inherited from interface io.github.jwharm.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building thePopover
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toPopover
.- Overrides:
build
in classWidget.Builder<B extends Popover.Builder<B>>
- Returns:
- a new instance of
Popover
with the properties that were set in the Builder object.
-
setAutohide
Whether to dismiss the popover on outside clicks.- Parameters:
autohide
- the value for theautohide
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setCascadePopdown
Whether the popover pops down after a child popover.This is used to implement the expected behavior of submenus.
- Parameters:
cascadePopdown
- the value for thecascade-popdown
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setChild
-
setDefaultWidget
-
setHasArrow
Whether to draw an arrow.- Parameters:
hasArrow
- the value for thehas-arrow
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setMnemonicsVisible
Whether mnemonics are currently visible in this popover.- Parameters:
mnemonicsVisible
- the value for themnemonics-visible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPointingTo
-
setPosition
How to place the popover, relative to its parent.- Parameters:
position
- the value for theposition
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onActivateDefault
Emitted whend the user activates the default widget.This is a keybinding signal.
The default binding for this signal is
Enter
.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onClosed
Emitted when the popover is closed.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-