public class NavigationPageGraphicsItem
extends org.eclipse.swt.widgets.Item
Constructor and Description |
---|
NavigationPageGraphicsItem(NavigationPageGraphics parent,
int index) |
Modifier and Type | Method and 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
|
checkSubclass, getImage, getText, setImage, setText
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public static final int PREVIOUS
public static final int NEXT
public NavigationPageGraphicsItem(NavigationPageGraphics parent, int index)
public int getIndex()
public void setBounds(org.eclipse.swt.graphics.Rectangle bounds)
bounds
- public boolean contains(int x, int y)
true
if the point specified by the arguments is
inside the area specified by the receiver, and false
otherwise.x
- the x coordinate of the point to test for containmenty
- the y coordinate of the point to test for containmenttrue
if the rectangle contains the point and
false
otherwisepublic org.eclipse.swt.graphics.Rectangle getBounds()
public boolean isSeparator()
public boolean isPrevious()
public boolean isNext()
public void setEnabled(boolean enabled)
enabled
- public boolean isEnabled()