FileDocCategorySizeDatePackage
TrackLabelProvider.javaAPI DocAndroid 1.5 API2436Wed May 06 22:41:08 BST 2009com.android.ddmuilib.location

TrackLabelProvider

public class TrackLabelProvider extends Object implements org.eclipse.jface.viewers.ITableLabelProvider
Label Provider for {@link Table} objects displaying {@link Track} objects.

Fields Summary
Constructors Summary
Methods Summary
public voidaddListener(org.eclipse.jface.viewers.ILabelProviderListener listener)

        // pass
    
public voiddispose()

        // pass
    
public org.eclipse.swt.graphics.ImagegetColumnImage(java.lang.Object element, int columnIndex)

        return null;
    
public java.lang.StringgetColumnText(java.lang.Object element, int columnIndex)

        if (element instanceof Track) {
            Track track = (Track)element;
            switch (columnIndex) {
                case 0:
                    return track.getName();
                case 1:
                    return Integer.toString(track.getPointCount());
                case 2:
                    long time = track.getFirstPointTime();
                    if (time != -1) {
                        return new Date(time).toString();
                    }
                    break;
                case 3:
                    time = track.getLastPointTime();
                    if (time != -1) {
                        return new Date(time).toString();
                    }
                    break;
                case 4:
                    return track.getComment();
            }
        }

        return null;
    
public booleanisLabelProperty(java.lang.Object element, java.lang.String property)

        // pass
        return false;
    
public voidremoveListener(org.eclipse.jface.viewers.ILabelProviderListener listener)

        // pass