Trait

macroid.viewable

SlottedListable

Related Doc: package viewable

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Slots

    Permalink

    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: ContextWrapper): Ui[Any]

    Permalink

    Fill the slots with data

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

    Permalink

    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

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

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

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

    Permalink

    Add extra fillView function

    Add extra fillView function

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

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

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

    Permalink

    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]

    Permalink

    Map the underlying data type A

    Map the underlying data type A

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

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

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

    Permalink

    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

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

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

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

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

    Permalink

    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: ContextWrapper): Tweak[AbsListView]

    Permalink

    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: ContextWrapper): Ui[View]

    Permalink

    Create the layout

    Create the layout

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

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

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

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

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

    Permalink

    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]

    Permalink

    Convert to partial listable for composition with alternatives

    Convert to partial listable for composition with alternatives

    Definition Classes
    Listable
  25. def toString(): String

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

    Permalink

    Convert to a viewable

    Convert to a viewable

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

    Permalink

    Layout type for a specific value

    Layout type for a specific value

    Definition Classes
    SlottedListableListable
  28. def viewTypeCount: Int

    Permalink

    Supported number of different layout types

    Supported number of different layout types

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Listable[A, View]

Inherited from AnyRef

Inherited from Any

Ungrouped