Package ch.bailu.gtk.gtk
Class AppChooser
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gtk.AppChooser
- All Implemented Interfaces:
PointerInterface
`GtkAppChooser` is an interface for widgets which allow the user to
choose an application.
The main objects that implement this interface are
[class@Gtk.AppChooserWidget],
[class@Gtk.AppChooserDialog] and [class@Gtk.AppChooserButton].
Applications are represented by GIO `GAppInfo` objects here.
GIO has a concept of recommended and fallback applications for a
given content type. Recommended applications are those that claim
to handle the content type itself, while fallback also includes
applications that handle a more generic content type. GIO also
knows the default and last-used application for a given content
type. The `GtkAppChooserWidget` provides detailed control over
whether the shown list of applications should include default,
recommended or fallback applications.
To obtain the application that has been selected in a `GtkAppChooser`,
use [method@Gtk.AppChooser.get_app_info].
choose an application.
The main objects that implement this interface are
[class@Gtk.AppChooserWidget],
[class@Gtk.AppChooserDialog] and [class@Gtk.AppChooserButton].
Applications are represented by GIO `GAppInfo` objects here.
GIO has a concept of recommended and fallback applications for a
given content type. Recommended applications are those that claim
to handle the content type itself, while fallback also includes
applications that handle a more generic content type. GIO also
knows the default and last-used application for a given content
type. The `GtkAppChooserWidget` provides detailed control over
whether the shown list of applications should include default,
recommended or fallback applications.
To obtain the application that has been selected in a `GtkAppChooser`,
use [method@Gtk.AppChooser.get_app_info].
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the currently selected application.static ClassHandler
Returns the content type for which the `GtkAppChooser`
shows applications.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
void
refresh()
Reloads the list of applications.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
AppChooser
-
-
Method Details
-
getClassHandler
-
getAppInfo
Returns the currently selected application.- Returns:
- a `GAppInfo` for the currently selected application
-
getContentType
Returns the content type for which the `GtkAppChooser`
shows applications.- Returns:
- the content type of @self. Free with g_free()
-
refresh
public void refresh()Reloads the list of applications. -
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-