com.aelitis.azureus.ui.swt.columns
Class ColumnCheckBox

java.lang.Object
  extended by com.aelitis.azureus.ui.swt.columns.ColumnCheckBox
All Implemented Interfaces:
TableCellMouseListener, TableCellRefreshListener, TableColumnExtraInfoListener
Direct Known Subclasses:
ColumnChatFavorite, ColumnChatMsgOutstanding, ColumnTagPublic, ColumnTagRSSFeed, ColumnTagUploadPriority, ColumnTagVisible, TableColumnOTOF_Download

public abstract class ColumnCheckBox
extends Object
implements TableCellRefreshListener, TableColumnExtraInfoListener, TableCellMouseListener


Constructor Summary
ColumnCheckBox(TableColumn column)
           
ColumnCheckBox(TableColumn column, int width)
           
ColumnCheckBox(TableColumn column, int width, boolean read_only)
           
 
Method Summary
 long adjustSortVal(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 Column
protected abstract  Boolean getCheckBoxState(Object datasource)
           
 void refresh(TableCell cell)
          Triggered based on refresh interval specified in TableColumn.getRefreshInterval()
protected abstract  void setCheckBoxState(Object datasource, boolean set)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface TableColumnExtraInfoListener
Parameters:
info - Use setters to set information

getCheckBoxState

protected abstract Boolean getCheckBoxState(Object datasource)

setCheckBoxState

protected abstract void setCheckBoxState(Object datasource,
                                         boolean set)

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 interface TableCellMouseListener
Parameters:
event - Mouse event information

refresh

public void refresh(TableCell cell)
Description copied from interface: TableCellRefreshListener
Triggered based on refresh interval specified in TableColumn.getRefreshInterval()

Specified by:
refresh in interface TableCellRefreshListener
Parameters:
cell - TableCell that the refresh trigger is for

adjustSortVal

public long adjustSortVal(Object ds,
                          long sortVal)