package bluej.groupwork.ui;

import java.util.List;
import javafx.collections.ObservableList;

import bluej.Config;
import bluej.groupwork.TeamStatusInfo;
import bluej.pkgmgr.Project;
import threadchecker.OnThread;
import threadchecker.Tag;


| Given a list of StatusEntry(s) returns a table model which allows them to | be edited in a JTable. | | @author Bruce Quig | @author Amjad Altadmri | @OnThread(Tag.FXPlatform) public abstract class StatusTableModel { protected final String resourceLabel = Config.getString("team.status.resource"); protected final String remoteStatusLabel = Config.getString("team.status.remote"); protected final String versionLabel = Config.getString("team.status.version"); protected Project project; protected String statusLabel; protected List<String> labelsList; protected ObservableList<TeamStatusInfo> resources;
public StatusTableModel(Project project, int initialRows) { this.project = project; }
| Return the name of a particular column | | @param col the column we are naming | @return a string of the columns name | public String getColumnName(int col) { try { return labelsList.get(col); } catch (Exception e) { throw new IllegalArgumentException("bad column number in StatusTableModel::getColumnName()"); } } public void setStatusData(ObservableList<TeamStatusInfo> statusResources) { resources = statusResources; } public ObservableList getResources() { return resources; } }
top, use, map, abstract class StatusTableModel

.   StatusTableModel
.   getColumnName
.   setStatusData
.   getResources




65 neLoCode + 7 LoComm