com.aelitis.azureus.ui.common.table.impl
Class CoreTableColumn

java.lang.Object
  extended by com.aelitis.azureus.ui.common.table.impl.TableColumnImpl
      extended by com.aelitis.azureus.ui.common.table.impl.CoreTableColumn
All Implemented Interfaces:
TableColumnCore, java.util.Comparator, TableColumn, TableColumnExtraInfoListener
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.

Author:
TuxPaper

Field Summary
 
Fields inherited from class com.aelitis.azureus.ui.common.table.impl.TableColumnImpl
this_mon
 
Fields inherited from interface org.gudy.azureus2.plugins.ui.tables.TableColumn
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEAD, ALIGN_TOP, ALIGN_TRAIL, CAT_BYTES, CAT_CONNECTION, CAT_CONTENT, CAT_ESSENTIAL, CAT_PEER_IDENTIFICATION, CAT_PROGRESS, CAT_PROTOCOL, CAT_SETTINGS, CAT_SHARING, CAT_SWARM, CAT_TIME, CAT_TRACKER, INTERVAL_GRAPHIC, INTERVAL_INVALID_ONLY, INTERVAL_LIVE, MENU_STYLE_COLUMN_DATA, MENU_STYLE_HEADER, POSITION_INVISIBLE, POSITION_LAST, TYPE_GRAPHIC, TYPE_TEXT, TYPE_TEXT_ONLY, UD_FORCE_VISIBLE
 
Constructor Summary
CoreTableColumn(java.lang.Class forDataSourceType, java.lang.String sName, int iAlignment, int iWidth, java.lang.String sTableID)
           
CoreTableColumn(java.lang.String sName, int iAlignment, int iPosition, int iWidth, java.lang.String sTableID)
          Construct a new CoreTableColumn Type will be TYPE_TEXT, Update Interval will be INTERVAL_INVALID_ONLY
CoreTableColumn(java.lang.String sName, int iPosition, int iWidth, java.lang.String sTableID)
          Construct a new CoreTableColumn.
CoreTableColumn(java.lang.String sName, int iWidth, java.lang.String sTableID)
          Construct a new CoreTableColumn.
CoreTableColumn(java.lang.String sName, java.lang.String sTableID)
          Construct a new CoreTableColumn.
 
Method Summary
 void fillTableColumnInfo(TableColumnInfo info)
          Provide the app with information about your Table Column
 void initializeAsGraphic(int iWidth)
           
 void initializeAsGraphic(int iPosition, int iWidth)
           
 
Methods inherited from class com.aelitis.azureus.ui.common.table.impl.TableColumnImpl
addCellAddedListener, addCellClipboardListener, addCellDisposeListener, addCellMouseListener, addCellMouseMoveListener, addCellOtherListener, addCellRefreshListener, addCellToolTipListener, addCellVisibilityListener, addColumnExtraInfoListener, addContextMenuItem, addContextMenuItem, addDataSourceType, addDataSourceTypes, addListeners, addRefreshTime, compare, doesAutoTooltip, generateDiagnostics, getAlignment, getCellAddedListeners, getCellOtherListeners, getCellRefreshListeners, getClipboardText, getColumnAdded, getColumnExtraInfoListeners, getConsecutiveErrCount, getContextMenuItems, getForDataSourceType, getForDataSourceTypes, getIconReference, getInplaceEditorListener, getLastSortValueChange, getMaxWidth, getMinWidth, getName, getNameOverride, getPosition, getPreferredWidth, getPreferredWidthMax, getRefreshInterval, getTableID, getTitleLanguageKey, getTitleLanguageKey, getType, getUseCoreDataSource, getUserData, getUserDataString, getWidth, handlesDataSourceType, hasCellMouseMoveListener, hasCellOtherListeners, hasCellRefreshListener, hasInplaceEditorListener, initialize, initialize, invalidateCell, invalidateCells, invokeCellAddedListeners, invokeCellDisposeListeners, invokeCellMouseListeners, invokeCellRefreshListeners, invokeCellToolTipListeners, invokeCellVisibilityListeners, isFirstLoad, isMaxWidthAuto, isMinWidthAuto, isObfusticated, isPreferredWidthAuto, isRemoved, isSortAscending, isSortValueLive, isVisible, loadSettings, postConfigLoad, preAdd, preConfigSave, remove, removeCellAddedListener, removeCellClipboardListener, removeCellDisposeListener, removeCellMouseListener, removeCellMouseMoveListener, removeCellOtherListener, removeCellRefreshListener, removeCellToolTipListener, removeCellVisibilityListener, removeColumnExtraInfoListener, removeContextMenuItem, removeUserData, reset, saveSettings, setAlignment, setAutoTooltip, setColumnAdded, setConsecutiveErrCount, setDefaultSortAscending, setIconReference, setInplaceEditorListener, setLastSortValueChange, setMaxWidth, setMaxWidthAuto, setMinimumRequiredUserMode, setMinWidth, setMinWidthAuto, setNameOverride, setObfustication, setPosition, setPositionNoShift, setPreferredWidth, setPreferredWidthAuto, setPreferredWidthMax, setRefreshInterval, setSortAscending, setSortValueLive, setTableID, setType, setUseCoreDataSource, setUserData, setVisible, setWidth, setWidthLimits, setWidthPX, showOnlyImage, triggerColumnSizeChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CoreTableColumn

public CoreTableColumn(java.lang.String sName,
                       int iAlignment,
                       int iPosition,
                       int iWidth,
                       java.lang.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(java.lang.Class forDataSourceType,
                       java.lang.String sName,
                       int iAlignment,
                       int iWidth,
                       java.lang.String sTableID)

CoreTableColumn

public CoreTableColumn(java.lang.String sName,
                       int iPosition,
                       int iWidth,
                       java.lang.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(java.lang.String sName,
                       int iWidth,
                       java.lang.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(java.lang.String sName,
                       java.lang.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 Detail

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