Class CustomCell
java.lang.Object
v1.sulphurapi.structure.custom.jtable.CustomCell
-
Constructor Summary
ConstructorsConstructorDescriptionCustomCell
(int column, CustomTableRow parent) Constructor for CustomCell.CustomCell
(int column, CustomTableRow parent, String value) Constructor for CustomCell with a value. -
Method Summary
Modifier and TypeMethodDescriptionint
io.swagger.v3.oas.models.media.Schema
<?> getNode()
getValue()
void
setComponent
(Component component) Sets the component of a cell (e.g., JTextField, JComboBox, etc.)void
setEditor
(TableCellEditor editor) Sets the editor for the cell (e.g., DefaultCellEditor, ObjectDialogCellEditor, etc.)void
Sets the value of the cell.void
If the cell is in the "Type" column, it will update the combo boxes based on the types of the schema of the parent row.void
updateValueField
(String cellType) Updates the value field of the cell based on the type of the cell.
-
Constructor Details
-
CustomCell
Constructor for CustomCell.- Parameters:
column
- The column index of the cell.parent
- The parent row of the cell.
-
CustomCell
Constructor for CustomCell with a value.- Parameters:
column
- The column index of the cell.parent
- The parent row of the cell.value
- The initial value of the cell.
-
-
Method Details
-
setComponent
Sets the component of a cell (e.g., JTextField, JComboBox, etc.) -
getComponent
-
setEditor
Sets the editor for the cell (e.g., DefaultCellEditor, ObjectDialogCellEditor, etc.) -
getEditor
-
getColumn
public int getColumn() -
getValue
-
setValue
Sets the value of the cell. -
getParentRow
-
updateTypeComboxBox
public void updateTypeComboxBox()If the cell is in the "Type" column, it will update the combo boxes based on the types of the schema of the parent row. -
updateValueField
Updates the value field of the cell based on the type of the cell. If the cell is an array or object, it will create a new ObjectDialogCellEditor. If the cell is null, it will set the component and editor to null. If the cell is a primitive type, it will create a JTextField as the component.- Parameters:
cellType
- The type of the cell (e.g., "array", "object", "null", "string", "integer").
-
getLazyObjectSchemaTrigger
public io.swagger.v3.oas.models.media.Schema<?> getLazyObjectSchemaTrigger() -
getParentDialog
-
getNode
-