Class ObjectTreeBrowser

java.lang.Object
qupath.lib.gui.panes.ObjectTreeBrowser

public class ObjectTreeBrowser extends Object
Simple browser for exploring fields (including private fields) within an object by reflection.
Author:
Pete Bankhead
  • Constructor Details

    • ObjectTreeBrowser

      public ObjectTreeBrowser()
  • Method Details

    • createObjectTreeBrowser

      public static TreeTableView<Object> createObjectTreeBrowser(String name, Object object)
      Create a TreeTableView showing the names and values of object fields, accessed via reflection.
      Parameters:
      name - root name used to identify the provided object
      object - the object whose fields should be inspected
      Returns:
      a view depicting object fields
    • createJsonTreeBrowser

      public static TreeTableView<JsonElement> createJsonTreeBrowser(String name, Object object)
      Create a TreeTableView showing the names and values of fields within a JsonElement.
      Parameters:
      name - root name used to identify the provided object
      object - the object whose fields should be inspected. If this is not already a JsonElement, an attempt will be made to convert it using GsonTools.
      Returns:
      a view depicting element fields