|
|
|
|
@ -4,7 +4,6 @@ import android.content.Context |
|
|
|
|
import net.pokeranalytics.android.calculus.TextFormat |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowRepresentableEditDescriptor |
|
|
|
|
import org.w3c.dom.Text |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Base Interface to provide the RowRepresentable to the adapter |
|
|
|
|
@ -14,7 +13,7 @@ interface RowRepresentableDataSource: EditableDataSource, DisplayableDataSource |
|
|
|
|
/** |
|
|
|
|
* Returns a prebuild list of rows |
|
|
|
|
*/ |
|
|
|
|
fun adapterRows(): List<out RowRepresentable>? |
|
|
|
|
fun adapterRows(): List<RowRepresentable>? |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns a [RowRepresentable] at position [Int] |
|
|
|
|
@ -74,7 +73,7 @@ interface StaticRowRepresentableDataSource: RowRepresentableDataSource { |
|
|
|
|
* To do that, this interface overrides and provides a default implementation to specific methods of [RowRepresentableDataSource] |
|
|
|
|
*/ |
|
|
|
|
interface LiveRowRepresentableDataSource: RowRepresentableDataSource { |
|
|
|
|
override fun adapterRows(): List<out RowRepresentable>? { |
|
|
|
|
override fun adapterRows(): List<RowRepresentable>? { |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|