Skip to content

Commit

Permalink
#989 adding column value provider to data table trait
Browse files Browse the repository at this point in the history
  • Loading branch information
naleeha authored and chrisjstevo committed Feb 16, 2024
1 parent acd295c commit 2bf4369
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vuu/src/main/scala/org/finos/vuu/api/TableDef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object TableDef {

def apply(name: String, keyField: String, columns: Array[Column], links: VisualLinks, indices: Indices, joinFields: String*): TableDef = {
new TableDef(name, keyField, columns, joinFields, links = links, indices = indices)
}
}

def apply(name: String, keyField: String, columns: Array[Column], indices: Indices, joinFields: String*): TableDef = {
new TableDef(name, keyField, columns, joinFields, indices = indices)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import scala.jdk.CollectionConverters
trait DataTable extends KeyedObservable[RowKeyUpdate] with RowSource {

@volatile private var provider: Provider = null
@volatile private var columnValueProvider: ColumnValueProvider = null

protected def createDataTableData(): TableData

Expand All @@ -32,6 +33,10 @@ trait DataTable extends KeyedObservable[RowKeyUpdate] with RowSource {

def getProvider: Provider = provider

def setColumnValueProvider(aCVProvider: ColumnValueProvider): Unit = columnValueProvider = aCVProvider

def getColumnValueProvider: ColumnValueProvider = columnValueProvider

def asTable: DataTable = this

def columnForName(name: String): Column = getTableDef.columnForName(name)
Expand Down

0 comments on commit 2bf4369

Please sign in to comment.