Class CustomCell

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

public class CustomCell extends Object
  • Constructor Details

    • CustomCell

      public CustomCell(int column, CustomTableRow parent)
      Constructor for CustomCell.
      Parameters:
      column - The column index of the cell.
      parent - The parent row of the cell.
    • CustomCell

      public CustomCell(int column, CustomTableRow parent, String value)
      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

      public void setComponent(Component component)
      Sets the component of a cell (e.g., JTextField, JComboBox, etc.)
    • getComponent

      public Component getComponent()
    • setEditor

      public void setEditor(TableCellEditor editor)
      Sets the editor for the cell (e.g., DefaultCellEditor, ObjectDialogCellEditor, etc.)
    • getEditor

      public TableCellEditor getEditor()
    • getColumn

      public int getColumn()
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)
      Sets the value of the cell.
    • getParentRow

      public CustomTableRow 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

      public void updateValueField(String cellType)
      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

      public ObjectDialog getParentDialog()
    • getNode

      public CustomTableNode getNode()