Class SwipeBackSupport

java.lang.Object
com.codename1.ui.util.SwipeBackSupport

public class SwipeBackSupport extends java.lang.Object
Allows binding a swipe listener to the form that enables the user to swipe back to the previous form.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    bind(Form currentForm, LazyValue<Form> destination)
    Binds support for swiping to the given forms
    static void
    bindBack(Form currentForm, LazyValue<Form> destination)
    Binds support for swiping to the given forms
    static void
    bindBack(LazyValue<Form> destination)
    Binds support for swiping to the current form

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SwipeBackSupport

      public SwipeBackSupport()
  • Method Details

    • bindBack

      public static void bindBack(Form currentForm, LazyValue<Form> destination)

      Binds support for swiping to the given forms

      Parameters
      • currentForm: the current form

      • destination: the destination form which can be created lazily

    • bindBack

      public static void bindBack(LazyValue<Form> destination)

      Binds support for swiping to the current form

      Parameters
      • destination: the destination form which can be created lazily
    • bind

      protected void bind(Form currentForm, LazyValue<Form> destination)

      Binds support for swiping to the given forms

      Parameters
      • currentForm: the current form

      • destination: the destination form which can be created lazily