private String [ ] getHeaders ( ) { final List < String > headers = new ArrayList <> ( ) ; if ( decorator . getShowSources ( ) ) { headers . add ( SOURCE_FIELD ) ; } if ( decorator . getShowSourcesVersion ( ) ) { headers . add ( SOURCE_VERSION_FIELD ) ; } if ( decorator . getShowTargets ( ) ) { headers . add ( TARGET_FIELD ) ; } if ( decorator . getShowTargetsDownloadUrl ( ) ) { headers . add ( DOWNLOAD_URL_FIELD ) ; } if ( decorator . getShowTargetsSize ( ) ) { headers . add ( SIZE_FIELD ) ; } if ( decorator . getShowScopes ( ) ) { headers . add ( SCOPE_FIELD ) ; } if ( decorator . getShowLicenses ( ) ) { headers . add ( LICENSE_FIELD ) ; } if ( decorator . getShowLicensesLongName ( ) ) { headers . add ( LICENSE_LONG_NAME_FIELD ) ; } if ( decorator . getShowLicensesUrl ( ) ) { headers . add ( LICENSE_URL_FIELD ) ; } if ( decorator . getShowLicensesComment ( ) ) { headers . add ( LICENSE_COMMENT_FIELD ) ; } return headers . toArray ( new String [ headers . size ( ) ] ) ; }
Init the headers of the table regarding the filters