CoreTableColumnpublic class CoreTableColumn extends com.aelitis.azureus.ui.common.table.impl.TableColumnImpl This class provides constructors for setting most of
the common column attributes and sets the column as a 'core' column. |
Constructors Summary |
---|
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.
super(sTableID, sName);
super.initialize(iAlignment, iPosition, iWidth);
setUseCoreDataSource(true);
addListeners(this);
| 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.
super(sTableID, sName);
setPosition(iPosition);
setWidth(iWidth);
setUseCoreDataSource(true);
addListeners(this);
| 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.
super(sTableID, sName);
setWidth(iWidth);
setUseCoreDataSource(true);
addListeners(this);
| 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.
super(sTableID, sName);
setUseCoreDataSource(true);
addListeners(this);
|
Methods Summary |
---|
public static int | getSWTAlign(int alignment)Convert the getAlignment() constant to a SWT constant
return alignment == ALIGN_LEAD ? SWT.LEAD
: (alignment == ALIGN_CENTER) ? SWT.CENTER
: SWT.TRAIL;
| public void | initializeAsGraphic(int iPosition, int iWidth)
setPosition(iPosition);
setWidth(iWidth);
setType(TYPE_GRAPHIC);
setRefreshInterval(INTERVAL_GRAPHIC);
setAlignment(TableColumn.ALIGN_CENTER);
|
|