private static int getColumnWidth ( final PropertyDescriptor _property ) { final Class type = _property . getPropertyType ( ) ; if ( Float . class . isAssignableFrom ( type ) || Double . class . isAssignableFrom ( type ) ) { return 70 ; } else if ( type == Boolean . class ) { return 10 ; } else if ( Number . class . isAssignableFrom ( type ) ) { return 60 ; } else if ( type == String . class ) { return 100 ; } else if ( Date . class . isAssignableFrom ( type ) ) { return 50 ; } else { return 50 ; } }
Calculates the column width according to its type .