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.
|
Modifier and Type | Field and Description |
---|---|
protected GalleryItem |
GalleryViewerRow.item |
Modifier and Type | Method and Description |
---|---|
void |
GalleryViewerRow.setItem(GalleryItem item) |
Constructor and Description |
---|
GalleryViewerRow(GalleryItem item)
Constructs a ViewerRow adapter for a GalleryItem.
|
Modifier and Type | Field and Description |
---|---|
(package private) GalleryItem |
GalleryGroupResizeEffect.item |
protected GalleryItem[] |
GalleryItem.items
Children of this item.
|
(package private) GalleryItem[] |
Gallery.items |
protected GalleryItem |
Gallery.lastSingleClick
Keeps track of the last selected item.
|
Modifier and Type | Method and Description |
---|---|
protected GalleryItem |
Gallery._getItem(GalleryItem parent,
int index)
This method is used by items to implement getItem( index )
|
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. |
GalleryItem |
Gallery.getGroup(org.eclipse.swt.graphics.Point coords)
Get group at pixel position (relative to client area).
|
GalleryItem |
NoGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
GalleryItem |
DefaultGalleryGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
GalleryItem |
AbstractGridGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
abstract GalleryItem |
AbstractGalleryGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords)
Returns the item at coords relative to the parent group.
|
protected GalleryItem |
AbstractGridGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords,
int offsetY)
Get item at pixel position
|
GalleryItem |
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 |
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 position
|
GalleryItem[] |
GalleryItem.getItems() |
GalleryItem[] |
Gallery.getItems() |
GalleryItem |
AbstractGridGroupRenderer.getNextItem(GalleryItem item,
int key) |
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 pressed
|
GalleryItem |
GalleryItem.getParentItem() |
GalleryItem[] |
Gallery.getSelection() |
Modifier and Type | Method and Description |
---|---|
protected void |
GalleryItem._addSelection(GalleryItem item) |
protected void |
Gallery._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 Item
|
protected int |
Gallery._indexOf(GalleryItem parentItem,
GalleryItem item)
Returns the index of a GalleryItem when it is not a root Item
|
protected 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 |
GalleryItem.addItem(GalleryItem item,
int position) |
protected void |
Gallery.addItem(GalleryItem item,
int position) |
void |
ListItemRenderer.draw(org.eclipse.swt.graphics.GC gc,
GalleryItem item,
int index,
int x,
int y,
int width,
int height) |
void |
DefaultGalleryItemRenderer.draw(org.eclipse.swt.graphics.GC gc,
GalleryItem item,
int index,
int x,
int y,
int width,
int height) |
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 |
NoGroupRenderer.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 |
AbstractGridGroupRenderer.draw(org.eclipse.swt.graphics.GC gc,
GalleryItem group,
int x,
int y,
int clipX,
int clipY,
int clipWidth,
int clipHeight) |
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.
|
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 |
DefaultGalleryGroupRenderer.drawItem(org.eclipse.swt.graphics.GC gc,
int index,
boolean selected,
GalleryItem parent,
int offsetY) |
protected void |
AbstractGridGroupRenderer.drawItem(org.eclipse.swt.graphics.GC gc,
int index,
boolean selected,
GalleryItem parent,
int offsetY)
Draw a child item.
|
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.Color |
AbstractGalleryGroupRenderer.getBackground(GalleryItem item)
Returns item background color.
|
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.Font |
AbstractGalleryGroupRenderer.getFont(GalleryItem item)
Returns item font.
|
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 org.eclipse.swt.graphics.Color |
AbstractGalleryGroupRenderer.getForeground(GalleryItem item)
Returns item foreground color.
|
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.
|
GalleryItem |
NoGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
GalleryItem |
DefaultGalleryGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
GalleryItem |
AbstractGridGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords) |
abstract GalleryItem |
AbstractGalleryGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords)
Returns the item at coords relative to the parent group.
|
protected GalleryItem |
AbstractGridGroupRenderer.getItem(GalleryItem group,
org.eclipse.swt.graphics.Point coords,
int offsetY)
Get item at pixel position
|
protected org.eclipse.swt.graphics.Point |
AbstractGridGroupRenderer.getLayoutData(GalleryItem item) |
GalleryItem |
AbstractGridGroupRenderer.getNextItem(GalleryItem item,
int key) |
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 pressed
|
org.eclipse.swt.graphics.Rectangle |
NoGroupRenderer.getSize(GalleryItem item) |
org.eclipse.swt.graphics.Rectangle |
DefaultGalleryGroupRenderer.getSize(GalleryItem item) |
org.eclipse.swt.graphics.Rectangle |
AbstractGridGroupRenderer.getSize(GalleryItem item) |
abstract org.eclipse.swt.graphics.Rectangle |
AbstractGalleryGroupRenderer.getSize(GalleryItem item)
Returns the size of a group.
|
protected org.eclipse.swt.graphics.Rectangle |
AbstractGridGroupRenderer.getSize(GalleryItem item,
int offsetY) |
protected int[] |
AbstractGridGroupRenderer.getVisibleItems(GalleryItem group,
int x,
int y,
int clipX,
int clipY,
int clipWidth,
int clipHeight,
int offset) |
int |
GalleryItem.indexOf(GalleryItem childItem)
Returns the index of childItem within this item or -1 if childItem is not
found.
|
int |
Gallery.indexOf(GalleryItem item)
Returns the index of a GalleryItem.
|
protected boolean |
DefaultGalleryGroupRenderer.isGroupExpanded(GalleryItem item) |
protected boolean |
AbstractGridGroupRenderer.isGroupExpanded(GalleryItem item)
Return item expand state (item.isExpanded()) Returns always true is
alwaysExpanded is set to true.
|
protected boolean |
GalleryItem.isSelected(GalleryItem item) |
protected boolean |
Gallery.isSelected(GalleryItem item) |
void |
NoGroupRenderer.layout(org.eclipse.swt.graphics.GC gc,
GalleryItem group) |
void |
DefaultGalleryGroupRenderer.layout(org.eclipse.swt.graphics.GC gc,
GalleryItem group) |
void |
AbstractGridGroupRenderer.layout(org.eclipse.swt.graphics.GC gc,
GalleryItem group) |
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.
|
boolean |
NoGroupRenderer.mouseDown(GalleryItem group,
org.eclipse.swt.widgets.Event e,
org.eclipse.swt.graphics.Point coords) |
boolean |
DefaultGalleryGroupRenderer.mouseDown(GalleryItem group,
org.eclipse.swt.widgets.Event e,
org.eclipse.swt.graphics.Point coords) |
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) |
protected void |
Gallery.notifySelectionListeners(GalleryItem item,
int index,
boolean isDefault)
Send a selection event for a gallery item
|
protected 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 |
GalleryItem.remove(GalleryItem item) |
void |
Gallery.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 status
|
void |
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. |
Constructor and 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) |