macroid.viewable

Listable

Related Docs: object Listable | package viewable

trait Listable[A, W <: View] extends AnyRef

Expresses the fact that data type A can be displayed with a widget or layout of type W in two steps: 1) creating the layout 2) filling the layout Therefore suitable for use in ListAdapters

Self Type
Listable[A, W]
Annotations
@implicitNotFound( ... )
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Listable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fillView(view: Ui[W], data: A)(implicit ctx: ActivityContext, appCtx: AppContext): Ui[W]

    Fill the layout with data.

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

  2. abstract def makeView(viewType: Int)(implicit ctx: ActivityContext, appCtx: AppContext): Ui[W]

    Create the layout

  3. abstract def viewType(data: A): Int

    Layout type for a specific value

  4. abstract def viewTypeCount: Int

    Supported number of different layout types

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[W], A) ⇒ Ui[W]): Listable[A, W]

    Add extra fillView function

  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[W]): PartialListable[A, W]

    Convert to partial listable based on a condition

  8. def contraMap[B](f: (B) ⇒ A): Listable[B, W]

    Map the underlying data type A

  9. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

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

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

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

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

    An adapter to use with a ListView

  16. def listAdapterTweak(data: Seq[A])(implicit ctx: ActivityContext, appCtx: AppContext): Tweak[AbsListView]

    A tweak to set the adapter of a ListView

  17. final def ne(arg0: AnyRef): Boolean

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

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

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

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

    Convert to partial listable defined for a subset of a supertype

  22. def toPartial(implicit classTag: ClassTag[W]): PartialListable[A, W]

    Convert to partial listable for composition with alternatives

  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. def toViewable: Viewable[A, W]

    Convert to a viewable

  25. final def wait(arg0: Long, arg1: Int): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped