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, setToolTipText
addComponentListener, 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, toScreen
addDisposeListener, dispose, getUiReference, isDisposed, isEnabled, removeDisposeListener, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDragSource, getDropTarget, getParent, getRoot, setMaxSize, setMinSize, setParent, setPreferredSize
createPopupMenu, fromComponent, getBounds, hasFocus, isReparentable, isShowing, setBounds, setPopupMenu, setPosition, setSize, toComponent, toLocal, toScreen
dispose, isDisposed
addDisposeListener, removeDisposeListener
addShowingStateListener, removeShowingStateListener
addParentListener, removeParentListener
getLayoutConstraints, getMaxSize, getMinSize, getPreferredSize, setLayoutConstraints, setToolTipText
getBackgroundColor, getForegroundColor, getPosition, getSize, isVisible, redraw, requestFocus, setBackgroundColor, setCursor, setForegroundColor, setPosition, setRedrawEnabled, setSize, setVisible
getUiReference, isEnabled, setEnabled
addComponentListener, removeComponentListener
addFocusListener, removeFocusListener
addKeyListener, removeKeyListener
addMouseListener, removeMouseListener
addMouseMotionListener, removeMouseMotionListener
addPopupDetectionListener, removePopupDetectionListener
public TableWrapper(ITable table)
protected ITable getWidget()
getWidget
in class ControlWrapper
public int getRowCount()
getRowCount
in interface ITable
public int getColumnCount()
getColumnCount
in interface ITable
public int convertColumnIndexToView(int modelIndex)
convertColumnIndexToView
in interface ITable
public int convertColumnIndexToModel(int viewIndex)
convertColumnIndexToModel
in interface ITable
public void moveColumn(int oldViewIndex, int newViewIndex)
moveColumn
in interface ITable
public void resetColumnPermutation()
resetColumnPermutation
in interface ITable
public void resetFromModel()
resetFromModel
in interface ITableCommon
public void setEditable(boolean editable)
ITableCommon
setEditable
in interface ITableCommon
editable
- The editable state to setpublic Position getCellPosition(int rowIndex, int columnIndex)
getCellPosition
in interface ITableCommon
public Dimension getCellSize(int rowIndex, int columnIndex)
getCellSize
in interface ITableCommon
public java.util.ArrayList<java.lang.Integer> getColumnPermutation()
getColumnPermutation
in interface ITableCommon
public void setColumnPermutation(java.util.List<java.lang.Integer> permutation)
setColumnPermutation
in interface ITableCommon
public java.util.ArrayList<java.lang.Integer> getSelection()
getSelection
in interface ITableCommon
public void setSelection(java.util.List<java.lang.Integer> selection)
setSelection
in interface ITableCommon
public void scrollToSelection()
ITable
scrollToSelection
in interface ITable
ITableCommon.scrollToRow(int)
public void scrollToEnd()
ITable
scrollToEnd
in interface ITable
ITableCommon.scrollToRow(int)
public void scrollToRow(int rowIndex)
ITableCommon
scrollToRow
in interface ITableCommon
rowIndex
- The row to scroll topublic boolean isColumnPopupDetectionSupported()
isColumnPopupDetectionSupported
in interface ITableCommon
public Interval<java.lang.Integer> getVisibleRows()
ITableCommon
getVisibleRows
in interface ITableCommon
public void pack(TablePackPolicy policy)
pack
in interface ITableCommon
public void pack(int columnIndex, TablePackPolicy policy)
pack
in interface ITableCommon
public boolean editCell(int row, int column)
ITableCommon
editCell
in interface ITableCommon
row
- the row index of the cellcolumn
- the column index of the cellpublic void stopEditing()
stopEditing
in interface ITableCommon
public void cancelEditing()
cancelEditing
in interface ITableCommon
public boolean isEditing()
isEditing
in interface ITableCommon
public void addTableSelectionListener(ITableSelectionListener listener)
addTableSelectionListener
in interface ITableSelectionObservable
public void removeTableSelectionListener(ITableSelectionListener listener)
removeTableSelectionListener
in interface ITableSelectionObservable
public void addSelectionVetoListener(IListSelectionVetoListener listener)
addSelectionVetoListener
in interface IListSelectionVetoObservable
public void removeSelectionVetoListener(IListSelectionVetoListener listener)
removeSelectionVetoListener
in interface IListSelectionVetoObservable
public void addTableCellListener(ITableCellListener listener)
addTableCellListener
in interface ITableCellObservable
public void removeTableCellListener(ITableCellListener listener)
removeTableCellListener
in interface ITableCellObservable
public void addTableCellPopupDetectionListener(ITableCellPopupDetectionListener listener)
addTableCellPopupDetectionListener
in interface ITableCellPopupDetectionObservable
public void removeTableCellPopupDetectionListener(ITableCellPopupDetectionListener listener)
removeTableCellPopupDetectionListener
in interface ITableCellPopupDetectionObservable
public void addTableColumnListener(ITableColumnListener listener)
addTableColumnListener
in interface ITableColumnObservable
public void removeTableColumnListener(ITableColumnListener listener)
removeTableColumnListener
in interface ITableColumnObservable
public void addTableColumnPopupDetectionListener(ITableColumnPopupDetectionListener listener)
addTableColumnPopupDetectionListener
in interface ITableColumnPopupDetectionObservable
public void removeTableColumnPopupDetectionListener(ITableColumnPopupDetectionListener listener)
removeTableColumnPopupDetectionListener
in interface ITableColumnPopupDetectionObservable
public void setRowHeight(int height)
setRowHeight
in interface ITableCommon
Siehe auch Jowidgets Nutzerhandbuch