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 boolean
contains(int x, int y)
Returnstrue
if the point specified by the arguments is inside the area specified by the receiver, andfalse
otherwise.org.eclipse.swt.graphics.Rectangle
getBounds()
Returns the bounds for the item.int
getIndex()
Returns the index of the page item.boolean
isEnabled()
Returns the enabled of the item.boolean
isNext()
Returns true if item is Next and false otherwise.boolean
isPrevious()
Returns true if item is Previous and false otherwise.boolean
isSeparator()
Returns true if the item is "..." and false otherwise.void
setBounds(org.eclipse.swt.graphics.Rectangle bounds)
Set bounds of the item.void
setEnabled(boolean enabled)
Set enabled of the item.oMethods inherited from class org.eclipse.swt.widgets.Item
checkSubclass, getImage, getText, setImage, setText
Methods 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)Returnstrue
if the point specified by the arguments is inside the area specified by the receiver, andfalse
otherwise.- Parameters:
x
- the x coordinate of the point to test for containmenty
- the y coordinate of the point to test for containment- Returns:
true
if the rectangle contains the point andfalse
otherwise
-
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:
-