public EventList getBaseEventList ( ) { if ( baseList == null ) { // Construct on demand Object [ ] data = getInitialData ( ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "Table data: got " + data . length + " entries" ) ; } // Construct the event list of all our data and layer on the sorting EventList rawList = GlazedLists . eventList ( Arrays . asList ( data ) ) ; int initialSortColumn = getInitialSortColumn ( ) ; if ( initialSortColumn >= 0 ) { String sortProperty = getColumnPropertyNames ( ) [ initialSortColumn ] ; baseList = new SortedList ( rawList , new PropertyComparator ( sortProperty , false , true ) ) ; } else { baseList = new SortedList ( rawList ) ; } } return baseList ; }
Get the base event list for the table model . This can be used to build layered event models for filtering .