Package org.gnome.gtk
Class Popover.Builder<B extends Popover.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>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePopoverobject.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, setLimitEvents, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOverflow, setReceivesDefault, setSensitive, setTooltipMarkup, setTooltipText, setValign, setVexpand, setVexpandSet, setVisible, setWidthRequestMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gnome.gtk.Accessible.Builder
setAccessibleRoleMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building thePopoverobject. 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:
buildin classWidget.Builder<B extends Popover.Builder<B>>- Returns:
- a new instance of
Popoverwith the properties that were set in the Builder object.
-
setAutohide
Whether to dismiss the popover on outside clicks.- Parameters:
autohide- the value for theautohideproperty- Returns:
- the
Builderinstance 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-popdownproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setChild
-
setDefaultWidget
-
setHasArrow
Whether to draw an arrow.- Parameters:
hasArrow- the value for thehas-arrowproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setMnemonicsVisible
Whether mnemonics are currently visible in this popover.- Parameters:
mnemonicsVisible- the value for themnemonics-visibleproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setPointingTo
-
setPosition
How to place the popover, relative to its parent.- Parameters:
position- the value for thepositionproperty- Returns:
- the
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-
onClosed
Emitted when the popover is closed.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-