package bluej.groupwork.ui;

import bluej.Config;
import bluej.groupwork.TeamStatusInfo;
import bluej.pkgmgr.Project;

import java.util.Arrays;

| Given a list of StatusEntry(s) returns a table model which allows them to | be edited in a JTable. | This is only for DVCS providers. It aims to eliminate some confusion in conditions. | | @author Amjad Altadmri | public class StatusTableModelDVCS extends StatusTableModel{
public StatusTableModelDVCS(Project project, int initialRows) { super(project, initialRows); statusLabel = Config.getString("team.status.local"); labelsList = Arrays.asList(resourceLabel, statusLabel, remoteStatusLabel); }
| Find the table entry at a particular row and column | | @param row the table row | @param col the table column | @return the Object at that location in the table | public Object getValueAt(int row, int col) { TeamStatusInfo info = resources.get(row); switch (col) { case 0: return ResourceDescriptor.getResource(project, info, false); case 1: return info.getStatus(); case 2: return info.getRemoteStatus(); default: break; } return null; } }
top, use, map, class StatusTableModelDVCS

.   StatusTableModelDVCS
.   getValueAt




43 neLoCode + 8 LoComm