Class JKTableColumnValue<T>

java.lang.Object
com.jk.core.model.table.JKTableColumnValue<T>
Type Parameters:
T - the data type of the value.

public class JKTableColumnValue<T> extends Object
This class represents a value associated with a specific table column in a JKTableModel.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKTableColumnValue

      public JKTableColumnValue()
      This method constructs a new JKTableColumnValue.
    • JKTableColumnValue

      public JKTableColumnValue(JKTableColumn tableColumn)
      This method constructs a new JKTableColumnValue associated with the given table column.
      Parameters:
      tableColumn - Specifies the table column, this value is associated with.
  • Method Details

    • getTableColumn

      public JKTableColumn getTableColumn()
      This method the table column associated with this value.
      Returns:
      the table column associated with this value.
    • getValue

      public T getValue()
      This method gets the actual value contained.
      Returns:
      the value.
    • isEnabled

      public boolean isEnabled()
      This method checks if this value is enabled or not.
      Returns:
      true, if it is enabled, false otherwise.
    • setEnabled

      public void setEnabled(boolean enabled)
      This method specify if this value is enabled or not.
      Parameters:
      enabled - Specifies if this value is enabled or not.
    • setTableColumn

      public void setTableColumn(JKTableColumn tableColumn)
      This method sets the table column to the specified column.
      Parameters:
      tableColumn - Specifies the new table column associated with this value.
    • setValue

      public void setValue(T value)
      This method changes the value to the specified one.
      Parameters:
      value - Specifies the new value.