Class CustomTableNode

java.lang.Object
v1.sulphurapi.structure.custom.jtable.CustomTableNode

public class CustomTableNode extends Object
  • Constructor Details

    • CustomTableNode

      public CustomTableNode(CustomCell parent, ObjectDialog parentDialog, boolean isArray)
      Constructor for CustomTableNode.
      Parameters:
      parent - The parent cell of this node, null if this is the root node.
      parentDialog - The dialog that will be used to display this node.
      isArray - Indicates whether this node represents an array or a single object.
  • Method Details

    • setActiveChildIndex

      public void setActiveChildIndex(int activeChildIndex)
    • setLazyObjectSchemaTrigger

      public void setLazyObjectSchemaTrigger(io.swagger.v3.oas.models.media.Schema<?> lazyObjectSchemaTrigger)
      This method sets the lazyObjectSchemaTrigger, which is used to calculate the schema of the Dialog when the user clicks on the cell.
    • getLazyObjectSchemaTrigger

      public io.swagger.v3.oas.models.media.Schema<?> getLazyObjectSchemaTrigger()
    • getActiveChildIndex

      public int getActiveChildIndex()
    • getParent

      public CustomCell getParent()
    • getChildren

      public ArrayList<CustomEditorTableModel> getChildren()
    • addChild

      public void addChild(CustomEditorTableModel child)
      append a child to the list of children nodes.
    • addEmptyChild

      public void addEmptyChild()
      append an empty CustomEditorTableModel to the list of children nodes.
    • removeChild

      public void removeChild(CustomEditorTableModel child)
      remove a child from the list of children nodes.
    • getChild

      public CustomEditorTableModel getChild(int index)
    • setChild

      public void setChild(int index, CustomEditorTableModel child)
    • getActiveChild

      public CustomEditorTableModel getActiveChild()
    • getParentDialog

      public ObjectDialog getParentDialog()
    • getParentNode

      public CustomTableNode getParentNode()
    • serializeNode

      public Object serializeNode()
      Serializes the node into a JSON object or array. If the node is an array, it returns a JSONArray containing serialized children. If the node is a single object, it returns a JSONObject representing the first child.
      Returns:
      A JSON representation of the node.
    • isArray

      public boolean isArray()