Class RecentManager.Builder<B extends RecentManager.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
RecentManager

public static class RecentManager.Builder<B extends RecentManager.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public RecentManager build()
      Finish building the RecentManager object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to RecentManager.
      Overrides:
      build in class GObject.Builder<B extends RecentManager.Builder<B>>
      Returns:
      a new instance of RecentManager with the properties that were set in the Builder object.
    • setFilename

      public B setFilename(String filename)
      The full path to the file to be used to store and read the recently used resources list
      Parameters:
      filename - the value for the filename property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onChanged

      public B onChanged(RecentManager.ChangedCallback handler)

      Emitted when the current recently used resources manager changes its contents.

      This can happen either by calling RecentManager.addItem(String) or by another application.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: