public class TableWrapper extends ControlWrapper implements ITable
| Constructor and Description |
|---|
TableWrapper(ITable table) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSelectionVetoListener(IListSelectionVetoListener listener) |
void |
addTableCellListener(ITableCellListener listener) |
void |
addTableCellPopupDetectionListener(ITableCellPopupDetectionListener listener) |
void |
addTableColumnListener(ITableColumnListener listener) |
void |
addTableColumnPopupDetectionListener(ITableColumnPopupDetectionListener listener) |
void |
addTableSelectionListener(ITableSelectionListener listener) |
void |
cancelEditing() |
int |
convertColumnIndexToModel(int viewIndex) |
int |
convertColumnIndexToView(int modelIndex) |
boolean |
editCell(int row,
int column)
Set the edit mode for a cell.
|
Position |
getCellPosition(int rowIndex,
int columnIndex) |
Dimension |
getCellSize(int rowIndex,
int columnIndex) |
int |
getColumnCount() |
java.util.ArrayList<java.lang.Integer> |
getColumnPermutation() |
int |
getRowCount() |
java.util.ArrayList<java.lang.Integer> |
getSelection() |
Interval<java.lang.Integer> |
getVisibleRows()
Gets the interval of the visible rows (visible in viewport).
|
protected ITable |
getWidget() |
boolean |
isColumnPopupDetectionSupported() |
boolean |
isEditing() |
void |
moveColumn(int oldViewIndex,
int newViewIndex) |
void |
pack() |
void |
pack(int columnIndex) |
void |
pack(int columnIndex,
TablePackPolicy policy) |
void |
pack(TablePackPolicy policy) |
void |
removeSelectionVetoListener(IListSelectionVetoListener listener) |
void |
removeTableCellListener(ITableCellListener listener) |
void |
removeTableCellPopupDetectionListener(ITableCellPopupDetectionListener listener) |
void |
removeTableColumnListener(ITableColumnListener listener) |
void |
removeTableColumnPopupDetectionListener(ITableColumnPopupDetectionListener listener) |
void |
removeTableSelectionListener(ITableSelectionListener listener) |
void |
resetColumnPermutation() |
void |
resetFromModel() |
void |
scrollToEnd()
Scrolls the viewport to the last row.
|
void |
scrollToRow(int rowIndex)
Scrolls the viewport to the given row, if the row is not shown in the viewport.
|
void |
scrollToSelection()
Scrolls the viewport to the first selected row.
|
void |
setColumnPermutation(java.util.List<java.lang.Integer> permutation) |
void |
setEditable(boolean editable)
Sets the tables global editable property.
|
void |
setRowHeight(int height) |
void |
setSelection(java.util.List<java.lang.Integer> selection) |
void |
stopEditing() |
addParentListener, getDragSource, getDropTarget, getLayoutConstraints, getMaxSize, getMinSize, getParent, getPreferredSize, getRoot, removeParentListener, setLayoutConstraints, setMaxSize, setMinSize, setParent, setPreferredSize, setToolTipTextaddComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addPopupDetectionListener, addShowingStateListener, createPopupMenu, fromComponent, getBackgroundColor, getBounds, getForegroundColor, getPosition, getSize, hasFocus, isReparentable, isShowing, isVisible, redraw, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePopupDetectionListener, removeShowingStateListener, requestFocus, setBackgroundColor, setBounds, setCursor, setForegroundColor, setPopupMenu, setPosition, setPosition, setRedrawEnabled, setSize, setSize, setVisible, toComponent, toLocal, toScreenaddDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDragSource, getDropTarget, getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSizecreatePopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreendispose, isDisposedaddDisposeListener, removeDisposeListeneraddShowingStateListener, removeShowingStateListeneraddParentListener, removeParentListenergetLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipTextgetBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisiblegetUiReference, isEnabled, setEnabledaddComponentListener, removeComponentListeneraddFocusListener, removeFocusListeneraddKeyListener, removeKeyListeneraddMouseListener, removeMouseListeneraddMouseMotionListener, removeMouseMotionListeneraddPopupDetectionListener, removePopupDetectionListenerpublic TableWrapper(ITable table)
protected ITable getWidget()
getWidget in class ControlWrapperpublic int getRowCount()
getRowCount in interface ITablepublic int getColumnCount()
getColumnCount in interface ITablepublic int convertColumnIndexToView(int modelIndex)
convertColumnIndexToView in interface ITablepublic int convertColumnIndexToModel(int viewIndex)
convertColumnIndexToModel in interface ITablepublic void moveColumn(int oldViewIndex,
int newViewIndex)
moveColumn in interface ITablepublic void resetColumnPermutation()
resetColumnPermutation in interface ITablepublic void resetFromModel()
resetFromModel in interface ITableCommonpublic void setEditable(boolean editable)
ITableCommonsetEditable in interface ITableCommoneditable - The editable state to setpublic Position getCellPosition(int rowIndex, int columnIndex)
getCellPosition in interface ITableCommonpublic Dimension getCellSize(int rowIndex, int columnIndex)
getCellSize in interface ITableCommonpublic java.util.ArrayList<java.lang.Integer> getColumnPermutation()
getColumnPermutation in interface ITableCommonpublic void setColumnPermutation(java.util.List<java.lang.Integer> permutation)
setColumnPermutation in interface ITableCommonpublic java.util.ArrayList<java.lang.Integer> getSelection()
getSelection in interface ITableCommonpublic void setSelection(java.util.List<java.lang.Integer> selection)
setSelection in interface ITableCommonpublic void scrollToSelection()
ITablescrollToSelection in interface ITableITableCommon.scrollToRow(int)public void scrollToEnd()
ITablescrollToEnd in interface ITableITableCommon.scrollToRow(int)public void scrollToRow(int rowIndex)
ITableCommonscrollToRow in interface ITableCommonrowIndex - The row to scroll topublic boolean isColumnPopupDetectionSupported()
isColumnPopupDetectionSupported in interface ITableCommonpublic Interval<java.lang.Integer> getVisibleRows()
ITableCommongetVisibleRows in interface ITableCommonpublic void pack(TablePackPolicy policy)
pack in interface ITableCommonpublic void pack(int columnIndex,
TablePackPolicy policy)
pack in interface ITableCommonpublic boolean editCell(int row,
int column)
ITableCommoneditCell in interface ITableCommonrow - the row index of the cellcolumn - the column index of the cellpublic void stopEditing()
stopEditing in interface ITableCommonpublic void cancelEditing()
cancelEditing in interface ITableCommonpublic boolean isEditing()
isEditing in interface ITableCommonpublic void addTableSelectionListener(ITableSelectionListener listener)
addTableSelectionListener in interface ITableSelectionObservablepublic void removeTableSelectionListener(ITableSelectionListener listener)
removeTableSelectionListener in interface ITableSelectionObservablepublic void addSelectionVetoListener(IListSelectionVetoListener listener)
addSelectionVetoListener in interface IListSelectionVetoObservablepublic void removeSelectionVetoListener(IListSelectionVetoListener listener)
removeSelectionVetoListener in interface IListSelectionVetoObservablepublic void addTableCellListener(ITableCellListener listener)
addTableCellListener in interface ITableCellObservablepublic void removeTableCellListener(ITableCellListener listener)
removeTableCellListener in interface ITableCellObservablepublic void addTableCellPopupDetectionListener(ITableCellPopupDetectionListener listener)
addTableCellPopupDetectionListener in interface ITableCellPopupDetectionObservablepublic void removeTableCellPopupDetectionListener(ITableCellPopupDetectionListener listener)
removeTableCellPopupDetectionListener in interface ITableCellPopupDetectionObservablepublic void addTableColumnListener(ITableColumnListener listener)
addTableColumnListener in interface ITableColumnObservablepublic void removeTableColumnListener(ITableColumnListener listener)
removeTableColumnListener in interface ITableColumnObservablepublic void addTableColumnPopupDetectionListener(ITableColumnPopupDetectionListener listener)
addTableColumnPopupDetectionListener in interface ITableColumnPopupDetectionObservablepublic void removeTableColumnPopupDetectionListener(ITableColumnPopupDetectionListener listener)
removeTableColumnPopupDetectionListener in interface ITableColumnPopupDetectionObservablepublic void setRowHeight(int height)
setRowHeight in interface ITableCommonSiehe auch Jowidgets Nutzerhandbuch