public void setColumnOrder ( final String _markupsIds ) { final StringTokenizer tokens = new StringTokenizer ( _markupsIds , ";" ) ; final StringBuilder columnOrder = new StringBuilder ( ) ; while ( tokens . hasMoreTokens ( ) ) { final String markupId = tokens . nextToken ( ) ; for ( final UITableHeader header : getHeaders ( ) ) { if ( markupId . equals ( header . getMarkupId ( ) ) ) { columnOrder . append ( header . getFieldName ( ) ) . append ( ";" ) ; break ; } } } try { Context . getThreadContext ( ) . setUserAttribute ( getCacheKey ( UITable . UserCacheKey . COLUMNORDER ) , columnOrder . toString ( ) ) ; } catch ( final EFapsException e ) { // we don't throw an error because this are only Usersettings AbstractUIHeaderObject . LOG . error ( "error during the setting of UserAttributes" , e ) ; } }
Method to set the order of the columns .