Class TableRow
java.lang.Object
org.eclipse.nebula.widgets.compositetable.TableRow
class TableRow
extends java.lang.Object
(non-API)
Class TableRow. Encapsulates operations on a SWT row control. Discovers the
SWT controls inside the row control representing columns and exposes those for
operations by the CompositeTable. Listens to SWT events on the column controls
and forwards them back to the table control for processing.
-
Field Summary
Fields Modifier and Type Field Description protected InternalCompositeTable
parent
-
Constructor Summary
Constructors Constructor Description TableRow(InternalCompositeTable parent, org.eclipse.swt.widgets.Control row)
Constructor TableRow. -
Method Summary
Modifier and Type Method Description void
dispose()
Remove all listeners from each control.org.eclipse.swt.widgets.Control
getColumnControl(int i)
Return the SWT control corresponding to a particular column within this row.int
getColumnNumber(org.eclipse.swt.widgets.Control control)
Return the column number of a specified SWT control or -1 if not found.int
getNumColumns()
Return the number of columns in this row.org.eclipse.swt.widgets.Control
getRowControl()
Return the SWT control implementing the row's GUI.boolean
getVisible()
Returns if this row is visible.void
setVisible(boolean visible)
Sets the visibility of this row.
-
Field Details
-
Constructor Details
-
TableRow
Constructor TableRow. Construct a TableRow object.- Parameters:
parent
- The table containing this row.row
- The SWT control implementing this row.
-
-
Method Details
-
dispose
public void dispose()Remove all listeners from each control. -
getRowControl
public org.eclipse.swt.widgets.Control getRowControl()Return the SWT control implementing the row's GUI.- Returns:
- The row's SWT control
-
getColumnControl
public org.eclipse.swt.widgets.Control getColumnControl(int i)Return the SWT control corresponding to a particular column within this row.- Parameters:
i
- the 0-based offset of the column to return.- Returns:
- The corresponding control or null if there is no control at the specified position.
-
getColumnNumber
public int getColumnNumber(org.eclipse.swt.widgets.Control control)Return the column number of a specified SWT control or -1 if not found.- Parameters:
control
- The control to find.- Returns:
- control's column number or -1 if that column control is not in this row.
-
getNumColumns
public int getNumColumns()Return the number of columns in this row.- Returns:
- The number of columns in this row.
-
setVisible
public void setVisible(boolean visible)Sets the visibility of this row.- Parameters:
visible
- true if the row should be visible; false otherwise.
-
getVisible
public boolean getVisible()Returns if this row is visible.- Returns:
- true if the row is visible; false otherwise.
-