Class CustomTableNode
java.lang.Object
v1.sulphurapi.structure.custom.jtable.CustomTableNode
-
Constructor Summary
ConstructorsConstructorDescriptionCustomTableNode
(CustomCell parent, ObjectDialog parentDialog, boolean isArray) Constructor for CustomTableNode. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(CustomEditorTableModel child) append a child to the list of children nodes.void
append an emptyCustomEditorTableModel
to the list of children nodes.int
getChild
(int index) io.swagger.v3.oas.models.media.Schema
<?> boolean
isArray()
void
remove a child from the list of children nodes.Serializes the node into a JSON object or array.void
setActiveChildIndex
(int activeChildIndex) void
setChild
(int index, CustomEditorTableModel child) 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.
-
Constructor Details
-
CustomTableNode
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
-
getChildren
-
addChild
append a child to the list of children nodes. -
addEmptyChild
public void addEmptyChild()append an emptyCustomEditorTableModel
to the list of children nodes. -
removeChild
remove a child from the list of children nodes. -
getChild
-
setChild
-
getActiveChild
-
getParentDialog
-
getParentNode
-
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()
-