Class JKTableColumn

java.lang.Object
com.jk.core.model.table.JKTableColumn

public class JKTableColumn extends Object
This class represents a table column configuration for use with a table model.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKTableColumn

      public JKTableColumn()
  • Method Details

    • getColumnClass

      public Class getColumnClass()
      This method gets the column class.
      Returns:
      the column class.
    • getColumnClassName

      public String getColumnClassName()
      This method gets the column class name.
      Returns:
      the column class name.
    • getColumnType

      public int getColumnType()
      This method gets the column type numeric value.
      Returns:
      the column type numeric value.
    • getColumnTypeName

      public String getColumnTypeName()
      This method gets the column type name.
      Returns:
      the column type name.
    • getEditor

      public TableCellEditor getEditor()
      This method gets the editor.
      Returns:
      the editor.
    • getFormatter

      public Format getFormatter()
      This method gets the formatter.
      Returns:
      the formatter.
    • getHumanName

      public String getHumanName()
      This method gets the human-readable name of the column.
      Returns:
      the human-readable name of the column.
    • getIndex

      public int getIndex()
      This method gets the column index.
      Returns:
      the column index.
    • getMaxLength

      public int getMaxLength()
      This method gets the max length.
      Returns:
      the max length.
    • getName

      public String getName()
      This method gets the column name.
      Returns:
      the column name.
    • getPreferredWidth

      public int getPreferredWidth()
      This method gets the preferred width.
      Returns:
      the preferred width.
    • getRenderer

      public TableCellRenderer getRenderer()
      This method gets the renderer.
      Returns:
      the renderer.
    • getVisibleIndex

      public int getVisibleIndex()
      This method gets the visible column index.
      Returns:
      the visible column index.
    • isEditable

      public boolean isEditable()
      This method checks if this column is editable as well as visible.
      Returns:
      true, if the column is editable as well as visible, false otherwise.
    • isNumeric

      public boolean isNumeric()
      This method checks if this column is numeric or not.
      Returns:
      true, if it is numeric, false otherwise.
    • isRequired

      public boolean isRequired()
      This method checks if this column is required or not.
      Returns:
      true, if it is required, false otherwise.
    • isVisible

      public boolean isVisible()
      This method checks if this column is visible or not.
      Returns:
      true, if it is visible, false otherwise.
    • setColumnClass

      public void setColumnClass(Class columnClass)
      This method sets the column class to the specified value.
      Parameters:
      columnClass - Specifies the new column class.
    • setColumnClassName

      public void setColumnClassName(String columnClassName) throws ClassNotFoundException
      This method sets the column class name to the specified value.
      Parameters:
      columnClassName - Specifies the new column class name.
      Throws:
      ClassNotFoundException - if the class is not found.
    • setColumnType

      public void setColumnType(int columnType)
      This method sets the column type to the specified value.
      Parameters:
      columnType - Specifies the new column type.
    • setColumnTypeName

      public void setColumnTypeName(String columnTypeName)
      This method sets the column type name to the specified value.
      Parameters:
      columnTypeName - Specifies the new column type name.
    • setDefaultValue

      public void setDefaultValue(Object defaultValue)
      This method sets the default value to the specified value.
      Parameters:
      defaultValue - Specifies the new default value.
    • setEditable

      public void setEditable(boolean editable)
      This method sets the editable to the specified value.
      Parameters:
      editable - Specifies the new editable.
    • setEditor

      public void setEditor(TableCellEditor cellEditor)
      This method sets the editor to the specified value.
      Parameters:
      cellEditor - Specifies the new editor.
    • setFormatter

      public void setFormatter(Format formatter)
      This method sets the formatter to the specified value.
      Parameters:
      formatter - Specifies the new formatter.
    • setHumanName

      public void setHumanName(String humanName)
      This method sets the human-readable name to the specified value.
      Parameters:
      humanName - Specifies the new human-readable name.
    • setIndex

      public void setIndex(int index)
      This method sets the index to the specified value.
      Parameters:
      index - Specifies the new index.
    • setMaxLength

      public void setMaxLength(int maxLength)
      This method sets the max length to the specified value.
      Parameters:
      maxLength - Specifies the new max length.
    • setName

      public void setName(String name)
      This method sets the name to the specified value.
      Parameters:
      name - Specifies the new name.
    • setPreferredWidth

      public void setPreferredWidth(int preferredWidth)
      This method sets the preferred width to the specified value.
      Parameters:
      preferredWidth - Specifies the new preferred width.
    • setRenderer

      public void setRenderer(TableCellRenderer cellRenderer)
      This method sets the renderer to the specified value.
      Parameters:
      cellRenderer - Specifies the new renderer.
    • setRequired

      public void setRequired(boolean required)
      This method indicated whether the column is required or not.
      Parameters:
      required - Specifies whether the column is required or not.
    • setVisible

      public void setVisible(boolean visible)
      This method indicated whether the column is visible or not.
      Parameters:
      visible - Specifies whether the column is visible or not.
    • setVisibleIndex

      public void setVisibleIndex(int visibleIndex)
      This method sets the visible index to the specified value.
      Parameters:
      visibleIndex - Specifies the new visible index.
    • setAliasName

      public void setAliasName(String name)
      This method sets the alias name to the specified value.
      Parameters:
      name - Specifies the new alias name.
    • getAliasName

      public String getAliasName()
      This method gets the alias name.
      Returns:
      the alias name.