Class CoreTableColumn

java.lang.Object
com.biglybt.ui.common.table.impl.TableColumnImpl
com.biglybt.ui.common.table.impl.CoreTableColumn
All Implemented Interfaces:
TableColumn, TableColumnExtraInfoListener, TableColumnCore, Comparator<TableRowCore>
Direct Known Subclasses:
CoreTableColumnSWT

public abstract class CoreTableColumn extends TableColumnImpl implements TableColumnExtraInfoListener
This class provides constructors for setting most of the common column attributes and sets the column as a 'core' column.

  • Constructor Details

    • CoreTableColumn

      public CoreTableColumn(String sName, int iAlignment, int iPosition, int iWidth, String sTableID)
      Construct a new CoreTableColumn Type will be TYPE_TEXT, Update Interval will be INTERVAL_INVALID_ONLY

      TableCell listeners (Added, Refresh, Dispose, ToolTip) are added based on whether the class is an instance of them.

      Parameters:
      sName - Unique ID for column
      iAlignment - See TableColumnImpl.getAlignment()
      iPosition - See TableColumn.setPosition(int)
      iWidth - See TableColumn.setWidth(int)
      sTableID - See TableManager_TABLE*
    • CoreTableColumn

      public CoreTableColumn(Class forDataSourceType, String sName, int iAlignment, int iWidth, String sTableID)
    • CoreTableColumn

      public CoreTableColumn(String sName, int iPosition, int iWidth, String sTableID)
      Construct a new CoreTableColumn.

      Alignment will be ALIGN_LEAD, Type will be TYPE_TEXT, Update Interval will be INTERVAL_INVALID_ONLY

      TableCell listeners (Added, Refresh, Dispose, ToolTip) are added based on whether the class is an instance of them.

      Parameters:
      sName - Unique ID for column
      iPosition - See TableColumn.setPosition(int)
      iWidth - See TableColumn.setWidth(int)
      sTableID - See TableManager_TABLE*
    • CoreTableColumn

      public CoreTableColumn(String sName, int iWidth, String sTableID)
      Construct a new CoreTableColumn.

      Alignment will be ALIGN_LEAD, Type will be TYPE_TEXT, Position will be POSITION_INVISIBLE, Update Interval will be INTERVAL_INVALID_ONLY

      TableCell listeners (Added, Refresh, Dispose, ToolTip) are added based on whether the class is an instance of them.

      Parameters:
      sName - Unique ID for column
      iWidth - See TableColumn.setWidth(int)
      sTableID - See TableManager_TABLE*
    • CoreTableColumn

      public CoreTableColumn(String sName, String sTableID)
      Construct a new CoreTableColumn.

      Alignment will be ALIGN_LEAD, Type will be TYPE_TEXT, Position will be POSITION_INVISIBLE, Width will be 50, Update Interval will be INTERVAL_INVALID_ONLY

      TableCell listeners (Added, Refresh, Dispose, ToolTip) are added based on whether the class is an instance of them.

      Parameters:
      sName - Unique ID for column
      sTableID - See TableManager_TABLE*
  • Method Details

    • initializeAsGraphic

      public void initializeAsGraphic(int iWidth)
    • initializeAsGraphic

      public void initializeAsGraphic(int iPosition, int iWidth)
    • fillTableColumnInfo

      public void fillTableColumnInfo(TableColumnInfo info)
      Description copied from interface: TableColumnExtraInfoListener
      Provide the app with information about your Table Column
      Specified by:
      fillTableColumnInfo in interface TableColumnExtraInfoListener
      Parameters:
      info - Use setters to set information