org.openstreetmap.josm.gui.preferences
Class SourceEditor.IconPathTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.openstreetmap.josm.gui.preferences.SourceEditor.IconPathTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
SourceEditor

protected static class SourceEditor.IconPathTableModel
extends javax.swing.table.AbstractTableModel

See Also:
Serialized Form

Field Summary
private  java.util.ArrayList<java.lang.String> data
           
private  javax.swing.DefaultListSelectionModel selectionModel
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SourceEditor.IconPathTableModel(javax.swing.DefaultListSelectionModel selectionModel)
           
 
Method Summary
 void addPath(java.lang.String path)
           
 int getColumnCount()
           
 java.util.List<java.lang.String> getIconPaths()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void removeSelected()
           
 void setIconPaths(java.util.Collection<java.lang.String> paths)
           
 void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
           
protected  void sort()
           
 void updatePath(int pos, java.lang.String path)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private java.util.ArrayList<java.lang.String> data

selectionModel

private javax.swing.DefaultListSelectionModel selectionModel
Constructor Detail

SourceEditor.IconPathTableModel

public SourceEditor.IconPathTableModel(javax.swing.DefaultListSelectionModel selectionModel)
Method Detail

getColumnCount

public int getColumnCount()

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int rowIndex,
                       int columnIndex)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel

setIconPaths

public void setIconPaths(java.util.Collection<java.lang.String> paths)

addPath

public void addPath(java.lang.String path)

updatePath

public void updatePath(int pos,
                       java.lang.String path)

removeSelected

public void removeSelected()

sort

protected void sort()

getIconPaths

public java.util.List<java.lang.String> getIconPaths()


JOSM