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

    Fields 
    Modifier and Type Field Description
    static int NEXT  
    static int PREVIOUS  
  • Constructor Summary

    Constructors 
    Constructor Description
    NavigationPageGraphicsItem​(NavigationPageGraphics parent, int index)  
  • Method Summary

    Modifier and Type Method Description
    boolean contains​(int x, int y)
    Returns true if the point specified by the arguments is inside the area specified by the receiver, and false 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.o

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • 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)
      Returns true if the point specified by the arguments is inside the area specified by the receiver, and false otherwise.
      Parameters:
      x - the x coordinate of the point to test for containment
      y - the y coordinate of the point to test for containment
      Returns:
      true if the rectangle contains the point and false 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: