|
Project: stp | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectjavax.swing.table.AbstractTableModel
com.ibm.rational.stp.client.samples.BrowserDataModel
public abstract class BrowserDataModel
An all-in-one class for displaying a table of browser data
| Nested Class Summary | |
|---|---|
(package private) static interface |
BrowserDataModel.Operations
A specification for the interface between the BrowserDataModel and a provider of operations to be applied to the object displayed in the model. |
| Field Summary | |
|---|---|
(package private) static int |
lastX
The X offset for the next window displayed |
(package private) static int |
lastY
The Y offset for the next window displayed |
protected javax.swing.JFrame |
m_frame
The frame containing this data model |
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
BrowserDataModel()
|
|
| Method Summary | |
|---|---|
(package private) BrowserDataModel.Operations |
getOperationsObject()
|
(package private) abstract Object |
getViewable(int index)
Returns the object that is viewable at a given index in the table model |
(package private) void |
redisplay()
Rereads the data from the resource and redisplays it |
(package private) int[] |
selectedRows(javax.swing.JTable table)
Returns the rows of the table currently selected in the display |
(package private) abstract void |
show(Object viewable)
Displays an object returned by getViewable |
(package private) void |
showContent()
Displays the content of the object whose properties are displayed in this table. |
(package private) static javax.swing.JFrame |
showFile(String title,
File file)
Displays the content of file in a window. |
(package private) javax.swing.JFrame |
showModel(String title,
boolean hasContent)
Generates a display of this table. |
(package private) void |
toggleErrors()
Processes the Show/Hide Errors button when clicked. |
(package private) String |
toggleErrorsLabel()
Returns the label to place on the Hide/Show Errors button |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
getColumnCount, getRowCount, getValueAt |
| Field Detail |
|---|
protected javax.swing.JFrame m_frame
static int lastX
static int lastY
| Constructor Detail |
|---|
public BrowserDataModel()
| Method Detail |
|---|
abstract Object getViewable(int index)
index - The index into the table model of the item to show
abstract void show(Object viewable)
throws javax.wvcm.WvcmException
viewable - The object to display.
javax.wvcm.WvcmException
void showContent()
throws Throwable
Throwable - If the content cannot be displayed.String toggleErrorsLabel()
void redisplay()
throws javax.wvcm.WvcmException
javax.wvcm.WvcmException - If problems arise during the process.
void toggleErrors()
throws javax.wvcm.WvcmException
javax.wvcm.WvcmException - if the action cannot be carried out.BrowserDataModel.Operations getOperationsObject()
javax.swing.JFrame showModel(String title,
boolean hasContent)
title - The window titlehasContent - true if the ShowContent button should be displayedint[] selectedRows(javax.swing.JTable table)
table - The table
static javax.swing.JFrame showFile(String title,
File file)
throws Throwable
title - The title string to appear in the window bannerfile - A File identifying the file whose content is to be displayed
Throwable - If the content of the file cannot be displayed.
|
Generated Wed 28-Aug-2013 02:39 AM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||