public class

StampFragmentAdapter

extends FragmentPagerAdapter
implements OnCustomStampSelectedListener OnRubberStampSelectedListener
java.lang.Object
   ↳ FragmentPagerAdapter
     ↳ com.pdftron.pdf.adapter.StampFragmentAdapter

Summary

Public Constructors
StampFragmentAdapter(FragmentManager fm, String standardTitle, String customTitle, StandardStampPreviewAppearance[] standardStampPreviewAppearance, CustomStampPreviewAppearance[] customStampPreviewAppearances, Toolbar toolbar, Toolbar cabToolbar)
Public Methods
int getCount()
Fragment getItem(int position)
CharSequence getPageTitle(int position)
void onCustomStampSelected(String stampId, Obj stampObj)
Called when a custom rubber stamp is selected.
void onRubberStampSelected(String stampLabel)
Called when a standard rubber stamp is selected.
void onRubberStampSelected(String stampId, Obj stampObj)
Called when a custom rubber stamp is selected.
void setOnRubberStampSelectedListener(OnRubberStampSelectedListener listener)
Sets the listener to OnRubberStampSelectedListener.
void setPrimaryItem(ViewGroup container, int position, Object object)
void setTheme(int theme)
Sets theme for the child fragments, default to PDFTronAppTheme
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.interfaces.OnCustomStampSelectedListener
From interface com.pdftron.pdf.interfaces.OnRubberStampSelectedListener

Public Constructors

public StampFragmentAdapter (FragmentManager fm, String standardTitle, String customTitle, StandardStampPreviewAppearance[] standardStampPreviewAppearance, CustomStampPreviewAppearance[] customStampPreviewAppearances, Toolbar toolbar, Toolbar cabToolbar)

Public Methods

public int getCount ()

public Fragment getItem (int position)

public CharSequence getPageTitle (int position)

public void onCustomStampSelected (String stampId, Obj stampObj)

Called when a custom rubber stamp is selected.

Parameters
stampId The identifier of the custom rubber stamp
stampObj The option for creating custom rubber stamp

public void onRubberStampSelected (String stampLabel)

Called when a standard rubber stamp is selected.

Parameters
stampLabel The label of stamp

public void onRubberStampSelected (String stampId, Obj stampObj)

Called when a custom rubber stamp is selected.

Parameters
stampId The identifier of the rubber stamp
stampObj The option for creating custom rubber stamp

public void setOnRubberStampSelectedListener (OnRubberStampSelectedListener listener)

Sets the listener to OnRubberStampSelectedListener.

Parameters
listener The listener

public void setPrimaryItem (ViewGroup container, int position, Object object)

public void setTheme (int theme)

Sets theme for the child fragments, default to PDFTronAppTheme