public abstract class StringListView extends ViewerRoot
Modifier and Type | Class and Description |
---|---|
static class |
StringListView.LM
List model that only holds visible items.
|
static class |
StringListView.LMElement
List model element.
|
static class |
StringListView.MarkDisplay
Component for displaying index marker.
|
ViewerRoot.CreationFlags
Constructor and Description |
---|
StringListView(ViewerCreateData vcd)
Creates a new StringListView.
|
Modifier and Type | Method and Description |
---|---|
void |
buildGui(JPanel mainPanel)
Builds the user interface.
|
void |
configure()
Configures the viewer.
|
void |
destroy()
Called when the viewer is closed or frozen.
|
protected JComponent |
getAccessoryPane()
Gets an accessory pane for the viewer.
|
JComponent |
getItemList()
Gets the component that displays the items.
|
abstract int |
update(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context,
int viewOffset,
int numItemsShown,
int selected,
String[] textOut,
Value[] valuesOut,
String[] errorOut)
Updates the viewer.
|
void |
updateGui()
Updates the gui.
|
void |
updateState(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context)
Updates the view state.
|
build, contains, createBorder, createBorder, createFixedBorder, createFixedBorder, getColumnHeader, getMainPanel, getMainSize, getMainToolTipText, getRowHeader, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getVIData, isViewerTransparent, paintMainView, toXML, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInfo, getPriority, getViewName
public StringListView(ViewerCreateData vcd)
vcd
- creation data.public void buildGui(JPanel mainPanel)
buildGui
in class ViewerRoot
mainPanel
- the root panel for the UI. This will be an empty JPanel with
no layout manager set.public void configure()
configure
in class ViewerRoot
public void destroy()
public JComponent getItemList()
public abstract int update(ViewerValueData valueData, ViewerUpdateData data, DebugContext context, int viewOffset, int numItemsShown, int selected, String[] textOut, Value[] valuesOut, 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, 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 void updateGui()
updateGui
in class ViewerRoot
public void updateState(ViewerValueData valueData, ViewerUpdateData data, DebugContext context) throws ViewerException
updateState
in class ViewerRoot
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.ViewerException
- if an exception is encountered.protected JComponent getAccessoryPane()