Package org.gnome.gtk
Class AppChooserWidget.Builder<B extends AppChooserWidget.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.AppChooserWidget.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Accessible.Builder<B>,AppChooser.Builder<B>,BuilderInterface
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theAppChooserWidgetobject.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, 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.gnome.gtk.AppChooser.Builder
setContentTypeMethods 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 theAppChooserWidgetobject. 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:
buildin classWidget.Builder<B extends AppChooserWidget.Builder<B>>- Returns:
- a new instance of
AppChooserWidgetwith 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-allproperty- Returns:
- the
Builderinstance 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-defaultproperty- Returns:
- the
Builderinstance 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-fallbackproperty- Returns:
- the
Builderinstance 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-otherproperty- Returns:
- the
Builderinstance 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-recommendedproperty- Returns:
- the
Builderinstance 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
Builderinstance 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
Builderinstance is returned, to allow method chaining - See Also:
-