public class TableView
extends org.eclipse.swt.widgets.Composite
Modifier and Type | Class and Description |
---|---|
static interface |
TableView.TableViewModifyListener |
Modifier and Type | Field and Description |
---|---|
org.eclipse.swt.widgets.Table |
table |
protected int |
textWidgetCaretPosition |
Constructor and Description |
---|
TableView(VariableSpace space,
org.eclipse.swt.widgets.Composite parent,
int style,
ColumnInfo[] columnInfo,
int nrRows,
boolean readOnly,
org.eclipse.swt.events.ModifyListener lsm,
PropsUI pr) |
TableView(VariableSpace space,
org.eclipse.swt.widgets.Composite parent,
int style,
ColumnInfo[] columnInfo,
int nrRows,
boolean readOnly,
org.eclipse.swt.events.ModifyListener lsm,
PropsUI pr,
boolean addIndexColumn) |
TableView(VariableSpace space,
org.eclipse.swt.widgets.Composite parent,
int style,
ColumnInfo[] columnInfo,
int nrRows,
boolean readOnly,
org.eclipse.swt.events.ModifyListener lsm,
PropsUI pr,
boolean addIndexColumn,
org.eclipse.swt.widgets.Listener lsnr) |
TableView(VariableSpace space,
org.eclipse.swt.widgets.Composite parent,
int style,
ColumnInfo[] columnInfo,
int nrRows,
org.eclipse.swt.events.ModifyListener lsm,
PropsUI pr) |
Modifier and Type | Method and Description |
---|---|
void |
add(String... string) |
void |
addModifyListener(org.eclipse.swt.events.ModifyListener ls) |
void |
applyOSXChanges() |
void |
clearAll() |
void |
clearAll(boolean ask) |
void |
closeActiveButton() |
void |
edit(int rownr,
int colnr) |
int |
getActiveTableColumn() |
org.eclipse.swt.widgets.TableItem |
getActiveTableItem() |
String |
getButtonString() |
ColumnInfo[] |
getColumns()
Returns copy of columns array in order to prevent unintented modifications.
|
org.eclipse.swt.events.ModifyListener |
getContentListener() |
org.eclipse.swt.custom.TableEditor |
getEditor() |
org.eclipse.swt.widgets.ScrollBar |
getHorizontalBar() |
String[] |
getItem(int rownr) |
String |
getItem(int rownr,
int colnr) |
int |
getItemCount() |
String[] |
getItems(int colnr)
Get all the strings from a certain column as an array
|
org.eclipse.swt.widgets.TableItem |
getNonEmpty(int index)
Return the row/table-item on the specified index.
|
List<Integer> |
getNonEmptyIndexes() |
ColumnInfo |
getNumberColumn() |
RowMetaAndData |
getRow(int nr) |
RowMetaInterface |
getRowWithoutValues() |
int |
getSelectionIndex() |
int[] |
getSelectionIndices() |
int |
getSortField() |
org.eclipse.swt.widgets.Table |
getTable() |
protected int |
getTextWidgetCaretPosition(int colNr) |
protected String |
getTextWidgetValue(int colNr) |
org.eclipse.swt.widgets.ScrollBar |
getVerticalBar() |
boolean |
hasIndexColumn() |
int |
indexOfString(String str,
int column) |
boolean |
isReadonly() |
boolean |
isShowingBlueNullValues() |
boolean |
isShowingConversionErrorsInline() |
boolean |
isSortable() |
boolean |
isSortingDescending() |
int |
nrNonEmpty()
Count non-empty rows in the table...
|
void |
optWidth(boolean header) |
void |
optWidth(boolean header,
int nrLines) |
void |
remove(int index) |
void |
remove(int[] index) |
void |
removeAll() |
void |
removeEmptyRows() |
void |
removeEmptyRows(int column) |
void |
setButtonString(String str) |
void |
setColumnInfo(int idx,
ColumnInfo col) |
void |
setColumnText(int idx,
String text) |
void |
setColumnToolTip(int idx,
String text) |
void |
setContentListener(org.eclipse.swt.events.ModifyListener lsContent) |
void |
setEditor(org.eclipse.swt.custom.TableEditor editor) |
void |
setFilter() |
void |
setFocusOnFirstEditableField() |
void |
setNumberColumn(ColumnInfo numberColumn) |
void |
setReadonly(boolean readonly) |
void |
setRowNums() |
void |
setSelection(int[] selectedItems) |
void |
setShowingBlueNullValues(boolean showingBlueNullValues) |
void |
setShowingConversionErrorsInline(boolean showingConversionErrorsInline) |
void |
setSortable(boolean sortable) |
void |
setSortingDescending(boolean sortingDescending) |
void |
setTableViewModifyListener(TableView.TableViewModifyListener tableViewModifyListener) |
void |
setText(String text,
int colnr,
int rownr) |
void |
sortTable(int colnr) |
void |
sortTable(int sortField,
boolean sortingDescending) |
void |
unEdit() |
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getScrollbarsMode
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public org.eclipse.swt.widgets.Table table
protected int textWidgetCaretPosition
public TableView(VariableSpace space, org.eclipse.swt.widgets.Composite parent, int style, ColumnInfo[] columnInfo, int nrRows, org.eclipse.swt.events.ModifyListener lsm, PropsUI pr)
public TableView(VariableSpace space, org.eclipse.swt.widgets.Composite parent, int style, ColumnInfo[] columnInfo, int nrRows, boolean readOnly, org.eclipse.swt.events.ModifyListener lsm, PropsUI pr)
public TableView(VariableSpace space, org.eclipse.swt.widgets.Composite parent, int style, ColumnInfo[] columnInfo, int nrRows, boolean readOnly, org.eclipse.swt.events.ModifyListener lsm, PropsUI pr, boolean addIndexColumn)
public TableView(VariableSpace space, org.eclipse.swt.widgets.Composite parent, int style, ColumnInfo[] columnInfo, int nrRows, boolean readOnly, org.eclipse.swt.events.ModifyListener lsm, PropsUI pr, boolean addIndexColumn, org.eclipse.swt.widgets.Listener lsnr)
protected String getTextWidgetValue(int colNr)
protected int getTextWidgetCaretPosition(int colNr)
public void sortTable(int colnr)
public void setSelection(int[] selectedItems)
public void sortTable(int sortField, boolean sortingDescending)
public void addModifyListener(org.eclipse.swt.events.ModifyListener ls)
public void setColumnInfo(int idx, ColumnInfo col)
public void setColumnText(int idx, String text)
public void setColumnToolTip(int idx, String text)
public void clearAll()
public void clearAll(boolean ask)
public void edit(int rownr, int colnr)
public void setRowNums()
public void optWidth(boolean header)
public void optWidth(boolean header, int nrLines)
public void removeEmptyRows()
public void removeEmptyRows(int column)
public int nrNonEmpty()
public org.eclipse.swt.widgets.TableItem getNonEmpty(int index)
index
- the index of the non-empty row/table-itempublic int indexOfString(String str, int column)
public org.eclipse.swt.widgets.ScrollBar getHorizontalBar()
getHorizontalBar
in class org.eclipse.swt.widgets.Scrollable
public org.eclipse.swt.widgets.ScrollBar getVerticalBar()
getVerticalBar
in class org.eclipse.swt.widgets.Scrollable
public String getButtonString()
public void setButtonString(String str)
public void closeActiveButton()
public void unEdit()
public void setFilter()
public RowMetaInterface getRowWithoutValues()
public RowMetaAndData getRow(int nr)
public int[] getSelectionIndices()
public int getSelectionIndex()
public void remove(int index)
public void remove(int[] index)
public String getItem(int rownr, int colnr)
public void add(String... string)
public String[] getItem(int rownr)
public String[] getItems(int colnr)
colnr
- The column to returnpublic void removeAll()
public int getItemCount()
public void setText(String text, int colnr, int rownr)
public boolean isReadonly()
public void setReadonly(boolean readonly)
readonly
- The readonly to set.public boolean isSortable()
public void setSortable(boolean sortable)
sortable
- the sortable to setpublic void setFocusOnFirstEditableField()
public int getSortField()
public boolean isSortingDescending()
public void setSortingDescending(boolean sortingDescending)
sortingDescending
- the sortingDescending to setpublic org.eclipse.swt.widgets.Table getTable()
public ColumnInfo getNumberColumn()
public void setNumberColumn(ColumnInfo numberColumn)
numberColumn
- the numberColumn to setpublic org.eclipse.swt.custom.TableEditor getEditor()
public void setEditor(org.eclipse.swt.custom.TableEditor editor)
public void applyOSXChanges()
public boolean isShowingBlueNullValues()
public void setShowingBlueNullValues(boolean showingBlueNullValues)
showingBlueNullValues
- the showingBlueNullValues to setpublic org.eclipse.swt.events.ModifyListener getContentListener()
public void setContentListener(org.eclipse.swt.events.ModifyListener lsContent)
lsContent
- the lsContent to setpublic boolean isShowingConversionErrorsInline()
public void setShowingConversionErrorsInline(boolean showingConversionErrorsInline)
showingConversionErrorsInline
- the showingConversionErrorsInline to setpublic ColumnInfo[] getColumns()
public org.eclipse.swt.widgets.TableItem getActiveTableItem()
public int getActiveTableColumn()
public void setTableViewModifyListener(TableView.TableViewModifyListener tableViewModifyListener)
public boolean hasIndexColumn()
Copyright © 2019 Hitachi Vantara. All rights reserved.