Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.dictaccregwizz
Class StrategiesList.ListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by net.java.sip.communicator.plugin.dictaccregwizz.StrategiesList.ListModel
All Implemented Interfaces:
Serializable, ListModel
Enclosing class:
StrategiesList

static class StrategiesList.ListModel
extends AbstractListModel

Class managing the list datas

Author:
ROTH Damien

Field Summary
(package private)  List<net.java.dict4j.Strategy> data
           
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
StrategiesList.ListModel()
          Create an instance of ListModel
 
Method Summary
 void clear()
          Remove all the strategies of the list
 Object getElementAt(int row)
          Implements ListModel.getElementAt
 int getSize()
          Implements ListModel.getSize
 int indexOf(String strategyCode)
          Find the index of a strategie
 void setStrategies(List<net.java.dict4j.Strategy> strategies)
          Stores the strategies into this model
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

List<net.java.dict4j.Strategy> data
Constructor Detail

StrategiesList.ListModel

public StrategiesList.ListModel()
Create an instance of ListModel

Method Detail

setStrategies

public void setStrategies(List<net.java.dict4j.Strategy> strategies)
Stores the strategies into this model

Parameters:
strategies - the strategies list

clear

public void clear()
Remove all the strategies of the list


getElementAt

public Object getElementAt(int row)
Implements ListModel.getElementAt


getSize

public int getSize()
Implements ListModel.getSize


indexOf

public int indexOf(String strategyCode)
Find the index of a strategie

Parameters:
strategyCode - the code of the strategy
Returns:
the index of the strategy

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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