Simple Machine

util
Interface DataModel

All Known Implementing Classes:
AbstractDataModel, AbstractMainMemory, CompoundModel, MainMemory, PickModel, Register, RegisterSet

public interface DataModel

Like javax.Swing.Table.TableModel, but for observer/observable instead of EventListener.


Method Summary
 void addObserver(Observer anObserver)
           
 void addUndoableEditListener(UndoableEditListener l)
           
 boolean canDeleteRow(int rowIndex)
           
 boolean canInsertRow(int rowIndex)
           
 boolean deleteRow(int rowIndex)
           
 Class getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 String getColumnName(int columnIndex)
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean insertRow(int rowIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setValueAt(Object[] aValue, int rowIndex, int columnIndex)
           
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
           
 void setValueAtByUser(Object[] aValue, int rowIndex, int columnIndex)
           
 void setValueAtByUser(Object aValue, int rowIndex, int columnIndex)
           
 

Method Detail

addObserver

void addObserver(Observer anObserver)

getColumnClass

Class getColumnClass(int columnIndex)

getColumnCount

int getColumnCount()

getColumnName

String getColumnName(int columnIndex)

getRowCount

int getRowCount()

getValueAt

Object getValueAt(int rowIndex,
                  int columnIndex)

isCellEditable

boolean isCellEditable(int rowIndex,
                       int columnIndex)

setValueAt

void setValueAt(Object aValue,
                int rowIndex,
                int columnIndex)

setValueAtByUser

void setValueAtByUser(Object aValue,
                      int rowIndex,
                      int columnIndex)

setValueAt

void setValueAt(Object[] aValue,
                int rowIndex,
                int columnIndex)

setValueAtByUser

void setValueAtByUser(Object[] aValue,
                      int rowIndex,
                      int columnIndex)

insertRow

boolean insertRow(int rowIndex)

deleteRow

boolean deleteRow(int rowIndex)

canInsertRow

boolean canInsertRow(int rowIndex)

canDeleteRow

boolean canDeleteRow(int rowIndex)

addUndoableEditListener

void addUndoableEditListener(UndoableEditListener l)

Simple Machine

Copyright © 2010, 2011 Mike Feeley. All Rights Reserved.