T - pagination controller.public abstract class AbstractPageControllerComposite extends org.eclipse.swt.widgets.Composite implements IPageChangedListener
Composite which must
observe changed of a pagination controller to react and update the UI
according the change of the pagination controller. Ex: control to display
page navigation, paginated data in a table, etc...| Modifier | Constructor and Description |
|---|---|
|
AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style)
Constructs a new instance of this class given its parent and a style
value describing its behavior and appearance.
|
|
AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
int pageSize,
IPageContentProvider pageContentProvider)
Constructs a new instance of this class given its parent and a style
value describing its behavior and appearance.
|
|
AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
PageableController controller)
Constructs a new instance of this class given its parent and a style
value describing its behavior and appearance.
|
protected |
AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
PageableController controller,
int pageSize,
IPageContentProvider pageContentProvider,
boolean createUI)
Constructs a new instance of this class given its parent and a style
value describing its behavior and appearance.
|
| Modifier and Type | Method and Description |
|---|---|
protected PageableController |
createController(int pageSize) |
protected abstract void |
createUI(org.eclipse.swt.widgets.Composite parent)
Create the UI content.
|
void |
dispose() |
PageableController |
getController() |
java.util.Locale |
getLocale()
returns the locale to use for resources.
|
IPageContentProvider |
getPageContentProvider() |
void |
localeChanged(java.util.Locale oldLocale,
java.util.Locale newLocale,
PageableController paginationController)
Sent when locale changed in the page controller
PageableController. |
void |
setCurrentPage(int currentPage)
Set the current page index to teh pagination controller.
|
void |
setLocale(java.util.Locale locale)
Set the locale to use for resources.
|
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, 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, 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, updateaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpageIndexChanged, pageSizeChanged, sortChanged, totalElementsChangedpublic AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style)
parent - a widget which will be the parent of the new instance (cannot
be null)style - the style of widget to constructpublic AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
PageableController controller)
parent - a widget which will be the parent of the new instance (cannot
be null)style - the style of widget to constructcontroller - the pagination controller to observe and update.public AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
int pageSize,
IPageContentProvider pageContentProvider)
parent - a widget which will be the parent of the new instance (cannot
be null)style - the style of widget to constructpageSize - size of the page (number items displayed per page).protected AbstractPageControllerComposite(org.eclipse.swt.widgets.Composite parent,
int style,
PageableController controller,
int pageSize,
IPageContentProvider pageContentProvider,
boolean createUI)
parent - a widget which will be the parent of the new instance (cannot
be null)style - the style of widget to constructcontroller - the pagination controller to observe and update. If this
controller is null, this Composite create the pagination
controller with the given pageSize.pageSize - size of the page (number items displayed per page).createUI - true if the UI must be created and false otherwise.protected PageableController createController(int pageSize)
public PageableController getController()
public void setCurrentPage(int currentPage)
currentPage - new current page index.public void dispose()
dispose in class org.eclipse.swt.widgets.Widgetpublic void setLocale(java.util.Locale locale)
locale - public java.util.Locale getLocale()
public void localeChanged(java.util.Locale oldLocale,
java.util.Locale newLocale,
PageableController paginationController)
IPageChangedListenerPageableController.localeChanged in interface IPageChangedListeneroldLocale - old locale.newLocale - new locale.public IPageContentProvider getPageContentProvider()
protected abstract void createUI(org.eclipse.swt.widgets.Composite parent)
parent -