public class ConfiguredTable extends ConfiguredControl
Constructor and Description |
---|
ConfiguredTable(java.lang.String id, org.eclipse.swt.widgets.Table table, org.eclipse.jface.viewers.StructuredViewer tableViewer, java.util.Map properties)
Constructs a new instance of this class given its ID, the constructed table control, and viewer.
|
Modifier and Type | Method and Description |
---|---|
void | activateDefaultColumn()
Activates the default cell editor for the default column.
|
void | addColumn(ConfiguredTableColumn column)
Adds a configured column to the list of table columns.
|
void | cancelEditing()
Cancels a currently active cell editor.
|
void | disableSorter()
Disables the table sorter.
|
void | enableSorter()
Enables the table sorter.
|
boolean | find(java.lang.String string)
Finds the first occurrence of a string in the table and sets focus on the table row.
|
boolean | findFirst(java.lang.String string)
Finds the first occurrence of a string in the table and sets focus on the table row.
|
boolean | findLast(java.lang.String string)
Finds the last occurrence of a string in the table and sets focus on the table row.
|
boolean | findNext(java.lang.String string)
Finds the next occurrence of a string in the table and sets focus on the table row.
|
boolean | findPrevious(java.lang.String string)
Finds the previous occurrence of a string in the table and sets focus on the table row.
|
org.eclipse.jface.viewers.CellEditor | getActiveCell()
Returns the active cell editor.
|
java.lang.String | getActiveCellProperty()
Returns the cell property value of the active cell editor.
|
org.eclipse.jface.viewers.CheckboxTableViewer | getCheckboxTableViewer()
Returns the checkbox table viewer.
|
ConfiguredTableColumn | getColumn(int index)
Returns the column at the specified index.
|
ConfiguredTableColumn | getColumn(java.lang.String columnId)
Gets the column that match the id.
|
ConfiguredTableColumn | getColumn(org.eclipse.swt.widgets.TableColumn tableColumn)
Returns the configured table column that matches the specified table column.
|
int | getColumnCount()
Returns the number of table columns.
|
java.util.Iterator | getColumns()
Returns an iterator for this configured table's configured columns.
|
org.eclipse.swt.widgets.Table | getTable()
Returns the table control.
|
boolean | getTableColumnHaveRequiredInput()
This method returns true if all the editable table columns have all the required input.
|
org.eclipse.jface.viewers.StructuredViewer | getTableViewer()
Returns the table viewer.
|
TelesalesTableViewer | getTelesalesTableViewer()
Returns the telesales table viewer.
|
public ConfiguredTable(java.lang.String id, org.eclipse.swt.widgets.Table table, org.eclipse.jface.viewers.StructuredViewer tableViewer, java.util.Map properties)
public org.eclipse.swt.widgets.Table getTable()
public void addColumn(ConfiguredTableColumn column)
public java.util.Iterator getColumns()
public ConfiguredTableColumn getColumn(java.lang.String columnId)
public ConfiguredTableColumn getColumn(org.eclipse.swt.widgets.TableColumn tableColumn)
public ConfiguredTableColumn getColumn(int index)
public int getColumnCount()
public org.eclipse.jface.viewers.StructuredViewer getTableViewer()
public TelesalesTableViewer getTelesalesTableViewer()
public org.eclipse.jface.viewers.CheckboxTableViewer getCheckboxTableViewer()
public boolean find(java.lang.String string)
public boolean findNext(java.lang.String string)
public boolean findPrevious(java.lang.String string)
public boolean findLast(java.lang.String string)
public boolean findFirst(java.lang.String string)
public void cancelEditing()
public void activateDefaultColumn()
public void disableSorter()
public void enableSorter()
public boolean getTableColumnHaveRequiredInput()
public java.lang.String getActiveCellProperty()
public org.eclipse.jface.viewers.CellEditor getActiveCell()