public class TableView
extends org.eclipse.swt.widgets.Composite
Modifier and Type | Field and Description |
---|---|
org.eclipse.swt.widgets.Table |
table |
Constructor and Description |
---|
TableView(org.pentaho.di.core.variables.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(org.pentaho.di.core.variables.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) |
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.
|
ColumnInfo |
getNumberColumn() |
org.pentaho.di.core.RowMetaAndData |
getRow(int nr) |
org.pentaho.di.core.row.RowMetaInterface |
getRowWithoutValues() |
int |
getSelectionIndex() |
int[] |
getSelectionIndices() |
int |
getSortField() |
org.eclipse.swt.widgets.Table |
getTable() |
org.eclipse.swt.widgets.ScrollBar |
getVerticalBar() |
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 |
setText(String text,
int colnr,
int rownr) |
void |
sortTable(int colnr) |
void |
sortTable(int sortField,
boolean sortingDescending) |
void |
unEdit() |
changed, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getBorderWidth, getScrollbarsMode
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, 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, 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
public TableView(org.pentaho.di.core.variables.VariableSpace space, org.eclipse.swt.widgets.Composite parent, int style, ColumnInfo[] columnInfo, int nrRows, org.eclipse.swt.events.ModifyListener lsm, PropsUI pr)
public TableView(org.pentaho.di.core.variables.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 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 org.pentaho.di.core.row.RowMetaInterface getRowWithoutValues()
public org.pentaho.di.core.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()