public List<I_CmsDataViewItem> getSelection() {

        List<I_CmsDataViewItem> result = Lists.newArrayList();
        Object val = m_table.get().getValue();
        if (val == null) {
            return result;
        }
        if (val instanceof Collection) {
            Collection<?> results = (Collection<?>)val;
            for (Object obj : results) {
                result.add(m_dataView.getItemById((String)obj));
            }
        } else {
            result.add(m_dataView.getItemById((String)val));
        }
        return result;

    }
public List < I_CmsDataViewItem > getSelection ( ) { List < I_CmsDataViewItem > result = Lists . newArrayList ( ) ; Object val = m_table . get ( ) . getValue ( ) ; if ( val == null ) { return result ; } if ( val instanceof Collection ) { Collection < ? > results = ( Collection < ? > ) val ; for ( Object obj : results ) { result . add ( m_dataView . getItemById ( ( String ) obj ) ) ; } } else { result . add ( m_dataView . getItemById ( ( String ) val ) ) ; } return result ; }
Gets the list of selected data items.<p>

If this widget is not in multi-select mode, a list with a single result will be returned.<p>

@return the selected results