Class AppChooserDialog

All Implemented Interfaces:
Accessible, AppChooser, Buildable, ConstraintTarget, Native, Root, ShortcutManager, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class AppChooserDialog extends Dialog implements Accessible, AppChooser, Buildable, ConstraintTarget, Native, Root, ShortcutManager
Deprecated.
The application selection widgets should be implemented according to the design of each platform and/or application requiring them.

GtkAppChooserDialog shows a GtkAppChooserWidget inside a GtkDialog.

An example GtkAppChooserDialog

Note that GtkAppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded GtkAppChooserWidget using getWidget() and call its methods if the generic AppChooser interface is not sufficient for your needs.

To set the heading that is shown above the GtkAppChooserWidget, use setHeading(String).

CSS nodes

GtkAppChooserDialog has a single CSS node with the name window and style class .appchooser.

  • Constructor Details

    • AppChooserDialog

      public AppChooserDialog(MemorySegment address)
      Deprecated.
      Create a AppChooserDialog instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • AppChooserDialog

      @Deprecated public AppChooserDialog(@Nullable Window parent, Set<DialogFlags> flags, File file)
      Deprecated.
      This widget will be removed in GTK 5

      Creates a new GtkAppChooserDialog for the provided GFile.

      The dialog will show applications that can open the file.

      Parameters:
      parent - a GtkWindow
      flags - flags for this dialog
      file - a GFile
    • AppChooserDialog

      @Deprecated public AppChooserDialog(@Nullable Window parent, DialogFlags flags, File file)
      Deprecated.
      This widget will be removed in GTK 5

      Creates a new GtkAppChooserDialog for the provided GFile.

      The dialog will show applications that can open the file.

      Parameters:
      parent - a GtkWindow
      flags - flags for this dialog
      file - a GFile
    • AppChooserDialog

      public AppChooserDialog()
      Deprecated.
      Create a new AppChooserDialog.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the AppChooserDialog class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected AppChooserDialog asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Dialog
      Returns:
      the instance as if it were its parent type
    • forContentType

      @Deprecated public static AppChooserDialog forContentType(@Nullable Window parent, Set<DialogFlags> flags, String contentType)
      Deprecated.
      This widget will be removed in GTK 5

      Creates a new GtkAppChooserDialog for the provided content type.

      The dialog will show applications that can open the content type.

      Parameters:
      parent - a GtkWindow
      flags - flags for this dialog
      contentType - a content type string
      Returns:
      a newly created GtkAppChooserDialog
    • forContentType

      @Deprecated public static AppChooserDialog forContentType(@Nullable Window parent, DialogFlags flags, String contentType)
      Deprecated.
      This widget will be removed in GTK 5

      Creates a new GtkAppChooserDialog for the provided content type.

      The dialog will show applications that can open the content type.

      Parameters:
      parent - a GtkWindow
      flags - flags for this dialog
      contentType - a content type string
      Returns:
      a newly created GtkAppChooserDialog
    • getHeading

      @Deprecated public @Nullable String getHeading()
      Deprecated.
      This widget will be removed in GTK 5
      Returns the text to display at the top of the dialog.
      Returns:
      the text to display at the top of the dialog, or null, in which case a default text is displayed
    • getWidget

      @Deprecated public Widget getWidget()
      Deprecated.
      This widget will be removed in GTK 5
      Returns the GtkAppChooserWidget of this dialog.
      Returns:
      the GtkAppChooserWidget of this AppChooserDialog
    • setHeading

      @Deprecated public void setHeading(String heading)
      Deprecated.
      This widget will be removed in GTK 5

      Sets the text to display at the top of the dialog.

      If the heading is not set, the dialog displays a default text.

      Parameters:
      heading - a string containing Pango markup
    • builder

      public static AppChooserDialog.Builder<? extends AppChooserDialog.Builder> builder()
      Deprecated.
      A AppChooserDialog.Builder object constructs a AppChooserDialog with the specified properties. Use the various set...() methods to set properties, and finish construction with AppChooserDialog.Builder.build().
      Returns:
      the builder object