Default Constructor super("status", POSITION_LAST, 60, TableManager.TABLE_MYTRACKER); setRefreshInterval(INTERVAL_LIVE);
super("status", POSITION_LAST, 60, TableManager.TABLE_MYTRACKER); setRefreshInterval(INTERVAL_LIVE);
TRHostTorrent item = (TRHostTorrent)cell.getDataSource(); String status_text = ""; if( item != null ) { int status = item.getStatus(); if( !cell.setSortValue( status ) && cell.isValid() ) { return; } if (status == TRHostTorrent.TS_STARTED) { status_text = MessageText.getString( "MyTrackerView.status.started" ); } else if (status == TRHostTorrent.TS_STOPPED) { status_text = MessageText.getString( "MyTrackerView.status.stopped" ); } else if (status == TRHostTorrent.TS_FAILED) { status_text = MessageText.getString( "MyTrackerView.status.failed" ); } else if (status == TRHostTorrent.TS_PUBLISHED) { status_text = MessageText.getString( "MyTrackerView.status.published" ); } } cell.setText( status_text );