Default Constructor super("fileext", ALIGN_LEAD, POSITION_INVISIBLE, 50, TableManager.TABLE_TORRENT_FILES); setMinWidthAuto(true);
super("fileext", ALIGN_LEAD, POSITION_INVISIBLE, 50, TableManager.TABLE_TORRENT_FILES); setMinWidthAuto(true);
String name = (fileInfo == null) ? "" : fileInfo.getFile(true).getName(); int dot_position = name.lastIndexOf("."); if (dot_position == -1) {return "";} return name.substring(dot_position+1);
DiskManagerFileInfo fileInfo = (DiskManagerFileInfo)cell.getDataSource(); cell.setText(determineFileExt(fileInfo));