class InternalCompositeTable
extends org.eclipse.swt.widgets.Composite
implements org.eclipse.swt.widgets.Listener
Modifier and Type | Field and Description |
---|---|
(package private) int |
clientAreaHeight |
(package private) EmptyTablePlaceholder |
emptyTablePlaceholder |
(package private) org.eclipse.swt.events.ControlAdapter |
scrollerResizeHandler |
Constructor and Description |
---|
InternalCompositeTable(org.eclipse.swt.widgets.Composite parentControl,
int style)
Constructor InternalCompositeTable.
|
Modifier and Type | Method and Description |
---|---|
void |
addRefreshContentProvider(IRowContentProvider listener)
Adds the specified listener to the set of listeners that will be notified
when a row refresh event occurs.
|
void |
clearSelection()
(non-API) See
CompositeTable.clearSelection() instead. |
void |
dispose() |
boolean |
doDeleteRow() |
void |
doFocusInitialRow() |
void |
doFocusLastRow() |
boolean |
doInsertRow() |
boolean |
doMakeFocusedRowVisible()
Makes sure that the focused row is visible
|
void |
doPageDown() |
void |
doPageUp() |
void |
doRowDown() |
void |
doRowUp() |
void |
focusGained(TableRow sender,
org.eclipse.swt.events.FocusEvent e)
Handle focusGained events on any child control.
|
void |
focusLost(TableRow sender,
org.eclipse.swt.events.FocusEvent e)
Handle focusLost events on any child control.
|
int |
getControlRow(org.eclipse.swt.widgets.Control rowControl)
Method getControlRow.
|
TableRow |
getControlRowObject(org.eclipse.swt.widgets.Control rowControl)
Method getControlRowObject.
|
org.eclipse.swt.widgets.Control |
getCurrentRowControl()
Returns the SWT control corresponding to the current row.
|
(package private) org.eclipse.swt.widgets.Control |
getHeader()
Returns the actual header control (not the prototype).
|
org.eclipse.swt.widgets.Control |
getHeaderControl()
(non-API) Method getHeaderControl.
|
int |
getNumRowsVisible()
Method getNumRowsVisible.
|
org.eclipse.swt.widgets.Control[] |
getRowControls()
Method getRowControls.
|
(package private) int |
getRowHeight(int clientAreaHeight) |
org.eclipse.swt.graphics.Point |
getSelection()
Method getSelection.
|
int |
getTopRow()
Method getTopRow.
|
void |
handleEvent(org.eclipse.swt.widgets.Event event)
Scroll wheel event handling.
|
boolean |
isHSliderVisible()
Returns if the slider is visible.
|
boolean |
isVSliderVisible()
Returns if the slider is visible.
|
void |
keyPressed(TableRow sender,
org.eclipse.swt.events.KeyEvent e)
Handle a keyPressed event on any row control.
|
void |
keyTraversed(TableRow sender,
org.eclipse.swt.events.TraverseEvent e)
Handle the keyTraversed event on any child control in the table.
|
protected void |
layoutControlHolder()
Layout the child controls within the controlHolder Composite.
|
(package private) void |
refreshAllRows()
Fire the refresh event on all visible rows.
|
(package private) void |
refreshRow(int row) |
void |
removeRefreshContentProvider(IRowContentProvider listener)
Remove the specified listener from the set of listeners that will be
notified when a row refresh event occurs.
|
void |
setBackground(org.eclipse.swt.graphics.Color color) |
void |
setHSliderVisible(boolean visible)
Sets if the slider is visible or not.
|
void |
setMaxRowsVisible(int maxRowsVisible)
Method setMaxRowsVisible.
|
void |
setMenu(org.eclipse.swt.widgets.Menu menu) |
void |
setNumRowsInCollection(int numRowsInCollection)
Method setNumRowsInCollection.
|
void |
setSelection(int column,
int row)
Method setSelection.
|
void |
setTopRow(int topRow)
Method setTopRow.
|
void |
setVSliderVisible(boolean visible)
Sets if the slider is visible or not.
|
void |
setWeights()
Method setWeights.
|
(package private) void |
updateVisibleRows()
Main refresh algorithm entry point.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
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, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
EmptyTablePlaceholder emptyTablePlaceholder
int clientAreaHeight
org.eclipse.swt.events.ControlAdapter scrollerResizeHandler
public InternalCompositeTable(org.eclipse.swt.widgets.Composite parentControl, int style)
parentControl
- The SWT parent.style
- Style bits.public void setBackground(org.eclipse.swt.graphics.Color color)
setBackground
in class org.eclipse.swt.widgets.Control
public void setVSliderVisible(boolean visible)
visible
- true if the slider should be visible; false otherwise.public boolean isVSliderVisible()
public void setHSliderVisible(boolean visible)
visible
- true if the slider should be visible; false otherwise.public boolean isHSliderVisible()
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
protected void layoutControlHolder()
void updateVisibleRows()
int getRowHeight(int clientAreaHeight)
void refreshAllRows()
void refreshRow(int row)
public org.eclipse.swt.widgets.Control getHeaderControl()
org.eclipse.swt.widgets.Control getHeader()
public void setMaxRowsVisible(int maxRowsVisible)
maxRowsVisible
- the maximum number of rows that are permitted to be visible at
one time, regardless of the control's size.public int getNumRowsVisible()
public void setNumRowsInCollection(int numRowsInCollection)
numRowsInCollection
- the number of rows represented by the underlying data
structure.public void setTopRow(int topRow)
topRow
- the line number of the new top row.public int getTopRow()
public org.eclipse.swt.graphics.Point getSelection()
public void setSelection(int column, int row)
column
- the column to selectrow
- the row to selectpublic void clearSelection()
CompositeTable.clearSelection()
instead.public void setWeights()
public void addRefreshContentProvider(IRowContentProvider listener)
listener
- the listener to add.public void removeRefreshContentProvider(IRowContentProvider listener)
listener
- the listener to remove.public void keyPressed(TableRow sender, org.eclipse.swt.events.KeyEvent e)
sender
- The row that is sending the evente
- the actual KeyEventpublic void keyTraversed(TableRow sender, org.eclipse.swt.events.TraverseEvent e)
sender
- The row sending the event.e
- The SWT TraverseEventpublic boolean doMakeFocusedRowVisible()
public void handleEvent(org.eclipse.swt.widgets.Event event)
handleEvent
in interface org.eclipse.swt.widgets.Listener
public void focusLost(TableRow sender, org.eclipse.swt.events.FocusEvent e)
sender
- The row containing the sending control.e
- The SWT FocusEvent.public void focusGained(TableRow sender, org.eclipse.swt.events.FocusEvent e)
sender
- The row containing the sending control.e
- The SWT FocusEvent.public org.eclipse.swt.widgets.Control getCurrentRowControl()
public org.eclipse.swt.widgets.Control[] getRowControls()
public void setMenu(org.eclipse.swt.widgets.Menu menu)
setMenu
in class org.eclipse.swt.widgets.Control
public int getControlRow(org.eclipse.swt.widgets.Control rowControl)
rowControl
- The row object to findjava.lang.IllegalArgumentException
- if rowControl is not currently visiblepublic TableRow getControlRowObject(org.eclipse.swt.widgets.Control rowControl)
rowControl
- The row object to findjava.lang.IllegalArgumentException
- if rowControl is not currently visiblepublic void doFocusInitialRow()
public void doFocusLastRow()
public void doPageUp()
public void doPageDown()
public void doRowUp()
public void doRowDown()
public boolean doInsertRow()
public boolean doDeleteRow()