public abstract class StringTableViewWSV extends StringTableView
ViewerRoot.CreationFlags| Constructor and Description |
|---|
StringTableViewWSV(ViewerCreateData vcd,
boolean doubleSubviewer)
Creates a new string table viewer with subviewer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build(ViewerInitData vid,
Element initDataIn)
Builds the viewer non-gui internals.
|
void |
buildGui(JPanel mainPanel)
Builds the user interface.
|
void |
destroy()
Called when the viewer is closed or frozen.
|
int |
getComponentIndex(Point pos)
Gets the subcomponent index at a particular position.
|
abstract String |
getSubviewerLabel(int index,
String viewerLabel,
int rowIndex,
int colIndex)
Gets a subviewer label.
|
abstract String |
getSubviewerTreeLabel(int index,
String viewerLabel,
int rowIndex,
int colIndex)
Gets the label that will be displayed in the basic view for a subviewer.
|
void |
update(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context,
int rowOffset,
int colOffset,
int numRowsShown,
int numColsShown,
int selectedRow,
int selectedCol,
String[][] textOut,
Value[][] valuesOut,
int[] rowsOut,
int[] colsOut,
String[] errorOut)
Updates the viewer.
|
abstract void |
update(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context,
int rowOffset,
int colOffset,
int numRowsShown,
int numColsShown,
int selectedRow,
int selectedCol,
String[][] textOut,
Value[][] valuesOut,
Value[] selectedValuesOut,
String[] selectedExpressionsOut,
int[] rowsOut,
int[] colsOut,
String[] errorOut)
Updates the viewer.
|
configure, contains, getColumnHeader, getMainSize, getMainToolTipText, getRowHeader, getScrollableBlockIncrement, getScrollableUnitIncrement, init, paintMainView, toXML, updateStatecreateBorder, createBorder, createFixedBorder, createFixedBorder, getMainPanel, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getVIData, isViewerTransparent, update, updateGuiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInfo, getPriority, getViewNamepublic StringTableViewWSV(ViewerCreateData vcd, boolean doubleSubviewer)
vcd - creation data.doubleSubviewer - true if there should be two subviewers, false if
there will be one.public void build(ViewerInitData vid, Element initDataIn)
build in interface Viewerbuild in class StringTableViewvid - initialization and control element for the viewer.initDataIn - XML initialization data for the viewer.public void buildGui(JPanel mainPanel)
buildGui in class StringTableViewmainPanel - the root panel for the UI. This will be an empty JPanel with
no layout manager set.public void destroy()
destroy in interface Viewerdestroy in class StringTableViewpublic int getComponentIndex(Point pos)
pos - the position of interest.public abstract String getSubviewerLabel(int index, String viewerLabel, int rowIndex, int colIndex)
index - the index of the subviewer.viewerLabel - the viewer label for this viewer.rowIndex - the index of the selected item row.colIndex - the index of the selected item column.public abstract String getSubviewerTreeLabel(int index, String viewerLabel, int rowIndex, int colIndex)
index - the index of the subviewer.viewerLabel - the viewer label for this viewer.rowIndex - the index of the selected item row.colIndex - the index of the selected item column.public void update(ViewerValueData valueData, ViewerUpdateData data, DebugContext context, int rowOffset, int colOffset, int numRowsShown, int numColsShown, int selectedRow, int selectedCol, String[][] textOut, Value[][] valuesOut, int[] rowsOut, int[] colsOut, String[] errorOut) throws ViewerException
update in class StringTableViewvalueData - the new value and associated information, such as
declared type. This will be null for animation updates.data - information about this update, such as why it was triggered,
and if it was triggered by a flagged method entry, the method argument
values.context - debugger context that is necessary for working with
values, and provides some global debugger access. This will be null for
animation updates.rowOffset - the current display row offset (first row shown).colOffset - the current display column offset (first column shown).numRowsShown - the number of rows shown.numColsShown - the number of columns shown.selectedRow - index of the selected row minus the row offset, or -1
if there is no selection.selectedCol - index of the selected column minus the column offset,
or -1 if there is no selection.textOut - an array to be filled with the display text for each item
shown. Items that don't exist must be left null.valuesOut - an array to be filled with the value for each item
shown. Items that don't exist should be left null.rowsOut - the number of available rows must be returned in the first
element of this array.colsOut - the number of available columns must be returned in the
first element of this array.errorOut - any error messages should be returned in the first
element of this array. If the first element is non-null after this call,
the error message will be displayed instead of the values.ViewerException - if an exception is encountered.public abstract void update(ViewerValueData valueData, ViewerUpdateData data, DebugContext context, int rowOffset, int colOffset, int numRowsShown, int numColsShown, int selectedRow, int selectedCol, String[][] textOut, Value[][] valuesOut, Value[] selectedValuesOut, String[] selectedExpressionsOut, int[] rowsOut, int[] colsOut, String[] errorOut) throws ViewerException
valueData - the new value and associated information, such as
declared type. This will be null for animation updates.data - information about this update, such as why it was triggered,
and if it was triggered by a flagged method entry, the method argument
values.context - debugger context that is necessary for working with
values, and provides some global debugger access. This will be null for
animation updates.rowOffset - the current display row offset (first row shown).colOffset - the current display column offset (first column shown).numRowsShown - the number of rows shown.numColsShown - the number of columns shown.selectedRow - index of the selected row minus the row offset, or -1
if there is no selection.selectedCol - index of the selected column minus the column offset,
or -1 if there is no selection.rowsOut - the number of available rows must be returned in the first
element of this array.colsOut - the number of available columns must be returned in the
first element of this array.textOut - an array to be filled with the display text for each item
shown. Items that don't exist should be left null.valuesOut - an array to be filled with the value for each item
shown. Items that don't exist should be left null.selectedValuesOut - the value to display in each subviewer should be
returned in this array. Any or all of them may be null.selectedExpressionsOut - the expression for each selected value. Any
or all of them may be null, even if the corresponding selected value is
not null.errorOut - any error messages should be returned in the first
element of this array. If the first element is non-null after this call,
the error message will be displayed instead of the values.ViewerException - if an exception is encountered.