I was able to loop my enumerations when I did it like:
object Colors extends Enumeration {
type Colors = Value
val Red, Green, Blue, Yellow = Value
}
for(e <- Colors.values) { ... }
So it was easy for me to create a dropdown list etc.
Now my enumeration stores bit values like:
object BitMask1 extends Enumeration {
val none = math.pow(2,0).toLong
val Green = math.pow(2,2).toLong
val Yellow = math.pow(2,3).toLong
val Black = math.pow(2,4).toLong
// etc
}
How could I possible loop through these values?