|
|
|
@ -93,11 +93,8 @@ class UnmanagedRowRepresentableException(message: String) : Exception(message) { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* An interface used to provide RowRepresentableAdapter content and value in the form of rows |
|
|
|
* An interface used to provide RowRepresentableAdapter content and value in the form of rows |
|
|
|
* |
|
|
|
* |
|
|
|
* Also returns the appropriate value for any RowRepresentable in the form of : |
|
|
|
* Returns values for any RowRepresentable in various forms to display |
|
|
|
* - string |
|
|
|
* the appropriate numericValues in graphical filterConditions, such as labels, textfields, switchs... |
|
|
|
* - booleans |
|
|
|
|
|
|
|
* - actionIcon |
|
|
|
|
|
|
|
* to display the appropriate numericValues in graphical filterConditions, such as labels, textfields, switchs... |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
interface DisplayableDataSource { |
|
|
|
interface DisplayableDataSource { |
|
|
|
|
|
|
|
|
|
|
|
@ -119,20 +116,6 @@ interface DisplayableDataSource { |
|
|
|
return -1 |
|
|
|
return -1 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Returns a localized string for a specific row |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
// fun charSequenceForRow(row: RowRepresentable, context: Context): String { |
|
|
|
|
|
|
|
// return charSequenceForRow(row, context, 0) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// |
|
|
|
|
|
|
|
// /** |
|
|
|
|
|
|
|
// * Returns a string for a specific row |
|
|
|
|
|
|
|
// */ |
|
|
|
|
|
|
|
// fun charSequenceForRow(row: RowRepresentable, context: Context, tag: Int = 0): String { |
|
|
|
|
|
|
|
// return "" |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*** |
|
|
|
/*** |
|
|
|
* Returns a CharSequence representation of the [row] |
|
|
|
* Returns a CharSequence representation of the [row] |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -195,12 +178,14 @@ interface DisplayableDataSource { |
|
|
|
* An interface providing a way to describe how the edition of a [RowRepresentable] will be displayed |
|
|
|
* An interface providing a way to describe how the edition of a [RowRepresentable] will be displayed |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
interface EditableDataSource { |
|
|
|
interface EditableDataSource { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* A list of [RowRepresentableEditDescriptor] object specifying the way the edition will be handled |
|
|
|
* A list of [RowRepresentableEditDescriptor] object specifying the way the edition will be handled |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
fun editDescriptors(row: RowRepresentable): ArrayList<RowRepresentableEditDescriptor>? { |
|
|
|
fun editDescriptors(row: RowRepresentable): List<RowRepresentableEditDescriptor>? { |
|
|
|
return null |
|
|
|
return null |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|