Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.pluginmanager
Class PluginTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.java.sip.communicator.plugin.pluginmanager.PluginTableModel
All Implemented Interfaces:
Serializable, TableModel

public class PluginTableModel
extends AbstractTableModel

The TableModel of the table containing all plug-ins.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PluginTableModel()
          Create an instance of PluginTableModel
 
Method Summary
 boolean contains(org.osgi.framework.Bundle bundle)
          Returns TRUE if the given Bundle is contained in this table, FALSE - otherwise.
 int getColumnCount()
          Returns the count of table columns.
 int getRowCount()
          Returns the count of table rows.
 Object getValueAt(int row, int column)
          Returns the value in the cell given by row and column.
 boolean isCellEditable(int row, int column)
          Returns FALSE for all cells in this table.
 boolean isShowSystemBundles()
          Returns TRUE if system bundles are show, FALSE - otherwise.
 void setShowSystemBundles(boolean showSystemBundles)
          Sets the showSystemBundles property.
 void update()
          Updates the table content.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginTableModel

public PluginTableModel()
Create an instance of PluginTableModel

Method Detail

getRowCount

public int getRowCount()
Returns the count of table rows.

Returns:
int the count of table rows

contains

public boolean contains(org.osgi.framework.Bundle bundle)
Returns TRUE if the given Bundle is contained in this table, FALSE - otherwise.

Parameters:
bundle - the Bundle to search for
Returns:
TRUE if the given Bundle is contained in this table, FALSE - otherwise.

getColumnCount

public int getColumnCount()
Returns the count of table columns.

Returns:
int the count of table columns

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Returns FALSE for all cells in this table.

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class AbstractTableModel

getValueAt

public Object getValueAt(int row,
                         int column)
Returns the value in the cell given by row and column.


update

public void update()
Updates the table content.


isShowSystemBundles

public boolean isShowSystemBundles()
Returns TRUE if system bundles are show, FALSE - otherwise.

Returns:
TRUE if system bundles are show, FALSE - otherwise

setShowSystemBundles

public void setShowSystemBundles(boolean showSystemBundles)
Sets the showSystemBundles property.

Parameters:
showSystemBundles - indicates if system bundles will be shown or not

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.