Package org.gnome.gtk
Class AppChooserWidget.Builder<B extends AppChooserWidget.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.AppChooserWidget.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
,Accessible.Builder<B>
,AppChooser.Builder<B>
- Enclosing class:
AppChooserWidget
public static class AppChooserWidget.Builder<B extends AppChooserWidget.Builder<B>>
extends Widget.Builder<B>
implements Accessible.Builder<B>, AppChooser.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theAppChooserWidget
object.Emitted when an application item is activated from the widget's list.Emitted when an application item is selected from the widget's list.setDefaultText
(String defaultText) The text that appears in the widget when there are no applications for the given content type.setShowAll
(boolean showAll) Iftrue
, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications.setShowDefault
(boolean showDefault) Determines whether the app chooser should show the default handler for the content type in a separate section.setShowFallback
(boolean showFallback) Determines whether the app chooser should show a section for fallback applications.setShowOther
(boolean showOther) Determines whether the app chooser should show a section for other applications.setShowRecommended
(boolean showRecommended) Determines whether the app chooser should show a section for recommended applications.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 org.gnome.gtk.AppChooser.Builder
setContentType
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 theAppChooserWidget
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 toAppChooserWidget
.- Overrides:
build
in classWidget.Builder<B extends AppChooserWidget.Builder<B>>
- Returns:
- a new instance of
AppChooserWidget
with the properties that were set in the Builder object.
-
setDefaultText
-
setShowAll
Iftrue
, the app chooser presents all applications in a single list, without subsections for default, recommended or related applications.- Parameters:
showAll
- the value for theshow-all
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowDefault
Determines whether the app chooser should show the default handler for the content type in a separate section.If
false
, the default handler is listed among the recommended applications.- Parameters:
showDefault
- the value for theshow-default
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowFallback
Determines whether the app chooser should show a section for fallback applications.If
false
, the fallback applications are listed among the other applications.- Parameters:
showFallback
- the value for theshow-fallback
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowOther
Determines whether the app chooser should show a section for other applications.- Parameters:
showOther
- the value for theshow-other
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setShowRecommended
Determines whether the app chooser should show a section for recommended applications.If
false
, the recommended applications are listed among the other applications.- Parameters:
showRecommended
- the value for theshow-recommended
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onApplicationActivated
Emitted when an application item is activated from the widget's list.This usually happens when the user double clicks an item, or an item is selected and the user presses one of the keys Space, Shift+Space, Return or Enter.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onApplicationSelected
Emitted when an application item is selected from the widget's list.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-