Class DBusActionGroup

All Implemented Interfaces:
ActionGroup, RemoteActionGroup, Proxy

@Generated("org.javagi.JavaGI") public class DBusActionGroup extends GObject implements ActionGroup, RemoteActionGroup

GDBusActionGroup is an implementation of the ActionGroup interface.

GDBusActionGroup can be used as a proxy for an action group that is exported over D-Bus with DBusConnection.exportActionGroup(String, ActionGroup).

  • Constructor Details

    • DBusActionGroup

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

      public DBusActionGroup()
      Create a new DBusActionGroup.
  • Method Details

    • getType

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

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

      protected DBusActionGroup asParent()
      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 GObject
      Returns:
      the instance as if it were its parent type
    • get

      public static DBusActionGroup get(DBusConnection connection, @Nullable String busName, String objectPath)

      Obtains a GDBusActionGroup for the action group which is exported at the given busName and objectPath.

      The thread default main context is taken at the time of this call. All signals on the menu model (and any linked models) are reported with respect to this context. All calls on the returned menu model (and linked models) must also originate from this same context, with the thread default main context unchanged.

      This call is non-blocking. The returned action group may or may not already be filled in. The correct thing to do is connect the signals for the action group to monitor for changes and then to call g_action_group_list_actions() to get the initial list.

      Parameters:
      connection - A GDBusConnection
      busName - the bus name which exports the action group or null if connection is not a message bus connection
      objectPath - the object path at which the action group is exported
      Returns:
      a GDBusActionGroup
      Since:
      2.32
    • builder

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