|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cmu.survey.data.DataTableModelSingularInfo<DTM>
public class DataTableModelSingularInfo<DTM extends DataTableModel>
The information about a data table that is independent of its views. i.e. if there are many views of a table, there should still be just one of these classes, which will handle all view updates, etc.
Field Summary | |
---|---|
protected java.util.Vector<DTM> |
allTableModels
All copies of the table that are currently open. |
protected int |
holdFiredTableChangeEvents
|
protected int |
levelOfEventsHeld
|
protected java.util.Vector<javax.swing.event.TableModelListener> |
listenerList
All TableModelListeners added to any DataTableModel |
protected TableFormat |
tableFormat
The prototype/design of the table. |
protected java.lang.String |
tableName
|
Constructor Summary | |
---|---|
DataTableModelSingularInfo(java.lang.String tableName)
|
|
DataTableModelSingularInfo(TableFormat tableFormat)
|
Method Summary | |
---|---|
void |
addGUIListener(DataTableModel.DataTableModelGUIListener listener)
|
void |
addOneLock(java.lang.String description)
Start holding the firing of events -- add one more thing that's holding this. |
void |
addTable(DTM table)
|
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds a listener to the list that's notified each time a change to the data model occurs. |
void |
close()
Close all DataTableModels here. |
void |
fireTableCellUpdated(int r,
int r2,
DTM firedFrom)
|
void |
fireTableChanged(javax.swing.event.TableModelEvent e)
Forwards the given notification event to all TableModelListeners that registered
themselves as listeners for this table model. |
void |
fireTableDataChanged(DTM firedFrom)
|
void |
fireTableRowsDeleted(int r,
int r2,
DTM firedFrom)
|
void |
fireTableRowsInserted(int r,
int r2,
DTM firedFrom)
the following methods may have a distinction in the future, but since we don't know which rows were changed across all models, we fire only one event. |
void |
fireTableRowsUpdated(int r,
int r2,
DTM firedFrom)
|
void |
fireTableStructureChanged(DataTableModel firedFrom)
|
TableFormat |
getTableFormat()
|
java.lang.String |
getTableName()
|
boolean |
isLocked()
Whether there is currently a lock on this table -- i.e. |
boolean |
removeGUIListener(DataTableModel.DataTableModelGUIListener listener)
|
void |
removeOneLock(DTM firedFrom)
Remove one hold from firing events. |
void |
removeTable(DTM table)
|
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes a listener from the list that's notified each time a change to the data model occurs. |
void |
setTableFormat(TableFormat tableFormat)
|
void |
tableRenamed(java.lang.String newTableName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector<DTM extends DataTableModel> allTableModels
protected java.util.Vector<javax.swing.event.TableModelListener> listenerList
protected TableFormat tableFormat
protected java.lang.String tableName
protected int holdFiredTableChangeEvents
protected int levelOfEventsHeld
Constructor Detail |
---|
public DataTableModelSingularInfo(java.lang.String tableName)
public DataTableModelSingularInfo(TableFormat tableFormat)
Method Detail |
---|
public void addTable(DTM table)
public void removeTable(DTM table)
public void addGUIListener(DataTableModel.DataTableModelGUIListener listener)
public boolean removeGUIListener(DataTableModel.DataTableModelGUIListener listener)
public void tableRenamed(java.lang.String newTableName)
public java.lang.String getTableName()
public TableFormat getTableFormat()
public void setTableFormat(TableFormat tableFormat)
public boolean isLocked()
public void removeOneLock(DTM firedFrom)
public void addOneLock(java.lang.String description)
holdFiredTableChangeEvents
- public void fireTableChanged(javax.swing.event.TableModelEvent e)
TableModelListeners
that registered
themselves as listeners for this table model.
e
- the event to be forwardedaddTableModelListener(javax.swing.event.TableModelListener)
,
TableModelEvent
,
EventListenerList
public void fireTableDataChanged(DTM firedFrom)
public void fireTableStructureChanged(DataTableModel firedFrom)
public void fireTableRowsInserted(int r, int r2, DTM firedFrom)
public void fireTableRowsUpdated(int r, int r2, DTM firedFrom)
public void fireTableRowsDeleted(int r, int r2, DTM firedFrom)
public void fireTableCellUpdated(int r, int r2, DTM firedFrom)
public void addTableModelListener(javax.swing.event.TableModelListener l)
l
- the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
l
- the TableModelListenerpublic void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |