private static String getSize ( IResponsiveLabel r , Sizes size ) { String colSize = "-1" ; switch ( size ) { case xs : colSize = r . getLabelColXs ( ) ; if ( colSize . equals ( "-1" ) ) colSize = r . getLabelTinyScreen ( ) ; break ; case sm : colSize = r . getLabelColSm ( ) ; if ( colSize . equals ( "-1" ) ) colSize = r . getLabelSmallScreen ( ) ; break ; case md : colSize = r . getLabelColMd ( ) ; if ( colSize . equals ( "-1" ) ) colSize = r . getLabelMediumScreen ( ) ; break ; case lg : colSize = r . getLabelColLg ( ) ; if ( colSize . equals ( "-1" ) ) colSize = r . getLabelLargeScreen ( ) ; break ; } return colSize ; }
Decode col sizes between two way of definition