public abstract class LdifUsersTable
extends org.eclipse.swt.widgets.Composite
TableViewer. Use the
getTableViewer method to access it.| Constructor and Description |
|---|
LdifUsersTable(org.eclipse.swt.widgets.Composite parent,
int style) |
LdifUsersTable(org.eclipse.swt.widgets.Composite parent,
int style,
boolean preventTableLayout) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
java.util.List<User> |
getSelectedUsers()
Enable access to the selected users or groups
|
org.eclipse.jface.viewers.TableViewer |
getTableViewer()
Returns the User table viewer, typically to add doubleclick listener
|
protected abstract java.util.List<User> |
listFilteredElements(java.lang.String filter)
Effective repository request: caller must implement this method
|
void |
populate(boolean addFilter,
boolean addSelection) |
protected void |
populateStaticFilters(org.eclipse.swt.widgets.Composite staticFilterCmp)
Overwrite to add static filters
|
void |
populateWithStaticFilters(boolean showMore,
boolean addSelection) |
void |
refresh()
Force the refresh of the underlying table using the current filter string if
relevant
|
void |
setColumnDefinitions(java.util.List<ColumnDefinition> columnDefinitions)
This must be called before the call to populate method
|
boolean |
setFocus() |
changed, computeSize, getAdapter, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addTouchListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCursor, setData, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, updatepublic LdifUsersTable(org.eclipse.swt.widgets.Composite parent,
int style)
parent - style - public LdifUsersTable(org.eclipse.swt.widgets.Composite parent,
int style,
boolean preventTableLayout)
public void setColumnDefinitions(java.util.List<ColumnDefinition> columnDefinitions)
public void populate(boolean addFilter,
boolean addSelection)
addFilter - choose to add a field to filter results or notaddSelection - choose to add a column to select some of the displayed results or
notpublic void populateWithStaticFilters(boolean showMore,
boolean addSelection)
showMore - display static filters on creationaddSelection - choose to add a column to select some of the displayed results or
notpublic java.util.List<User> getSelectedUsers()
public org.eclipse.jface.viewers.TableViewer getTableViewer()
public void refresh()
protected abstract java.util.List<User> listFilteredElements(java.lang.String filter)
public boolean setFocus()
setFocus in class org.eclipse.swt.widgets.Compositepublic void dispose()
dispose in class org.eclipse.swt.widgets.Widgetprotected void populateStaticFilters(org.eclipse.swt.widgets.Composite staticFilterCmp)
Copyright © 2007–2020. All rights reserved.