public abstract class

SkeletalFragmentBuilder

extends Object
implements Parcelable Builder<E>
java.lang.Object
   ↳ com.pdftron.pdf.interfaces.builder.SkeletalFragmentBuilder<E extends Fragment>
Known Direct Subclasses

Class Overview

Skeletal class with minimal implementation required for a Fragment builder.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
SkeletalFragmentBuilder()
Public Methods
E build(Context context)
Convenience build method that calls build(Context, Class) with the default class for this builder.
<T extends E extends Fragment> T build(Context context, Class<T> clazz)
Create the specified Fragment of type E, initialized with builder settings.
abstract void checkArgs(Context context)
Check the arguments of this builder.
abstract Bundle createBundle(Context context)
Create the bundle that will be passed as arguments to the Fragment.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable
From interface com.pdftron.pdf.interfaces.builder.Builder

Public Constructors

public SkeletalFragmentBuilder ()

Public Methods

public E build (Context context)

Convenience build method that calls build(Context, Class) with the default class for this builder.

Parameters
context the context used to initialize the fragment and its theme.
Returns
  • an instance of E with the specified parameters from the builder.

public T build (Context context, Class<T> clazz)

Create the specified Fragment of type E, initialized with builder settings. Uses the theme from the specified context.

Parameters
context the context used to initialize the fragment and its theme.
clazz the class this builder will use to create the instance.
Returns
  • a E that is an instance of the given type T, with the specified parameters from the builder.

public abstract void checkArgs (Context context)

Check the arguments of this builder. You can also det the default builder parameters in this method.

Parameters
context used to initialize default building parameters

public abstract Bundle createBundle (Context context)

Create the bundle that will be passed as arguments to the Fragment. Called right after calling checkArgs(Context)

Parameters
context used to initialize arguments for the bundle.
Returns
  • the bundle with the required arguments for the Fragment.