FontStyle getFontStyle(int value) { switch(value){ case 0: return FontStyle.normal; case 1: return FontStyle.italic; default: return FontStyle.normal; } }