Package com.biglybt.ui.swt.columns
Class ColumnCheckBox
- java.lang.Object
-
- com.biglybt.ui.swt.columns.ColumnCheckBox
-
- All Implemented Interfaces:
TableCellMouseListener
,TableCellRefreshListener
,TableColumnExtraInfoListener
- Direct Known Subclasses:
ColumnAllTrackersRemovable
,ColumnChatFavorite
,ColumnChatMsgOutstanding
,ColumnChatNickShared
,ColumnPeerBoost
,ColumnTagFilter
,ColumnTagPublic
,ColumnTagRSSFeed
,ColumnTagUploadPriority
,ColumnTagVisible
,TableColumnOTOF_Download
public abstract class ColumnCheckBox extends java.lang.Object implements TableCellRefreshListener, TableColumnExtraInfoListener, TableCellMouseListener
-
-
Field Summary
Fields Modifier and Type Field Description private UISWTGraphic
cross_icon
private boolean
read_only
private UISWTGraphic
tick_icon
private UISWTGraphic
tick_ro_icon
-
Constructor Summary
Constructors Constructor Description ColumnCheckBox(TableColumn column)
ColumnCheckBox(TableColumn column, int width)
ColumnCheckBox(TableColumn column, int width, boolean read_only)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
adjustSortVal(java.lang.Object ds, long sortVal)
void
cellMouseTrigger(TableCellMouseEvent event)
triggered when a mouse event for the TableCell occurs, excluding mouse move.void
fillTableColumnInfo(TableColumnInfo info)
Provide the app with information about your Table Columnprotected abstract java.lang.Boolean
getCheckBoxState(java.lang.Object datasource)
protected boolean
isReadOnly(java.lang.Object datasource)
void
refresh(TableCell cell)
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
protected abstract void
setCheckBoxState(java.lang.Object datasource, boolean set)
-
-
-
Field Detail
-
tick_icon
private final UISWTGraphic tick_icon
-
tick_ro_icon
private final UISWTGraphic tick_ro_icon
-
cross_icon
private final UISWTGraphic cross_icon
-
read_only
private boolean read_only
-
-
Constructor Detail
-
ColumnCheckBox
public ColumnCheckBox(TableColumn column, int width, boolean read_only)
-
ColumnCheckBox
public ColumnCheckBox(TableColumn column)
-
ColumnCheckBox
public ColumnCheckBox(TableColumn column, int width)
-
-
Method Detail
-
fillTableColumnInfo
public void fillTableColumnInfo(TableColumnInfo info)
Description copied from interface:TableColumnExtraInfoListener
Provide the app with information about your Table Column- Specified by:
fillTableColumnInfo
in interfaceTableColumnExtraInfoListener
- Parameters:
info
- Use setters to set information
-
getCheckBoxState
protected abstract java.lang.Boolean getCheckBoxState(java.lang.Object datasource)
-
setCheckBoxState
protected abstract void setCheckBoxState(java.lang.Object datasource, boolean set)
-
isReadOnly
protected boolean isReadOnly(java.lang.Object datasource)
-
cellMouseTrigger
public void cellMouseTrigger(TableCellMouseEvent event)
Description copied from interface:TableCellMouseListener
triggered when a mouse event for the TableCell occurs, excluding mouse move.- Specified by:
cellMouseTrigger
in interfaceTableCellMouseListener
- Parameters:
event
- Mouse event information
-
refresh
public void refresh(TableCell cell)
Description copied from interface:TableCellRefreshListener
Triggered based on refresh interval specified inTableColumn.getRefreshInterval()
- Specified by:
refresh
in interfaceTableCellRefreshListener
- Parameters:
cell
- TableCell that the refresh trigger is for
-
adjustSortVal
public long adjustSortVal(java.lang.Object ds, long sortVal)
-
-