public void setWidth ( String value ) { if ( value . endsWith ( "%" ) ) { value = value . substring ( 0 , value . length ( ) - 1 ) ; percentage = true ; } width = Integer . parseInt ( value ) ; }
Sets the width . It can be an absolute value 100 or a percentage 20%