public class GenericSkillTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Class and Description |
---|---|
static class |
GenericSkillTableModel.Cols |
Constructor and Description |
---|
GenericSkillTableModel(GenericSkillTemplate[] allSkills,
CreatureTemplate template,
boolean editable) |
Modifier and Type | Method and Description |
---|---|
GenericSkill[] |
accessRankedSkills()
Used to get ranked skills out of table.
|
int |
addSkills(GenericSkillTemplate[] skillsToAdd) |
int |
countRanks() |
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
int |
getRowCount() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
refresh(boolean showRanked,
boolean showUnranked) |
void |
reloadSkills() |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public GenericSkillTableModel(GenericSkillTemplate[] allSkills, CreatureTemplate template, boolean editable)
public void reloadSkills()
public void refresh(boolean showRanked, boolean showUnranked)
public final int getColumnCount()
public final int getRowCount()
public final java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public final java.lang.Object getValueAt(int rowIndex, int columnIndex)
public final void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
public GenericSkill[] accessRankedSkills()
public int addSkills(GenericSkillTemplate[] skillsToAdd)
skillsToAdd
- public int countRanks()