public class InviterTableModel
extends javax.swing.table.AbstractTableModel
Modifier and Type | Class and Description |
---|---|
class |
InviterTableModel.Inviter |
Constructor and Description |
---|
InviterTableModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getColumnClass(int arg0) |
int |
getColumnCount() |
java.lang.String |
getColumnName(int arg0) |
InviterTableModel.Inviter |
getInviter(java.lang.String playerName)
Return the Inviter that matches this playerName
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int arg0,
int arg1) |
void |
invited(Player player,
java.lang.String matchLength)
Method to add a Player to the inviter table
|
boolean |
isCellEditable(int arg0,
int arg1)
All cells are not editable
|
void |
playerChanged(Player p) |
void |
removeAll()
Remove all of the inviters in the list
|
void |
setValueAt(java.lang.Object arg0,
int arg1,
int arg2)
We don't set no steenky values
|
void |
setWarning(java.lang.String playerName,
java.lang.String warning)
Add a warning to this inviter.
|
void |
uninvited(java.lang.String playerName)
Method to remove a player from the inviter table.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public void invited(Player player, java.lang.String matchLength)
player
- The Player that invited usmatchLength
- How many games in the matchpublic void uninvited(java.lang.String playerName)
playerName
- The name of the player to removepublic void removeAll()
public void playerChanged(Player p)
public InviterTableModel.Inviter getInviter(java.lang.String playerName)
playerName
- The name to matchpublic void setWarning(java.lang.String playerName, java.lang.String warning)
playerName
- The name of the questionable playerwarning
- The warning message to display as a tooltip.public java.lang.Class<?> getColumnClass(int arg0)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
public int getColumnCount()
public java.lang.String getColumnName(int arg0)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public int getRowCount()
public java.lang.Object getValueAt(int arg0, int arg1)
public boolean isCellEditable(int arg0, int arg1)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
TableModel.isCellEditable(int, int)
public void setValueAt(java.lang.Object arg0, int arg1, int arg2)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel