|
|
|
@ -8,7 +8,7 @@ import net.pokeranalytics.android.ui.view.RowRepresentableEditDescriptor |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Base Interface to provide the RowRepresentable to the adapter |
|
|
|
* Base Interface to provide the RowRepresentable to the adapter |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
interface RowRepresentableDataSource: EditableDataSource, DisplayableDataSource { |
|
|
|
interface RowRepresentableDataSource: EditableDataSource, DisplayableDataSource, SelectableDataSource { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns a prebuild list of rows |
|
|
|
* Returns a prebuild list of rows |
|
|
|
@ -157,4 +157,17 @@ interface EditableDataSource { |
|
|
|
fun editDescriptors(row: RowRepresentable): ArrayList<RowRepresentableEditDescriptor> { |
|
|
|
fun editDescriptors(row: RowRepresentable): ArrayList<RowRepresentableEditDescriptor> { |
|
|
|
return ArrayList() |
|
|
|
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 |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |