public abstract class BrowserDataModel extends javax.swing.table.AbstractTableModel
Modifier and Type | Class and Description |
---|---|
(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.
|
Modifier and Type | Field and Description |
---|---|
(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
|
Constructor and Description |
---|
BrowserDataModel() |
Modifier and Type | Method and Description |
---|---|
(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
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
protected javax.swing.JFrame m_frame
static int lastX
static int lastY
public BrowserDataModel()
abstract Object getViewable(int index)
index
- The index into the table model of the item to showabstract 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 tablestatic 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 displayedThrowable
- If the content of the file cannot be displayed.Copyright © IBM 2016. All rights reserved.