|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--de.qfs.apps.qflog.Model
The Model singleton of the qflog application doesn't do much, as it delegates most of its tasks to the ViewTableModel.
It does however keep track of the ids used for clients.
Field Summary | |
static int |
COL_ENTRIES
Identifier for the entries column |
static int |
COL_NAME
Identifier for the name column |
static int |
COL_STATE
Identifier for the state column |
static int |
COL_TIME
Identifier for the time column |
static int |
NUM_COLUMNS
Number of table columns |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Method Summary | |
void |
addView(LogView view)
Add a new LogView to the ViewTableModel. |
void |
addView(de.qfs.apps.qflog.Model.ViewData data)
Add a new ViewData to the ViewTableModel. |
java.lang.Class |
getColumnClass(int column)
Get a common base class for elements from one column. |
int |
getColumnCount()
Get the number of columns in the table. |
java.lang.String |
getColumnName(int column)
Get the name of a column. |
javax.swing.JFrame |
getFrameForRow(int index)
Get the LogFrame for a table row. |
LogListenerImpl |
getListener(int id)
Get the LogListener registered under an id. |
de.qfs.lib.logrmi.RemoteLogLevelListener |
getLogLevelListener(int id)
Get the LogLevelListener registered under an id. |
int |
getNewId(java.lang.String clientName)
Generate a new id for a client and register the client's name under it. |
int |
getRowCount()
Get the number of rows in the table. |
java.lang.Object |
getValueAt(int row,
int column)
Get a table cell value. |
LogView |
getViewForRow(int index)
Get the LogView for a table row. |
static Model |
instance()
Get the singleton Model instance. |
void |
listenerDisconnected(LogListenerImpl listener)
Notify the Model that a client has disconnected from a listener. |
void |
removeView(int index)
Remove the view for a table row. |
void |
setListener(int id,
LogListenerImpl listener)
Set a listener for an id. |
void |
setLogLevelListener(int id,
de.qfs.lib.logrmi.RemoteLogLevelListener listener)
Set a LogLevelListener for an id. |
void |
update(java.util.Observable obs,
java.lang.Object arg)
Notify the ViewTableModel that the Options have changed. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
isCellEditable,
removeTableModelListener,
setValueAt |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int NUM_COLUMNS
public static final int COL_STATE
public static final int COL_NAME
public static final int COL_TIME
public static final int COL_ENTRIES
Method Detail |
public static Model instance()
public int getNewId(java.lang.String clientName)
clientName
- The client's name.public LogListenerImpl getListener(int id)
id
- The client's id.public final void setListener(int id, LogListenerImpl listener)
id
- The id of the client.listener
- The listener to set.public void listenerDisconnected(LogListenerImpl listener)
listener
- The disconnected listener.public de.qfs.lib.logrmi.RemoteLogLevelListener getLogLevelListener(int id)
id
- The client's id.public void setLogLevelListener(int id, de.qfs.lib.logrmi.RemoteLogLevelListener listener)
id
- The client's id.listener
- The LogLevelListener to set.public void addView(LogView view)
view
- The LogView to add.public LogView getViewForRow(int index)
index
- The view's row index.public javax.swing.JFrame getFrameForRow(int index)
index
- The view's row index.public void removeView(int index)
index
- The index of the row.public void addView(de.qfs.apps.qflog.Model.ViewData data)
data
- The ViewData to add.public java.lang.String getColumnName(int column)
column
- The column to query.public java.lang.Class getColumnClass(int column)
column
- The column to query.public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- The row index.column
- The column index.public void update(java.util.Observable obs, java.lang.Object arg)
obs
- The observable, i.e. the logserver Options.arg
- An argument to notifyObservers, ignored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |