ca.sqlpower.architect.swingui
Class SQLTableListModel

java.lang.Object
  extended by ca.sqlpower.architect.swingui.SQLTableListModel
All Implemented Interfaces:
SQLObjectListener, javax.swing.ListModel

public class SQLTableListModel
extends java.lang.Object
implements javax.swing.ListModel, SQLObjectListener


Field Summary
protected  java.util.ArrayList listeners
           
protected  SQLTable table
           
 
Constructor Summary
SQLTableListModel(SQLTable table)
           
 
Method Summary
 void addListDataListener(javax.swing.event.ListDataListener l)
           
 void dbChildrenInserted(SQLObjectEvent e)
           
 void dbChildrenRemoved(SQLObjectEvent e)
           
 void dbObjectChanged(SQLObjectEvent e)
           
 void dbStructureChanged(SQLObjectEvent e)
           
protected  void fireContentsChanged(int index0, int index1)
           
protected  void fireIntervalAdded(int index0, int index1)
           
protected  void fireIntervalRemoved(int index0, int index1)
           
 java.lang.Object getElementAt(int index)
           
 int getSize()
           
 void removeListDataListener(javax.swing.event.ListDataListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

protected SQLTable table

listeners

protected java.util.ArrayList listeners
Constructor Detail

SQLTableListModel

public SQLTableListModel(SQLTable table)
Method Detail

getSize

public int getSize()
Specified by:
getSize in interface javax.swing.ListModel
Throws:
java.lang.RuntimeException - if an ArchitectException occurs.

getElementAt

public java.lang.Object getElementAt(int index)
Specified by:
getElementAt in interface javax.swing.ListModel
Throws:
java.lang.RuntimeException - if an ArchitectException occurs.

addListDataListener

public void addListDataListener(javax.swing.event.ListDataListener l)
Specified by:
addListDataListener in interface javax.swing.ListModel

removeListDataListener

public void removeListDataListener(javax.swing.event.ListDataListener l)
Specified by:
removeListDataListener in interface javax.swing.ListModel

fireContentsChanged

protected void fireContentsChanged(int index0,
                                   int index1)

fireIntervalAdded

protected void fireIntervalAdded(int index0,
                                 int index1)

fireIntervalRemoved

protected void fireIntervalRemoved(int index0,
                                   int index1)

dbChildrenInserted

public void dbChildrenInserted(SQLObjectEvent e)
Specified by:
dbChildrenInserted in interface SQLObjectListener

dbChildrenRemoved

public void dbChildrenRemoved(SQLObjectEvent e)
Specified by:
dbChildrenRemoved in interface SQLObjectListener

dbObjectChanged

public void dbObjectChanged(SQLObjectEvent e)
Specified by:
dbObjectChanged in interface SQLObjectListener

dbStructureChanged

public void dbStructureChanged(SQLObjectEvent e)
Specified by:
dbStructureChanged in interface SQLObjectListener


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca