org.rosuda.deducer.data
Class RowNamesListModel

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by org.rosuda.deducer.data.RowNamesListModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ListModel

public class RowNamesListModel
extends javax.swing.AbstractListModel

The default row name model for an ExTable Row headers are implemented as a jlist nested within a jscrollpane. Here we have defined them as numbers 1-n where n is the number of rows.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
RowNamesListModel()
           
 
Method Summary
 void addNextHeaderNumber()
           
 java.lang.Object getElementAt(int index)
           
 int getMaxNumChar()
           
 int getSize()
           
 void initHeaders(int n)
           
 void refresh()
           
 void setElementAt(int index, java.lang.Object value)
           
 
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
 

Constructor Detail

RowNamesListModel

public RowNamesListModel()
Method Detail

initHeaders

public void initHeaders(int n)

getSize

public int getSize()

getElementAt

public java.lang.Object getElementAt(int index)

setElementAt

public void setElementAt(int index,
                         java.lang.Object value)

getMaxNumChar

public int getMaxNumChar()

addNextHeaderNumber

public void addNextHeaderNumber()

refresh

public void refresh()