Uses of Class
org.eclipse.nebula.widgets.gallery.GalleryItem
Package | Description |
---|---|
org.eclipse.nebula.jface.galleryviewer |
Provides a JFace viewer for the Gallery widget.
|
org.eclipse.nebula.widgets.gallery |
Provides the Gallery custom widget.
|
-
Uses of GalleryItem in org.eclipse.nebula.jface.galleryviewer
Fields in org.eclipse.nebula.jface.galleryviewer declared as GalleryItem Modifier and Type Field Description protected GalleryItem
GalleryViewerRow. item
Methods in org.eclipse.nebula.jface.galleryviewer with parameters of type GalleryItem Modifier and Type Method Description void
GalleryViewerRow. setItem(GalleryItem item)
Constructors in org.eclipse.nebula.jface.galleryviewer with parameters of type GalleryItem Constructor Description GalleryViewerRow(GalleryItem item)
Constructs a ViewerRow adapter for a GalleryItem. -
Uses of GalleryItem in org.eclipse.nebula.widgets.gallery
Fields in org.eclipse.nebula.widgets.gallery declared as GalleryItem Modifier and Type Field Description (package private) GalleryItem
GalleryGroupResizeEffect. item
(package private) GalleryItem[]
Gallery. items
protected GalleryItem[]
GalleryItem. items
Children of this item.protected GalleryItem
Gallery. lastSingleClick
Keeps track of the last selected item.Methods in org.eclipse.nebula.widgets.gallery that return GalleryItem Modifier and Type Method Description protected GalleryItem
Gallery. _getItem(int index)
Get the item at index.
If SWT.VIRTUAL is used and the item has not been used yet, the item is created and a SWT.SetData is fired.
This is the internal implementation of this method : checkWidget() is not used.protected GalleryItem
Gallery. _getItem(int index, boolean create)
Get the item at 'index'.
If SWT.VIRTUAL is used, 'create' is true and the item has not been used yet, the item is created and a SWT.SetData is fired.protected GalleryItem
Gallery. _getItem(GalleryItem parent, int index)
This method is used by items to implement getItem( index )GalleryItem
Gallery. getGroup(org.eclipse.swt.graphics.Point coords)
Get group at pixel position (relative to client area).abstract GalleryItem
AbstractGalleryGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
Returns the item at coords relative to the parent group.GalleryItem
AbstractGridGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
protected GalleryItem
AbstractGridGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords, int offsetY)
Get item at pixel positionGalleryItem
DefaultGalleryGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
GalleryItem
Gallery. getItem(int index)
Get the item at index.
If SWT.VIRTUAL is used and the item has not been used yet, the item is created and a SWT.SetData event is fired.GalleryItem
Gallery. getItem(org.eclipse.swt.graphics.Point coords)
Get item at pixel positionGalleryItem
GalleryItem. getItem(int index)
Searches the receiver's list starting at the first item (index 0) until an item is found that is equal to the argument, and returns the index of that item.GalleryItem
NoGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
GalleryItem[]
Gallery. getItems()
GalleryItem[]
GalleryItem. getItems()
abstract GalleryItem
AbstractGalleryGroupRenderer. getNextItem(GalleryItem item, int key)
Returns the item that should be selected when the current item is 'item' and the 'key' is pressedGalleryItem
AbstractGridGroupRenderer. getNextItem(GalleryItem item, int key)
GalleryItem
GalleryItem. getParentItem()
GalleryItem[]
Gallery. getSelection()
Methods in org.eclipse.nebula.widgets.gallery with parameters of type GalleryItem Modifier and Type Method Description protected void
Gallery. _addSelection(GalleryItem item)
protected void
GalleryItem. _addSelection(GalleryItem item)
protected GalleryItem
Gallery. _getItem(GalleryItem parent, int index)
This method is used by items to implement getItem( index )protected int
Gallery. _indexOf(GalleryItem item)
Returns the index of a GalleryItem when it is a root Itemprotected int
Gallery. _indexOf(GalleryItem parentItem, GalleryItem item)
Returns the index of a GalleryItem when it is not a root Itemprotected void
Gallery. _remove(GalleryItem parent, int index)
protected void
Gallery. _removeSelection(GalleryItem parent, GalleryItem item)
void
Gallery. _setGalleryItems(GalleryItem[] items)
(package private) void
Gallery. _showItem(GalleryItem item)
protected void
Gallery. addItem(GalleryItem item, int position)
protected void
GalleryItem. addItem(GalleryItem item, int position)
abstract void
AbstractGalleryGroupRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight)
Group size informations can be retrieved from group.abstract void
AbstractGalleryItemRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem item, int index, int x, int y, int width, int height)
Draws an item.void
AbstractGridGroupRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight)
void
DefaultGalleryGroupRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight)
void
DefaultGalleryItemRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem item, int index, int x, int y, int width, int height)
void
ListItemRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem item, int index, int x, int y, int width, int height)
void
NoGroupRenderer. draw(org.eclipse.swt.graphics.GC gc, GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight)
protected void
AbstractGalleryItemRenderer. drawAllOverlays(org.eclipse.swt.graphics.GC gc, GalleryItem item, int x, int y, org.eclipse.swt.graphics.Point imageSize, int xShift, int yShift)
Draw image overlays.protected void
DefaultGalleryGroupRenderer. drawGroup(org.eclipse.swt.graphics.GC gc, GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight)
protected void
DefaultGalleryGroupRenderer. drawGroupBackground(org.eclipse.swt.graphics.GC gc, GalleryItem item, int x, int y, int width, int height)
Draw group background using system default gradient or the user-defined color.protected int
DefaultGalleryGroupRenderer. drawGroupToggleButton(org.eclipse.swt.graphics.GC gc, int x, int y, GalleryItem group)
Draw the toggle button.protected void
AbstractGridGroupRenderer. drawItem(org.eclipse.swt.graphics.GC gc, int index, boolean selected, GalleryItem parent, int offsetY)
Draw a child item.protected void
DefaultGalleryGroupRenderer. drawItem(org.eclipse.swt.graphics.GC gc, int index, boolean selected, GalleryItem parent, int offsetY)
protected org.eclipse.swt.graphics.Color
AbstractGalleryGroupRenderer. getBackground(GalleryItem item)
Returns item background color.protected org.eclipse.swt.graphics.Color
AbstractGalleryItemRenderer. getBackground(GalleryItem item)
Check the GalleryItem, Gallery, and Display in order for the active background color for the given GalleryItem.protected org.eclipse.swt.graphics.Font
AbstractGalleryGroupRenderer. getFont(GalleryItem item)
Returns item font.protected org.eclipse.swt.graphics.Font
AbstractGalleryItemRenderer. getFont(GalleryItem item)
Check the GalleryItem, Gallery, and Display in order for the active font for the given GalleryItem.protected org.eclipse.swt.graphics.Color
AbstractGalleryGroupRenderer. getForeground(GalleryItem item)
Returns item foreground color.protected org.eclipse.swt.graphics.Color
AbstractGalleryItemRenderer. getForeground(GalleryItem item)
Check the GalleryItem, Gallery, and Display in order for the active foreground color for the given GalleryItem.protected int
DefaultGalleryGroupRenderer. getGroupHeight(GalleryItem group)
protected int
DefaultGalleryGroupRenderer. getGroupOffset(GalleryItem item)
Returns a group offset (size of title + margin)protected org.eclipse.swt.graphics.Point
AbstractGalleryGroupRenderer. getGroupPosition(GalleryItem item)
protected org.eclipse.swt.graphics.Point
AbstractGalleryGroupRenderer. getGroupSize(GalleryItem item)
protected java.lang.String
DefaultGalleryGroupRenderer. getGroupTitle(GalleryItem group)
protected org.eclipse.swt.graphics.Image[]
AbstractGalleryItemRenderer. getImageOverlay(GalleryItem item, java.lang.String id)
Returns an array of images or null of no overlay was defined for this image.abstract GalleryItem
AbstractGalleryGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
Returns the item at coords relative to the parent group.GalleryItem
AbstractGridGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
protected GalleryItem
AbstractGridGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords, int offsetY)
Get item at pixel positionGalleryItem
DefaultGalleryGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
GalleryItem
NoGroupRenderer. getItem(GalleryItem group, org.eclipse.swt.graphics.Point coords)
protected org.eclipse.swt.graphics.Point
AbstractGridGroupRenderer. getLayoutData(GalleryItem item)
abstract GalleryItem
AbstractGalleryGroupRenderer. getNextItem(GalleryItem item, int key)
Returns the item that should be selected when the current item is 'item' and the 'key' is pressedGalleryItem
AbstractGridGroupRenderer. getNextItem(GalleryItem item, int key)
abstract org.eclipse.swt.graphics.Rectangle
AbstractGalleryGroupRenderer. getSize(GalleryItem item)
Returns the size of a group.org.eclipse.swt.graphics.Rectangle
AbstractGridGroupRenderer. getSize(GalleryItem item)
protected org.eclipse.swt.graphics.Rectangle
AbstractGridGroupRenderer. getSize(GalleryItem item, int offsetY)
org.eclipse.swt.graphics.Rectangle
DefaultGalleryGroupRenderer. getSize(GalleryItem item)
org.eclipse.swt.graphics.Rectangle
NoGroupRenderer. getSize(GalleryItem item)
protected int[]
AbstractGridGroupRenderer. getVisibleItems(GalleryItem group, int x, int y, int clipX, int clipY, int clipWidth, int clipHeight, int offset)
int
Gallery. indexOf(GalleryItem item)
Returns the index of a GalleryItem.int
GalleryItem. indexOf(GalleryItem childItem)
Returns the index of childItem within this item or -1 if childItem is not found.protected boolean
AbstractGridGroupRenderer. isGroupExpanded(GalleryItem item)
Return item expand state (item.isExpanded()) Returns always true is alwaysExpanded is set to true.protected boolean
DefaultGalleryGroupRenderer. isGroupExpanded(GalleryItem item)
protected boolean
Gallery. isSelected(GalleryItem item)
protected boolean
GalleryItem. isSelected(GalleryItem item)
abstract void
AbstractGalleryGroupRenderer. layout(org.eclipse.swt.graphics.GC gc, GalleryItem group)
This method is called on each root item when the Gallery changes (resize, item addition or removal) in order to update the gallery size.void
AbstractGridGroupRenderer. layout(org.eclipse.swt.graphics.GC gc, GalleryItem group)
void
DefaultGalleryGroupRenderer. layout(org.eclipse.swt.graphics.GC gc, GalleryItem group)
void
NoGroupRenderer. layout(org.eclipse.swt.graphics.GC gc, GalleryItem group)
abstract boolean
AbstractGalleryGroupRenderer. mouseDown(GalleryItem group, org.eclipse.swt.widgets.Event e, org.eclipse.swt.graphics.Point coords)
This method can be implemented to handle mouse down events at the group level.boolean
AbstractGridGroupRenderer. mouseDown(GalleryItem group, org.eclipse.swt.events.MouseEvent e, org.eclipse.swt.graphics.Point coords)
boolean
DefaultGalleryGroupRenderer. mouseDown(GalleryItem group, org.eclipse.swt.widgets.Event e, org.eclipse.swt.graphics.Point coords)
boolean
NoGroupRenderer. mouseDown(GalleryItem group, org.eclipse.swt.widgets.Event e, org.eclipse.swt.graphics.Point coords)
protected void
Gallery. notifySelectionListeners(GalleryItem item, int index, boolean isDefault)
Send a selection event for a gallery itemprotected void
AbstractGalleryGroupRenderer. notifyTreeListeners(GalleryItem group)
Notifies the Gallery that the control expanded/collapsed state has changed.protected void
Gallery. notifyTreeListeners(GalleryItem item, boolean state)
Send an Expand event for a GalleryItem(package private) void
Gallery. onMouseHandleLeft(org.eclipse.swt.widgets.Event e, GalleryItem item, boolean down, boolean up)
(package private) void
Gallery. onMouseHandleRight(org.eclipse.swt.widgets.Event e, GalleryItem item, boolean down, boolean up)
Handle right click.void
Gallery. redraw(GalleryItem item)
Redraw the item given as parameter.void
Gallery. remove(GalleryItem item)
void
GalleryItem. remove(GalleryItem item)
protected void
Gallery. setData(GalleryItem galleryItem, int index)
Sends SWT.SetData event.protected void
AbstractGalleryGroupRenderer. setGroupSize(GalleryItem item, org.eclipse.swt.graphics.Point size)
protected void
GalleryItem. setParentItem(GalleryItem parentItem)
protected void
Gallery. setSelected(GalleryItem item, boolean selected, boolean notifyListeners)
Toggle item selection statusvoid
Gallery. setSelection(GalleryItem[] items)
void
Gallery. showItem(GalleryItem item)
Scroll the Gallery in order to make 'item' visible.protected void
DefaultGalleryGroupRenderer. startGroupAnimation(GalleryItem group, boolean doOpen)
protected void
Gallery. updateStructuralValues(GalleryItem changedGroup, boolean keepLocation)
Recalculate structural values using the group renderer
Gallery and item size will be updated.Constructors in org.eclipse.nebula.widgets.gallery with parameters of type GalleryItem Constructor Description GalleryGroupResizeEffect(GalleryItem item, int src, int dest, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
Set up a new resize effect on a gallery item.GalleryItem(GalleryItem parent, int style)
GalleryItem(GalleryItem parent, int style, int index)
GalleryItem(GalleryItem parent, int style, int index, boolean create)