macroid.viewable

SlottedListable

Related Doc: package viewable

trait SlottedListable[A] extends Listable[A, View]

A Listable that works by saving widget slots inside the layout's tag and filling them later

Linear Supertypes
Listable[A, View], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SlottedListable
  2. Listable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Slots

    The slots type.

    The slots type. Example:

    class Slots {
      var textView = slot[TextView]
      var imageView = slot[ImageView]
    }

Abstract Value Members

  1. abstract def fillSlots(slots: Slots, data: A)(implicit ctx: ActivityContext, appCtx: AppContext): Ui[Any]

    Fill the slots with data

  2. abstract def makeSlots(viewType: Int)(implicit ctx: ActivityContext, appCtx: AppContext): (Ui[View], Slots)

    Create the layout and a Slots instance, wire the slots, and return both.

    Create the layout and a Slots instance, wire the slots, and return both. Example:

    val slots = new Slots
    val view = w[TextView] <~ wire(slots.textView)
    (view, slots)

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def addFillView(fill: (Ui[View], A) ⇒ Ui[View]): Listable[A, View]

    Add extra fillView function

    Add extra fillView function

    Definition Classes
    Listable
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def cond(p: (A) ⇒ Boolean)(implicit classTag: ClassTag[View]): PartialListable[A, View]

    Convert to partial listable based on a condition

    Convert to partial listable based on a condition

    Definition Classes
    Listable
  8. def contraMap[B](f: (B) ⇒ A): Listable[B, View]

    Map the underlying data type A

    Map the underlying data type A

    Definition Classes
    Listable
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def fillView(view: Ui[View], data: A)(implicit ctx: ActivityContext, appCtx: AppContext): Ui[View]

    Fill the layout with data.

    Fill the layout with data. Will be always called with layouts created by makeView using viewType(data)

    Definition Classes
    SlottedListableListable
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def listAdapter(data: Seq[A])(implicit ctx: ActivityContext, appCtx: AppContext): ListableListAdapter[A, View]

    An adapter to use with a ListView

    An adapter to use with a ListView

    Definition Classes
    Listable
  17. def listAdapterTweak(data: Seq[A])(implicit ctx: ActivityContext, appCtx: AppContext): Tweak[AbsListView]

    A tweak to set the adapter of a ListView

    A tweak to set the adapter of a ListView

    Definition Classes
    Listable
  18. def makeView(viewType: Int)(implicit ctx: ActivityContext, appCtx: AppContext): Ui[View]

    Create the layout

    Create the layout

    Definition Classes
    SlottedListableListable
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toParent[B](implicit classTagA: ClassTag[A], classTagW: ClassTag[View]): PartialListable[B, View]

    Convert to partial listable defined for a subset of a supertype

    Convert to partial listable defined for a subset of a supertype

    Definition Classes
    Listable
  24. def toPartial(implicit classTag: ClassTag[View]): PartialListable[A, View]

    Convert to partial listable for composition with alternatives

    Convert to partial listable for composition with alternatives

    Definition Classes
    Listable
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def toViewable: Viewable[A, View]

    Convert to a viewable

    Convert to a viewable

    Definition Classes
    Listable
  27. def viewType(data: A): Int

    Layout type for a specific value

    Layout type for a specific value

    Definition Classes
    SlottedListableListable
  28. def viewTypeCount: Int

    Supported number of different layout types

    Supported number of different layout types

    Definition Classes
    SlottedListableListable
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Listable[A, View]

Inherited from AnyRef

Inherited from Any

Ungrouped