|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
net.java.sip.communicator.impl.gui.main.chatroomslist.ChatRoomTableModel
public class ChatRoomTableModel
The model for the table with saved rooms.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Fields inherited from interface net.java.sip.communicator.service.protocol.event.ProviderPresenceStatusListener |
|---|
STATUS_MESSAGE |
| Constructor Summary | |
|---|---|
ChatRoomTableModel(JTable parentTable)
Creates new model for the supplied table. |
|
| Method Summary | |
|---|---|
void |
chatRoomProviderWrapperAdded(ChatRoomProviderWrapper provider)
When a provider wrapper is added this method is called to inform listeners. |
void |
chatRoomProviderWrapperRemoved(ChatRoomProviderWrapper provider)
When a provider wrapper is removed this method is called to inform listeners. |
void |
contentChanged(ChatRoomListChangeEvent evt)
Refreshes the chat room's list when a modification in the model has occurred. |
Class<?> |
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column. |
int |
getColumnCount()
Returns the number of columns in the model. |
String |
getColumnName(int column)
Returns the name of the column at columnIndex. |
int |
getRowCount()
Returns the number of rows in the model. |
(package private) ChatRoomWrapper |
getValueAt(int rowIndex)
The room wrapper for the supplied row. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and
rowIndex. |
boolean |
isCellEditable(int row,
int column)
Returns true if the cell at rowIndex and
columnIndex
is editable. |
void |
providerStatusChanged(ProviderPresenceStatusChangeEvent evt)
Listens for provider status change to change protocol icon. |
void |
providerStatusMessageChanged(PropertyChangeEvent evt)
Not used. |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
Sets the value in the cell at columnIndex and
rowIndex to aValue. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChatRoomTableModel(JTable parentTable)
parentTable - the parent table.| Method Detail |
|---|
public boolean isCellEditable(int row,
int column)
rowIndex and
columnIndex
is editable.
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelrow - the row whose value to be queriedcolumn - the column whose value to be queried
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelChatRoomWrapper getValueAt(int rowIndex)
rowIndex - the row.
public Object getValueAt(int rowIndex,
int columnIndex)
columnIndex and
rowIndex.
getValueAt in interface TableModelrowIndex - the row whose value is to be queriedcolumnIndex - the column whose value is to be queried
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
columnIndex and
rowIndex to aValue.
setValueAt in interface TableModelsetValueAt in class AbstractTableModelaValue - the new valuerowIndex - the row whose value is to be changedcolumnIndex - the column whose value is to be changedpublic String getColumnName(int column)
columnIndex.
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the index of the column
public Class<?> getColumnClass(int columnIndex)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelcolumnIndex - the index of the column
public void contentChanged(ChatRoomListChangeEvent evt)
contentChanged in interface ChatRoomListChangeListenerevt - public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt)
providerStatusChanged in interface ProviderPresenceStatusListenerevt - the eventpublic void providerStatusMessageChanged(PropertyChangeEvent evt)
providerStatusMessageChanged in interface ProviderPresenceStatusListenerevt - the event.public void chatRoomProviderWrapperAdded(ChatRoomProviderWrapper provider)
chatRoomProviderWrapperAdded in interface ChatRoomList.ChatRoomProviderWrapperListenerprovider - which was added.public void chatRoomProviderWrapperRemoved(ChatRoomProviderWrapper provider)
chatRoomProviderWrapperRemoved in interface ChatRoomList.ChatRoomProviderWrapperListenerprovider - which was removed.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||