Class NavigationPageGraphicsItem
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Item
org.eclipse.nebula.widgets.pagination.renderers.navigation.graphics.NavigationPageGraphicsItem
public class NavigationPageGraphicsItem
extends org.eclipse.swt.widgets.Item
Navigation page item (ex Previous, Next, page links etc).
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NavigationPageGraphicsItem(NavigationPageGraphics parent, int index) -
Method Summary
Modifier and Type Method Description booleancontains(int x, int y)Returnstrueif the point specified by the arguments is inside the area specified by the receiver, andfalseotherwise.org.eclipse.swt.graphics.RectanglegetBounds()Returns the bounds for the item.intgetIndex()Returns the index of the page item.booleanisEnabled()Returns the enabled of the item.booleanisNext()Returns true if item is Next and false otherwise.booleanisPrevious()Returns true if item is Previous and false otherwise.booleanisSeparator()Returns true if the item is "..." and false otherwise.voidsetBounds(org.eclipse.swt.graphics.Rectangle bounds)Set bounds of the item.voidsetEnabled(boolean enabled)Set enabled of the item.oMethods inherited from class org.eclipse.swt.widgets.Item
checkSubclass, getImage, getText, setImage, setTextMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
Field Details
-
PREVIOUS
public static final int PREVIOUS- See Also:
- Constant Field Values
-
NEXT
public static final int NEXT- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getIndex
public int getIndex()Returns the index of the page item.- Returns:
-
setBounds
public void setBounds(org.eclipse.swt.graphics.Rectangle bounds)Set bounds of the item.- Parameters:
bounds-
-
contains
public boolean contains(int x, int y)Returnstrueif the point specified by the arguments is inside the area specified by the receiver, andfalseotherwise.- Parameters:
x- the x coordinate of the point to test for containmenty- the y coordinate of the point to test for containment- Returns:
trueif the rectangle contains the point andfalseotherwise
-
getBounds
public org.eclipse.swt.graphics.Rectangle getBounds()Returns the bounds for the item. It can be null if bounds was not computed.- Returns:
-
isSeparator
public boolean isSeparator()Returns true if the item is "..." and false otherwise.- Returns:
-
isPrevious
public boolean isPrevious()Returns true if item is Previous and false otherwise.- Returns:
-
isNext
public boolean isNext()Returns true if item is Next and false otherwise.- Returns:
-
setEnabled
public void setEnabled(boolean enabled)Set enabled of the item.o- Parameters:
enabled-
-
isEnabled
public boolean isEnabled()Returns the enabled of the item.- Returns:
-