|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.ui.common.table.impl.TableViewImpl<Object> org.gudy.azureus2.ui.swt.views.table.painted.TableViewPainted
public class TableViewPainted
A TableView implemented by painting on a canvas TODO: Keyboard Selection Cursor Column move and resize past bounds
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.aelitis.azureus.ui.common.table.impl.TableViewImpl |
---|
TableViewImpl.filter<DATASOURCETYPE> |
Field Summary | |
---|---|
protected org.eclipse.swt.graphics.Rectangle |
clientArea
Up to date table client area. |
static boolean |
DIRECT_DRAW
|
protected boolean |
extendedErase
|
protected int |
graphicsUpdate
How often graphic cells get updated |
protected float |
iHeightEM
|
protected boolean |
isDragging
|
protected boolean |
isFocused
|
protected boolean |
isHeaderDragging
|
protected int |
reOrderDelay
|
Fields inherited from class com.aelitis.azureus.ui.common.table.impl.TableViewImpl |
---|
configMan, DEBUG_SELECTION, DEBUGADDREMOVE, filter, propertiesPrefix, tableID |
Constructor Summary | |
---|---|
TableViewPainted(Class<?> pluginDataSourceType,
String _sTableID,
String _sPropertiesPrefix,
TableColumnCore[] _basicItems,
String _sDefaultSortOn,
int _iTableStyle)
Main Initializer |
Method Summary | |
---|---|
void |
addKeyListener(org.eclipse.swt.events.KeyListener listener)
|
void |
addMenuFillListener(TableViewSWTMenuFillListener l)
|
void |
addRowMouseListener(TableRowMouseListener listener)
|
void |
addRowPaintListener(TableRowSWTPaintListener listener)
|
boolean |
canHaveSubItems()
|
void |
clipboardSelected()
Send Selected rows to the clipboard in a SpreadSheet friendly format (tab/cr delimited) |
void |
columnOrderChanged(int[] iPositions)
|
void |
columnSizeChanged(TableColumnCore tableColumn,
int diff)
|
org.eclipse.swt.dnd.DragSource |
createDragSource(int style)
|
org.eclipse.swt.dnd.DropTarget |
createDropTarget(int style)
|
org.eclipse.swt.widgets.Composite |
createMainPanel(org.eclipse.swt.widgets.Composite composite)
Creates a composite within the specified composite and sets its layout to a default FillLayout(). |
TableRowCore |
createNewRow(Object object)
|
void |
delete()
|
void |
disableFilterCheck()
|
void |
disableSizeSlider()
|
void |
editCell(TableColumnCore column,
int row)
|
void |
enableFilterCheck(org.eclipse.swt.widgets.Text txtFilter,
TableViewFilterCheck<Object> filterCheck)
|
boolean |
enableSizeSlider(org.eclipse.swt.widgets.Composite composite,
int min,
int max)
|
void |
expandColumns()
|
void |
generate(IndentWriter writer)
|
org.eclipse.swt.graphics.Rectangle |
getClientArea()
|
org.eclipse.swt.widgets.Composite |
getComposite()
|
org.eclipse.swt.widgets.Text |
getFilterControl()
|
TableRowCore |
getFocusedRow()
|
org.eclipse.swt.events.KeyListener[] |
getKeyListeners()
|
protected TableViewSWTPanelCreator |
getMainPanelCreator()
|
int |
getMaxItemShown()
|
protected TableRowCore |
getNextRow(TableRowCore relativeToRow)
|
void |
getOffUIThread(AERunnable runnable)
|
protected TableRowCore |
getPreviousRow(TableRowCore relativeToRow)
|
TableRowCore |
getRow(org.eclipse.swt.dnd.DropTargetEvent event)
|
TableRowCore |
getRow(int x,
int y)
|
int |
getRowDefaultHeight()
|
TableRowSWT |
getRowSWT(Object dataSource)
|
TableViewSWTFilter<?> |
getSWTFilter()
|
Object |
getSyncObject()
|
TableCellCore |
getTableCell(int x,
int y)
|
org.eclipse.swt.graphics.Point |
getTableCellMouseOffset(TableCellSWT tableCell)
|
TableCellCore |
getTableCellWithCursor()
|
TableColumnCore |
getTableColumnByOffset(int mouseX)
|
org.eclipse.swt.widgets.Composite |
getTableComposite()
|
TableRowSWT |
getTableRow(int x,
int y,
boolean anyX)
|
TableRowCore |
getTableRowWithCursor()
Retrieves the row that has the cursor over it |
TableViewCreator |
getTableViewCreator()
|
TableViewSWT_TabsCommon |
getTabsCommon()
|
boolean |
getTabViewsExpandedByDefault()
|
String[] |
getTabViewsRestrictedTo()
|
void |
initialize(org.eclipse.swt.widgets.Composite parent)
|
void |
initialize(UISWTView parentView,
org.eclipse.swt.widgets.Composite parent)
|
void |
invokePaintListeners(org.eclipse.swt.graphics.GC gc,
TableRowCore row,
TableColumnCore column,
org.eclipse.swt.graphics.Rectangle cellArea)
|
void |
invokeRowMouseListener(TableRowMouseEvent event)
|
boolean |
isDisposed()
|
boolean |
isDragging()
|
protected boolean |
isRowPartiallyVisible(TableRowPainted row)
|
boolean |
isRowVisible(TableRowCore row)
|
boolean |
isSingleSelection()
|
boolean |
isTableSelected()
|
boolean |
isTabViewsEnabled()
|
boolean |
isVisible()
|
void |
localeChanged(Locale old_locale,
Locale new_locale)
|
org.eclipse.swt.graphics.Image |
obfusticatedImage(org.eclipse.swt.graphics.Image image)
|
void |
openFilterDialog()
|
void |
packColumns()
|
void |
parameterChanged(String parameterName)
Called, when a parameter has changed. |
void |
redrawRow(TableRowPainted row,
boolean immediateRedraw)
|
void |
redrawTable()
|
void |
refreshTable(boolean bForceSort)
|
void |
removeAllTableRows()
Remove all the data sources (table rows) from the table. |
void |
removeKeyListener(org.eclipse.swt.events.KeyListener listener)
|
void |
removeRowMouseListener(TableRowMouseListener listener)
|
void |
removeRowPaintListener(TableRowSWTPaintListener listener)
|
void |
rowHeightChanged(TableRowCore row,
int oldHeight,
int newHeight)
|
protected void |
selectRowsTo(TableRowCore clickedRow)
|
void |
setEnabled(boolean enable)
|
void |
setEnableTabViews(boolean enableTabViews,
boolean expandByDefault,
String[] restrictedToIDs)
|
void |
setFilterText(String s)
|
void |
setFocus()
|
void |
setFocusedRow(TableRowCore row)
|
void |
setHeaderVisible(boolean visible)
|
void |
setMainPanelCreator(TableViewSWTPanelCreator mainPanelCreator)
|
void |
setMaxItemShown(int newIndex)
|
void |
setRowDefaultHeight(int iHeight)
|
void |
setRowDefaultHeightEM(float lineHeight)
|
void |
setRowDefaultHeightPX(int iHeight)
|
void |
setRowSelected(TableRowCore row,
boolean selected,
boolean trigger)
|
void |
setSelectedRows(TableRowCore[] newSelectionArray,
boolean trigger)
|
void |
showColumnEditor()
|
void |
showRow(TableRowCore rowToShow)
|
protected void |
swt_calculateClientArea()
|
protected void |
swt_fixupSize()
|
protected void |
swt_paintCanvasImage(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle drawBounds)
|
protected void |
swt_paintComposite(org.eclipse.swt.events.PaintEvent e)
|
void |
swt_updateCanvasImage(boolean immediateRedraw)
|
protected void |
swt_updateCanvasImage(org.eclipse.swt.graphics.Rectangle bounds,
boolean immediateRedraw)
|
protected void |
swt_vBarChanged()
|
void |
tableStructureChanged(boolean columnAddedOrRemoved,
Class forPluginDataSourceType)
|
void |
triggerTabViewsDataSourceChanged()
|
protected void |
uiChangeColumnIndicator()
|
int |
uiGuessMaxVisibleRows()
|
void |
uiRemoveRows(TableRowCore[] rows,
Integer[] rowIndexes)
|
void |
uiSelectionChanged(TableRowCore[] newlySelectedRows,
TableRowCore[] deselectedRows)
|
void |
visibleRowsChanged()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.gudy.azureus2.ui.swt.views.table.TableViewSWT |
---|
addRefreshListener, getFilterText, getRowQuick, invokeExpansionChangeListeners, invokeRefreshListeners, isFiltered, isMenuEnabled, refilter, removeRefreshListener, setMenuEnabled, sortColumn, tableInvalidate, triggerDefaultSelectedListeners |
Field Detail |
---|
public static final boolean DIRECT_DRAW
protected int graphicsUpdate
protected int reOrderDelay
protected boolean extendedErase
protected org.eclipse.swt.graphics.Rectangle clientArea
protected boolean isHeaderDragging
protected boolean isDragging
protected boolean isFocused
protected float iHeightEM
Constructor Detail |
---|
public TableViewPainted(Class<?> pluginDataSourceType, String _sTableID, String _sPropertiesPrefix, TableColumnCore[] _basicItems, String _sDefaultSortOn, int _iTableStyle)
_sTableID
- Which table to handle (see
TableManager
).
Config settings are stored with the prefix of
"Table.TableID"_sPropertiesPrefix
- Prefix for retrieving text from the properties
file (MessageText). Typically
TableID + "View"_basicItems
- Column Definitions_sDefaultSortOn
- Column name to sort on if user hasn't chosen one yet_iTableStyle
- SWT style constants used when creating the tableMethod Detail |
---|
protected boolean isRowPartiallyVisible(TableRowPainted row)
protected void selectRowsTo(TableRowCore clickedRow)
protected TableRowCore getPreviousRow(TableRowCore relativeToRow)
protected TableRowCore getNextRow(TableRowCore relativeToRow)
public void clipboardSelected()
TableView
clipboardSelected
in interface TableView<Object>
public boolean isDisposed()
isDisposed
in interface TableView<Object>
public void refreshTable(boolean bForceSort)
refreshTable
in interface TableView<Object>
refreshTable
in class TableViewImpl<Object>
public void setEnableTabViews(boolean enableTabViews, boolean expandByDefault, String[] restrictedToIDs)
setEnableTabViews
in interface TableView<Object>
public boolean isTabViewsEnabled()
isTabViewsEnabled
in interface TableViewSWT<Object>
public String[] getTabViewsRestrictedTo()
getTabViewsRestrictedTo
in interface TableViewSWT<Object>
public boolean getTabViewsExpandedByDefault()
getTabViewsExpandedByDefault
in interface TableViewSWT<Object>
public void setFocus()
setFocus
in interface TableView<Object>
public void setRowDefaultHeightEM(float lineHeight)
setRowDefaultHeightEM
in interface TableView<Object>
public void setRowDefaultHeight(int iHeight)
setRowDefaultHeight
in interface TableView<Object>
iHeight
- Height will be adjusted for larger DPIpublic void setRowDefaultHeightPX(int iHeight)
setRowDefaultHeightPX
in interface TableView<Object>
public TableRowCore getRow(int x, int y)
getRow
in interface TableView<Object>
public boolean isRowVisible(TableRowCore row)
isRowVisible
in interface TableView<Object>
public TableCellCore getTableCellWithCursor()
getTableCellWithCursor
in interface TableView<Object>
public TableRowCore getTableRowWithCursor()
TableView
getTableRowWithCursor
in interface TableView<Object>
public int getRowDefaultHeight()
getRowDefaultHeight
in interface TableView<Object>
public void setEnabled(boolean enable)
setEnabled
in interface TableView<Object>
public boolean canHaveSubItems()
canHaveSubItems
in interface TableView<Object>
public void setHeaderVisible(boolean visible)
setHeaderVisible
in interface TableView<Object>
setHeaderVisible
in class TableViewImpl<Object>
public int getMaxItemShown()
getMaxItemShown
in interface TableView<Object>
public void setMaxItemShown(int newIndex)
setMaxItemShown
in interface TableView<Object>
public void localeChanged(Locale old_locale, Locale new_locale)
localeChanged
in interface MessageText.MessageTextListener
public void columnOrderChanged(int[] iPositions)
columnOrderChanged
in interface TableStructureModificationListener<Object>
public void columnSizeChanged(TableColumnCore tableColumn, int diff)
columnSizeChanged
in interface TableStructureModificationListener<Object>
public void addKeyListener(org.eclipse.swt.events.KeyListener listener)
addKeyListener
in interface TableViewSWT<Object>
public void removeKeyListener(org.eclipse.swt.events.KeyListener listener)
removeKeyListener
in interface TableViewSWT<Object>
public org.eclipse.swt.events.KeyListener[] getKeyListeners()
getKeyListeners
in interface TableViewSWT<Object>
public void addMenuFillListener(TableViewSWTMenuFillListener l)
addMenuFillListener
in interface TableViewSWT<Object>
public org.eclipse.swt.dnd.DragSource createDragSource(int style)
createDragSource
in interface TableViewSWT<Object>
public org.eclipse.swt.dnd.DropTarget createDropTarget(int style)
createDropTarget
in interface TableViewSWT<Object>
public org.eclipse.swt.widgets.Composite getComposite()
getComposite
in interface TableViewSWT<Object>
public TableRowCore getRow(org.eclipse.swt.dnd.DropTargetEvent event)
getRow
in interface TableViewSWT<Object>
public TableRowSWT getRowSWT(Object dataSource)
getRowSWT
in interface TableViewSWT<Object>
public org.eclipse.swt.widgets.Composite getTableComposite()
getTableComposite
in interface TableViewSWT<Object>
public org.eclipse.swt.widgets.Composite createMainPanel(org.eclipse.swt.widgets.Composite composite)
createMainPanel
in interface TableViewSWT<Object>
composite
- to create your Composite under
public void initialize(org.eclipse.swt.widgets.Composite parent)
initialize
in interface TableViewSWT<Object>
public void initialize(UISWTView parentView, org.eclipse.swt.widgets.Composite parent)
initialize
in interface TableViewSWT<Object>
protected void swt_vBarChanged()
public void tableStructureChanged(boolean columnAddedOrRemoved, Class forPluginDataSourceType)
tableStructureChanged
in interface TableStructureModificationListener<Object>
tableStructureChanged
in class TableViewImpl<Object>
protected void swt_paintComposite(org.eclipse.swt.events.PaintEvent e)
protected void swt_paintCanvasImage(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds)
public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
obfusticatedImage
in interface ObfusticateImage
obfusticatedImage
in interface TableViewSWT<Object>
protected TableViewSWTPanelCreator getMainPanelCreator()
public TableViewCreator getTableViewCreator()
getTableViewCreator
in interface TableView<Object>
public void setMainPanelCreator(TableViewSWTPanelCreator mainPanelCreator)
setMainPanelCreator
in interface TableViewSWT<Object>
public TableCellCore getTableCell(int x, int y)
getTableCell
in interface TableViewSWT<Object>
public org.eclipse.swt.graphics.Point getTableCellMouseOffset(TableCellSWT tableCell)
getTableCellMouseOffset
in interface TableViewSWT<Object>
public void enableFilterCheck(org.eclipse.swt.widgets.Text txtFilter, TableViewFilterCheck<Object> filterCheck)
enableFilterCheck
in interface TableViewSWT<Object>
public org.eclipse.swt.widgets.Text getFilterControl()
getFilterControl
in interface TableViewSWT<Object>
public void disableFilterCheck()
disableFilterCheck
in interface TableViewSWT<Object>
public void setFilterText(String s)
setFilterText
in interface TableViewSWT<Object>
public boolean enableSizeSlider(org.eclipse.swt.widgets.Composite composite, int min, int max)
enableSizeSlider
in interface TableViewSWT<Object>
public void disableSizeSlider()
disableSizeSlider
in interface TableViewSWT<Object>
public void addRowPaintListener(TableRowSWTPaintListener listener)
addRowPaintListener
in interface TableViewSWT<Object>
public void removeRowPaintListener(TableRowSWTPaintListener listener)
removeRowPaintListener
in interface TableViewSWT<Object>
public void invokePaintListeners(org.eclipse.swt.graphics.GC gc, TableRowCore row, TableColumnCore column, org.eclipse.swt.graphics.Rectangle cellArea)
invokePaintListeners
in interface TableViewSWT<Object>
public void addRowMouseListener(TableRowMouseListener listener)
addRowMouseListener
in interface TableViewSWT<Object>
public void removeRowMouseListener(TableRowMouseListener listener)
removeRowMouseListener
in interface TableViewSWT<Object>
public void invokeRowMouseListener(TableRowMouseEvent event)
invokeRowMouseListener
in interface TableViewSWT<Object>
public void packColumns()
packColumns
in interface TableViewSWT<Object>
public void parameterChanged(String parameterName)
ParameterListener
parameterChanged
in interface ParameterListener
parameterName
- the name of the parameter that has changedpublic TableRowCore createNewRow(Object object)
createNewRow
in class TableViewImpl<Object>
public void visibleRowsChanged()
visibleRowsChanged
in interface TableViewSWT<Object>
visibleRowsChanged
in class TableViewImpl<Object>
public int uiGuessMaxVisibleRows()
uiGuessMaxVisibleRows
in class TableViewImpl<Object>
public void uiRemoveRows(TableRowCore[] rows, Integer[] rowIndexes)
uiRemoveRows
in class TableViewImpl<Object>
public void getOffUIThread(AERunnable runnable)
getOffUIThread
in class TableViewImpl<Object>
protected void swt_calculateClientArea()
public void swt_updateCanvasImage(boolean immediateRedraw)
protected void swt_updateCanvasImage(org.eclipse.swt.graphics.Rectangle bounds, boolean immediateRedraw)
public org.eclipse.swt.graphics.Rectangle getClientArea()
public boolean isVisible()
isVisible
in interface TableViewSWT<Object>
public void removeAllTableRows()
TableView
removeAllTableRows
in interface TableView<Object>
removeAllTableRows
in class TableViewImpl<Object>
protected void swt_fixupSize()
protected void uiChangeColumnIndicator()
uiChangeColumnIndicator
in class TableViewImpl<Object>
public TableColumnCore getTableColumnByOffset(int mouseX)
getTableColumnByOffset
in interface TableViewSWT<Object>
public TableRowSWT getTableRow(int x, int y, boolean anyX)
getTableRow
in interface TableViewSWT<Object>
public void setSelectedRows(TableRowCore[] newSelectionArray, boolean trigger)
setSelectedRows
in class TableViewImpl<Object>
public void setRowSelected(TableRowCore row, boolean selected, boolean trigger)
setRowSelected
in interface TableViewSWT<Object>
setRowSelected
in class TableViewImpl<Object>
public void editCell(TableColumnCore column, int row)
editCell
in interface TableViewSWT<Object>
public boolean isDragging()
isDragging
in interface TableViewSWT<Object>
public TableViewSWTFilter<?> getSWTFilter()
getSWTFilter
in interface TableViewSWT<Object>
public void openFilterDialog()
openFilterDialog
in interface TableViewSWT<Object>
public boolean isSingleSelection()
isSingleSelection
in interface TableViewSWT<Object>
isSingleSelection
in class TableViewImpl<Object>
public void expandColumns()
expandColumns
in interface TableViewSWT<Object>
public void triggerTabViewsDataSourceChanged()
triggerTabViewsDataSourceChanged
in class TableViewImpl<Object>
public TableViewSWT_TabsCommon getTabsCommon()
getTabsCommon
in interface TableViewSWT<Object>
public void uiSelectionChanged(TableRowCore[] newlySelectedRows, TableRowCore[] deselectedRows)
uiSelectionChanged
in class TableViewImpl<Object>
public void delete()
delete
in interface TableView<Object>
delete
in class TableViewImpl<Object>
public void generate(IndentWriter writer)
generate
in interface AEDiagnosticsEvidenceGenerator
generate
in class TableViewImpl<Object>
public void showColumnEditor()
showColumnEditor
in interface TableViewSWT<Object>
public TableRowCore getFocusedRow()
getFocusedRow
in interface TableView<Object>
getFocusedRow
in class TableViewImpl<Object>
public void setFocusedRow(TableRowCore row)
public void showRow(TableRowCore rowToShow)
showRow
in interface TableViewSWT<Object>
public void rowHeightChanged(TableRowCore row, int oldHeight, int newHeight)
public void redrawTable()
public void redrawRow(TableRowPainted row, boolean immediateRedraw)
public Object getSyncObject()
public boolean isTableSelected()
isTableSelected
in class TableViewImpl<Object>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |