public abstract class TreeViewer extends ViewerRoot
ViewerRoot.CreationFlags
Constructor and Description |
---|
TreeViewer(ViewerCreateData vcd)
Creates a new TreeViewer.
|
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.
|
protected void |
init(Element e)
Initializes the viewer.
|
void |
setSelectionViewValue(DebugContext context,
boolean isReset)
Changes the value in the selection viewer based on the current selected
value.
|
boolean |
toXML(Document doc,
Element e)
Stores the state of the viewer in an XML dom element.
|
void |
updateGui()
Updates the gui.
|
void |
updateState(ViewerValueData valueData,
ViewerUpdateData data,
DebugContext context)
Updates the view state.
|
configure, contains, createBorder, createBorder, createFixedBorder, createFixedBorder, getColumnHeader, getMainPanel, getMainSize, getMainToolTipText, getRowHeader, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getVIData, isViewerTransparent, paintMainView, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInfo, getPriority, getViewName
public TreeViewer(ViewerCreateData vcd)
vcd
- viewer creation data.public void build(ViewerInitData vid, Element initDataIn)
build
in interface Viewer
build
in class ViewerRoot
vid
- initialization and control element for the viewer.initDataIn
- XML initialization data for the viewer.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 destroy()
public void setSelectionViewValue(DebugContext context, boolean isReset)
context
- the current debug context.isReset
- true if the current value should be considered a "new"
value, false otherwise.public boolean toXML(Document doc, Element e)
toXML
in interface Viewer
toXML
in class ViewerRoot
doc
- the document to which the element applies.e
- the element to be populated.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 void init(Element e)
e
- XML initialization data.