Vinicius Carvalho
04/30/2020, 10:40 PMNodePrinter
(I'm horrible naming things) that either use toString or a custom (T) -> String
function. For some items I override that callback to print the version property, others that are plain string with the image I let the TreeView print them with the graphic and text
class NodePrinter<T>(val node: T, val callback: (T) -> String = { it.toString()}){
override fun toString(): String {
return callback(node)
}
}
Dustyn
05/01/2020, 3:52 AMVinicius Carvalho
05/01/2020, 11:51 AMVinicius Carvalho
05/01/2020, 11:51 AMVinicius Carvalho
05/01/2020, 11:52 AMVinicius Carvalho
05/01/2020, 11:52 AMVinicius Carvalho
05/01/2020, 11:53 AMcellFormat {
text = nodePrinter.displayName()
}
The images will stop showing. I could not find a way (not without a lot of effort at least) to mix text and graphic depending on the item being processedVinicius Carvalho
05/01/2020, 11:54 AMVinicius Carvalho
05/01/2020, 11:54 AMVinicius Carvalho
05/01/2020, 11:55 AMVinicius Carvalho
05/01/2020, 11:58 AMDustyn
05/02/2020, 4:02 AMDustyn
05/02/2020, 4:03 AMDustyn
05/02/2020, 4:04 AMVinicius Carvalho
05/03/2020, 12:14 AMVinicius Carvalho
05/03/2020, 12:14 AMVinicius Carvalho
05/03/2020, 12:15 AMDustyn
05/03/2020, 11:10 AMDustyn
05/03/2020, 11:12 AMVinicius Carvalho
05/03/2020, 4:03 PMVinicius Carvalho
05/03/2020, 4:04 PM