class PacksModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
private int[] |
checkValues |
private LocaleDatabase |
langpack |
(package private) Map |
namesObj |
(package private) Map |
namesPos |
private List |
packs |
private List |
packsToInstall |
private PacksPanelInterface |
panel |
private static long |
serialVersionUID |
listenerList
Constructor and Description |
---|
PacksModel(List packs,
List packsToInstall,
PacksPanelInterface panel) |
Modifier and Type | Method and Description |
---|---|
private int |
dfs(int[] status)
We use a modified dfs graph search algorithm as described in: Thomas H.
|
private int |
dfsVisit(Pack u,
int[] status,
boolean wipe) |
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
private int |
getPos(String name)
Given a map of names and Integer for position and a name it return the position of this name
as an int
|
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
private void |
initvalues() |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
private void |
propRequirement(String name) |
private void |
refreshPacksToInstall() |
private void |
reverseDeps()
Creates the reverse dependency graph
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
private void |
updateDeps()
This function updates the checkboxes after a change by disabling packs that cannot be
installed anymore and enabling those that can after the change.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
private static final long serialVersionUID
private List packsToInstall
private PacksPanelInterface panel
private LocaleDatabase langpack
private int[] checkValues
public PacksModel(List packs, List packsToInstall, PacksPanelInterface panel)
private void reverseDeps()
private void initvalues()
private void propRequirement(String name)
private int getPos(String name)
public int getRowCount()
public int getColumnCount()
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
public Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
private void refreshPacksToInstall()
private void updateDeps()
private int dfs(int[] status)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses