public abstract class StringListViewWSV extends StringListView
StringListView.LM, StringListView.LMElement, StringListView.MarkDisplayViewerRoot.CreationFlags| Constructor and Description |
|---|
StringListViewWSV(ViewerCreateData vcd,
boolean doubleSubviewer)
Creates a new string list 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 itemIndex)
Gets a subviewer label.
|
abstract String |
getSubviewerTreeLabel(int index,
String viewerLabel,
int itemIndex)
Gets the label that will be displayed in the basic view for a subviewer.
|
int |
update(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context,
int viewOffset,
int numItemsShown,
int selected,
String[] textOut,
Value[] valuesOut,
String[] errorOut)
Updates the viewer.
|
abstract int |
update(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context,
int viewOffset,
int numItemsShown,
int selected,
String[] textOut,
Value[] valuesOut,
Value[] selectedValuesOut,
String[] selectedExpressionsOut,
String[] errorOut)
Updates the viewer.
|
configure, getAccessoryPane, getItemList, updateGui, updateStatecontains, createBorder, createBorder, createFixedBorder, createFixedBorder, getColumnHeader, getMainPanel, getMainSize, getMainToolTipText, getRowHeader, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getVIData, isViewerTransparent, paintMainView, toXML, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInfo, getPriority, getViewNamepublic StringListViewWSV(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 ViewerRootvid - initialization and control element for the viewer.initDataIn - XML initialization data for the viewer.public void buildGui(JPanel mainPanel)
buildGui in class StringListViewmainPanel - 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 StringListViewpublic int getComponentIndex(Point pos)
pos - the position of interest.public abstract String getSubviewerLabel(int index, String viewerLabel, int itemIndex)
index - the index of the subviewer.viewerLabel - the viewer label for this viewer.itemIndex - the index of the selected item.public abstract String getSubviewerTreeLabel(int index, String viewerLabel, int itemIndex)
index - the index of the subviewer.viewerLabel - the viewer label for this viewer.itemIndex - the index of the selected item.public int update(ViewerValueData valueData, ViewerUpdateData data, DebugContext context, int viewOffset, int numItemsShown, int selected, String[] textOut, Value[] valuesOut, String[] errorOut) throws ViewerException
update in class StringListViewvalueData - 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.viewOffset - the current display offset (first item shown).numItemsShown - the number of items shown.selected - index of the selected item, or -1 if there is no
selection.textOut - an array to be filled with the display text for each item
shown.valuesOut - an array to be filled with the value for each item
shown.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 int update(ViewerValueData valueData, ViewerUpdateData data, DebugContext context, int viewOffset, int numItemsShown, int selected, String[] textOut, Value[] valuesOut, Value[] selectedValuesOut, String[] selectedExpressionsOut, 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.viewOffset - the current display offset (first item shown).numItemsShown - the number of items shown.selected - index of the selected item minus the offset, or -1 if
there is no selection.textOut - an array to be filled with the display text for each item
shown.valuesOut - an array to be filled with the value for each item
shown.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.