~smaioli/azureus/ubuntu-experimental

« back to all changes in this revision

Viewing changes to org/gudy/azureus2/ui/swt/views/tableitems/peers/DownSpeedLimitItem.java

MergedĀ VuzeĀ 4.2.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import org.gudy.azureus2.core3.peer.PEPeer;
27
27
import org.gudy.azureus2.core3.util.Constants;
28
28
import org.gudy.azureus2.core3.util.DisplayFormatters;
 
29
import org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn;
 
30
 
29
31
import org.gudy.azureus2.plugins.ui.tables.TableCell;
30
32
import org.gudy.azureus2.plugins.ui.tables.TableCellRefreshListener;
31
 
import org.gudy.azureus2.ui.swt.views.table.utils.CoreTableColumn;
 
33
import org.gudy.azureus2.plugins.ui.tables.TableColumnInfo;
32
34
 
33
35
/**
34
36
 * @author parg
39
41
extends CoreTableColumn 
40
42
implements TableCellRefreshListener
41
43
{
 
44
        public static final String COLUMN_ID = "maxdownspeed";
 
45
 
 
46
        public void fillTableColumnInfo(TableColumnInfo info) {
 
47
                info.addCategories(new String[] {
 
48
                        CAT_BYTES,
 
49
                        CAT_SETTINGS,
 
50
                });
 
51
        }
42
52
 
43
53
        /** Default Constructor */
44
54
        public DownSpeedLimitItem(String table_id) {
45
 
          super("maxdownspeed", ALIGN_TRAIL, POSITION_INVISIBLE, 35, table_id);
 
55
          super(COLUMN_ID, ALIGN_TRAIL, POSITION_INVISIBLE, 35, table_id);
46
56
          setRefreshInterval(INTERVAL_LIVE);
47
57
        }
48
58