|
|
|
|
@ -8,7 +8,7 @@ import net.pokeranalytics.android.ui.view.RowRepresentableEditDescriptor |
|
|
|
|
/** |
|
|
|
|
* Base Interface to provide the RowRepresentable to the adapter |
|
|
|
|
*/ |
|
|
|
|
interface RowRepresentableDataSource: EditableDataSource, DisplayableDataSource { |
|
|
|
|
interface RowRepresentableDataSource: EditableDataSource, DisplayableDataSource, SelectableDataSource { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Returns a prebuild list of rows |
|
|
|
|
@ -158,3 +158,16 @@ interface EditableDataSource { |
|
|
|
|
return ArrayList() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* An interface providing a way to select a row |
|
|
|
|
*/ |
|
|
|
|
interface SelectableDataSource { |
|
|
|
|
/** |
|
|
|
|
* A boolean to indicate if the row is selected or not |
|
|
|
|
*/ |
|
|
|
|
fun isSelected(row: RowRepresentable): Boolean { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |