Klasse ComponentTable
java.lang.Object
org.deidentifier.arx.gui.view.impl.common.ComponentTable
- Alle implementierten Schnittstellen:
IComponent
A virtual table implemented with NatTable.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungComponentTable(org.eclipse.swt.widgets.Composite parent, int style, CTConfiguration config) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddMouseListener(org.eclipse.swt.events.MouseListener arg0) Adds a listener.voidclear()Clears the table.org.eclipse.swt.widgets.ControlReturns the backing widget.Returns the selected column, or null.Returns the selected row, or null.voidrefresh()Redraws the table.voidUpdates the underlying table.voidsetData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data) Updates the underlying table.voidUpdates the underlying table.voidsetData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data, String[] rows, String[] columns) Updates the underlying table.voidsetData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data, org.eclipse.nebula.widgets.nattable.data.IDataProvider columns) Updates the underlying table.voidsetData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data, org.eclipse.nebula.widgets.nattable.data.IDataProvider rows, org.eclipse.nebula.widgets.nattable.data.IDataProvider columns) Updates the underlying table.voidsetSelection(int row, int column) Updates the selection.
-
Konstruktordetails
-
ComponentTable
Creates a new instance.- Parameter:
parent-style-config-
-
-
Methodendetails
-
addMouseListener
public void addMouseListener(org.eclipse.swt.events.MouseListener arg0) Adds a listener.- Parameter:
arg0-
-
clear
public void clear()Clears the table. -
getControl
public org.eclipse.swt.widgets.Control getControl()Returns the backing widget.- Gibt zurück:
-
getSelectedColumn
Returns the selected column, or null.- Gibt zurück:
-
getSelectedRow
Returns the selected row, or null.- Gibt zurück:
-
refresh
public void refresh()Redraws the table. -
setData
public void setData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data) Updates the underlying table.- Parameter:
data-
-
setData
public void setData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data, org.eclipse.nebula.widgets.nattable.data.IDataProvider columns) Updates the underlying table.- Parameter:
data-columns-
-
setData
public void setData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data, org.eclipse.nebula.widgets.nattable.data.IDataProvider rows, org.eclipse.nebula.widgets.nattable.data.IDataProvider columns) Updates the underlying table.- Parameter:
data-rows-columns-
-
setData
Updates the underlying table.- Parameter:
data-columns-
-
setData
public void setData(org.eclipse.nebula.widgets.nattable.data.IDataProvider data, String[] rows, String[] columns) Updates the underlying table.- Parameter:
data-rows-columns-
-
setData
Updates the underlying table.- Parameter:
data-
-
setSelection
public void setSelection(int row, int column) Updates the selection.- Parameter:
row-column-
-