|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.eodisp.ui.sm.models.SmErrorModel
public class SmErrorModel
This is the model for the property sheet used in the simulation manager application. It will display the properties of an object item in the simulation manager project file.
This model can be used by a JTable to display the
properties.
This model is tightly coupled with the Emf framework. The model itself holds no data, all data is directly retrieved from the Emf framework.
| Field Summary | |
|---|---|
(package private) static org.apache.log4j.Logger |
logger
Log4J logger for this class |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SmErrorModel()
Constructor. |
|
| Method Summary | |
|---|---|
void |
doSave()
Executes the save command in the model. |
void |
doUpdate()
Instructs the model to do an update of its data. |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int column)
|
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
hasChanges()
Returns a value stating whether the model has some changes since the last change. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
void |
redo()
This re-performs the last command executed by the model. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
void |
undo()
This makes and undo of the last command executed by the model. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public SmErrorModel()
| Method Detail |
|---|
public int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModel
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModel
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic boolean hasChanges()
hasChanges in interface EodispModel
public void doSave()
throws java.io.IOException
doSave in interface EodispModeljava.io.IOException - thrown when the data could not be saved persistently. This
should lead to a visual indication to the user.public void doUpdate()
Instructs the model to do an update of its data. Many
EodispModels are just intermediated models for view
components and do not hold the actual data. The actual data is usually
retrieved and maintained by a persistency framework. Thus, if the real
data has been changed, a model can be informed of this updated and it can
be instructed to reload the data.
This should in most cases lead to an update of the visual component representing the data as well.
doUpdate in interface EodispModelpublic void redo()
redo in interface EodispModelpublic void undo()
undo in interface EodispModel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||