public abstract class TextAreaView extends ViewerRoot
ViewerRoot.CreationFlags
Constructor and Description |
---|
TextAreaView()
Creates a new TextAreaView with no line wrapping.
|
TextAreaView(boolean wrapIn)
Creates a new ViewerRoot.
|
Modifier and Type | Method and Description |
---|---|
void |
buildGui(JPanel mainPanel)
Builds the user interface.
|
void |
destroy()
Called when the viewer is closed or frozen.
|
abstract String |
getDisplayText(Value value,
DebugContext context)
Gets the text to be displayed.
|
abstract int |
getPriority(ViewerPriorityData vpd)
Gets the viewer priority.
|
abstract String |
getViewName()
Gets the display name of the viewer.
|
void |
updateGui()
Updates the gui.
|
void |
updateState(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context)
Updates the view state.
|
build, configure, contains, createBorder, createBorder, createFixedBorder, createFixedBorder, getColumnHeader, getMainPanel, getMainSize, getMainToolTipText, getRowHeader, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getVIData, isViewerTransparent, paintMainView, toXML, update
public TextAreaView()
public TextAreaView(boolean wrapIn)
wrapIn
- true if the viewer should wrap lines, false otherwisepublic 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 destroy()
public abstract String getDisplayText(Value value, DebugContext context) throws ViewerException
value
- the new value.context
- debugger context that is necessary for working with the
value, and provides some global debugger access.ViewerException
- if any exceptions occur and are not caught while
using jgrdi.public abstract int getPriority(ViewerPriorityData vpd)
vpd
- data about how the viewer will be used.Integer.MIN_VALUE
indicates that the viewer
dialog or canvas should change viewers.public abstract String getViewName()
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.