|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--org.scopemvc.view.swing.SAbstractListModel
|
+--org.scopemvc.view.swing.STableModel
STable,
Serialized Form| Field Summary | |
protected java.lang.String[] |
columnNames
TODO: describe of the Field |
protected boolean[] |
columnsEditable
if null editable when read-write property else read-only |
protected Selector[] |
columnSelectors
TODO: describe of the Field |
protected PropertyManager |
manager
TODO: describe of the Field |
protected javax.swing.JTable |
table
TODO: describe of the Field |
| Fields inherited from class org.scopemvc.view.swing.SAbstractListModel |
listModel, sizeSelector |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
STableModel(javax.swing.JTable inTable)
Constructor for the STableModel object |
|
| Method Summary | |
void |
addListDataListener(javax.swing.event.ListDataListener l)
Adds an element to the ListDataListener attribute of the STableModel object |
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. |
protected void |
fireContentsChanged(java.lang.Object source,
int index0,
int index1)
TODO: document the method |
protected void |
fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
TODO: document the method |
protected void |
fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
TODO: document the method |
void |
fireTableCellUpdated(int row,
int column)
Notifies all listeners that the value of the cell at [row, column]
has been updated. |
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()
Notifies all listeners that all cell values in the table's rows may have changed. |
void |
fireTableRowsDeleted(int firstRow,
int lastRow)
Notifies all listeners that rows in the range [firstRow, lastRow]
, inclusive, have been deleted. |
void |
fireTableRowsInserted(int firstRow,
int lastRow)
Notifies all listeners that rows in the range [firstRow, lastRow]
, inclusive, have been inserted. |
void |
fireTableRowsUpdated(int firstRow,
int lastRow)
Notifies all listeners that rows in the range [firstRow, lastRow]
, inclusive, have been updated. |
void |
fireTableStructureChanged()
Notifies all listeners that the table's structure has changed. |
java.lang.Class |
getColumnClass(int inColumn)
Gets the column class |
int |
getColumnCount()
Gets the column count |
java.lang.String |
getColumnName(int inColumn)
Gets the column name |
protected Selector |
getColumnSelector(int inColumn)
Gets the column selector |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
Returns an array of all the listeners of the given type that were added to this model. |
protected PropertyManager |
getPropertyManager()
Gets the property manager |
int |
getRowCount()
Gets the row count |
java.lang.Object |
getValueAt(int inRow,
int inColumn)
Gets the value at |
boolean |
isCellEditable(int inRow,
int inColumn)
Gets the cell editable |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
TODO: document the method |
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 |
setColumnNames(java.lang.String[] inNames)
Sets the column names |
void |
setColumnSelectors(Selector[] inSelectors)
Sets the column selectors |
void |
setColumnSelectorStrings(java.lang.String[] inSelectorStrings)
Sets the column selector strings |
void |
setEditableColumns(boolean[] inEditables)
Sets the editable columns |
protected void |
setShownModel(java.lang.Object inModel)
Called internally from updateFromProperty(). |
void |
setValueAt(java.lang.Object inValue,
int inRow,
int inColumn)
Sets the value at |
| Methods inherited from class org.scopemvc.view.swing.SAbstractListModel |
containsElement, doModelChanged, getBoundModel, getElementAt, getSelector, getShownModel, getSize, getSizeSelector, getViewValue, isSorted, modelChanged, refresh, setBoundModel, setComparator, setListModel, setSelector, setSelectorString, setSizeSelector, setSizeSelectorString, setSorted, setSorted, updateFromProperty, validationFailed, validationSuccess |
| Methods inherited from class javax.swing.AbstractListModel |
getListDataListeners |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Selector[] columnSelectors
protected java.lang.String[] columnNames
protected boolean[] columnsEditable
protected PropertyManager manager
protected javax.swing.JTable table
| Constructor Detail |
public STableModel(javax.swing.JTable inTable)
inTable - TODO: Describe the Parameter| Method Detail |
public int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int inColumn)
getColumnName in interface javax.swing.table.TableModelinColumn - TODO: Describe the Parameter
public java.lang.Class getColumnClass(int inColumn)
getColumnClass in interface javax.swing.table.TableModelinColumn - TODO: Describe the Parameter
public boolean isCellEditable(int inRow,
int inColumn)
isCellEditable in interface javax.swing.table.TableModelinRow - TODO: Describe the ParameterinColumn - TODO: Describe the Parameter
public java.lang.Object getValueAt(int inRow,
int inColumn)
getValueAt in interface javax.swing.table.TableModelinRow - TODO: Describe the ParameterinColumn - TODO: Describe the Parameter
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
getListeners in class javax.swing.AbstractListModellistenerType - TODO: Describe the Parameter
public void setColumnSelectors(Selector[] inSelectors)
inSelectors - The new columnSelectors valuepublic void setColumnSelectorStrings(java.lang.String[] inSelectorStrings)
inSelectorStrings - The new columnSelectorStrings valuepublic void setColumnNames(java.lang.String[] inNames)
inNames - The new columnNames valuepublic void setEditableColumns(boolean[] inEditables)
inEditables - The new editableColumns value
public void setValueAt(java.lang.Object inValue,
int inRow,
int inColumn)
setValueAt in interface javax.swing.table.TableModelinValue - The new valueAt valueinRow - The new valueAt valueinColumn - The new valueAt valuepublic void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModeladdListDataListener in class javax.swing.AbstractListModell - The element to be added to the ListDataListener attributepublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModelremoveListDataListener in class javax.swing.AbstractListModell - TODO: Describe the Parameterpublic void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface javax.swing.table.TableModell - the TableModelListenerpublic void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModell - the TableModelListenerpublic void fireTableDataChanged()
JTable
should redraw the table from scratch. The structure of the table (as in
the order of the columns) is assumed to be the same.
TableModelEventpublic void fireTableStructureChanged()
JTable receives
this event and its autoCreateColumnsFromModel flag is set it
discards any table columns that it had and reallocates default columns in
the order they appear in the model. This is the same as calling setModel(TableModel)
on the JTable.
TableModelEvent
public void fireTableRowsInserted(int firstRow,
int lastRow)
[firstRow, lastRow]
, inclusive, have been inserted.
firstRow - the first rowlastRow - the last rowTableModelEvent
public void fireTableRowsUpdated(int firstRow,
int lastRow)
[firstRow, lastRow]
, inclusive, have been updated.
firstRow - the first rowlastRow - the last rowTableModelEvent
public void fireTableRowsDeleted(int firstRow,
int lastRow)
[firstRow, lastRow]
, inclusive, have been deleted.
firstRow - the first rowlastRow - the last rowTableModelEvent
public void fireTableCellUpdated(int row,
int column)
[row, column]
has been updated.
row - row of cell which has been updatedcolumn - column of cell which has been updatedTableModelEventpublic 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),
TableModelEventprotected Selector getColumnSelector(int inColumn)
inColumn - TODO: Describe the Parameter
protected PropertyManager getPropertyManager()
protected void setShownModel(java.lang.Object inModel)
setShownModel in class SAbstractListModelinModel - The new shownModel value
protected void fireContentsChanged(java.lang.Object source,
int index0,
int index1)
fireContentsChanged in class javax.swing.AbstractListModelsource - TODO: Describe the Parameterindex0 - TODO: Describe the Parameterindex1 - TODO: Describe the Parameter
protected void fireIntervalAdded(java.lang.Object source,
int index0,
int index1)
fireIntervalAdded in class javax.swing.AbstractListModelsource - TODO: Describe the Parameterindex0 - TODO: Describe the Parameterindex1 - TODO: Describe the Parameter
protected void fireIntervalRemoved(java.lang.Object source,
int index0,
int index1)
fireIntervalRemoved in class javax.swing.AbstractListModelsource - TODO: Describe the Parameterindex0 - TODO: Describe the Parameterindex1 - TODO: Describe the Parameter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||