Package org.eclipse.nebula.widgets.tiles
Class Tiles<T>
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
org.eclipse.nebula.widgets.tiles.Tiles<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
public class Tiles<T>
extends org.eclipse.swt.widgets.Canvas
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Tiles(org.eclipse.swt.widgets.Composite parent, int style)
Creates a new instance -
Method Summary
Modifier and Type Method Description void
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds a selection listenerTileAnimationSettings
getAnimationSettings()
Returns the settingsjava.util.Comparator<T>
getComparator()
Returns the comparatorDecoratorColor<T>
getDecoratorBackgroundColor()
Returns a decoratorDecoratorColor<T>
getDecoratorForegroundColor()
Returns a decoratorDecoratorString<T>
getDecoratorLabel()
Returns a decoratorDecoratorColor<T>
getDecoratorLineColor()
Returns a decoratorDecoratorInteger<T>
getDecoratorLineStyle()
Returns a decoratorDecoratorInteger<T>
getDecoratorLineWidth()
Returns a decoratorFilter<T>
getFilter()
Returns the filterjava.util.List<T>
getItems()
Returns the items displayed by this widgetT
getSelectedItem()
Returns the selected itemprotected void
removeFrame()
Removes the current framevoid
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes a selection listenervoid
setAnimationSettings(TileAnimationSettings settings)
Sets the settingsvoid
setBackground(org.eclipse.swt.graphics.Color arg0)
void
setComparator(java.util.Comparator<T> Comparator)
Sets an Comparatorvoid
setDecoratorBackgroundColor(DecoratorColor<T> decorator)
Sets a decoratorvoid
setDecoratorForegroundColor(DecoratorColor<T> decorator)
Sets a decoratorvoid
setDecoratorLabel(DecoratorString<T> decorator)
Sets a decoratorvoid
setDecoratorLineColor(DecoratorColor<T> decorator)
Sets a decoratorvoid
setDecoratorLineStyle(DecoratorInteger<T> decorator)
Sets a decoratorvoid
setDecoratorLineWidth(DecoratorInteger<T> decorator)
Sets a decoratorvoid
setDecoratorTooltip(DecoratorString<T> decorator)
Sets a decoratorvoid
setFilter(Filter<T> filter)
Sets a filtervoid
setItems(java.util.List<T> items)
Adds an itemvoid
setSelectedItem(T item)
Sets the selected itemvoid
setTileLayout(TileLayout layout)
Sets the tile layoutvoid
update()
Updates the tiles.Methods inherited from class org.eclipse.swt.widgets.Canvas
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse
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
-
Constructor Details
-
Tiles
public Tiles(org.eclipse.swt.widgets.Composite parent, int style)Creates a new instance- Parameters:
parent
-style
-
-
-
Method Details
-
addSelectionListener
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)Adds a selection listener- Parameters:
listener
-
-
getAnimationSettings
Returns the settings- Returns:
-
getComparator
Returns the comparator- Returns:
-
getDecoratorBackgroundColor
Returns a decorator- Returns:
-
getDecoratorForegroundColor
Returns a decorator- Returns:
-
getDecoratorLabel
Returns a decorator- Returns:
-
getDecoratorLineColor
Returns a decorator- Returns:
-
getDecoratorLineStyle
Returns a decorator- Returns:
-
getDecoratorLineWidth
Returns a decorator- Returns:
-
getFilter
Returns the filter- Returns:
-
getItems
Returns the items displayed by this widget- Returns:
-
getSelectedItem
Returns the selected item- Returns:
-
removeSelectionListener
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)Removes a selection listener- Parameters:
listener
-
-
setAnimationSettings
Sets the settings -
setBackground
public void setBackground(org.eclipse.swt.graphics.Color arg0)- Overrides:
setBackground
in classorg.eclipse.swt.widgets.Control
-
setComparator
Sets an Comparator- Parameters:
Comparator
-
-
setDecoratorBackgroundColor
Sets a decorator- Parameters:
decorator
-
-
setDecoratorForegroundColor
Sets a decorator- Parameters:
decorator
-
-
setDecoratorLabel
Sets a decorator- Parameters:
decorator
-
-
setDecoratorLineColor
Sets a decorator- Parameters:
decorator
-
-
setDecoratorLineStyle
Sets a decorator- Parameters:
decorator
-
-
setDecoratorLineWidth
Sets a decorator- Parameters:
decorator
-
-
setDecoratorTooltip
Sets a decorator- Parameters:
decorator
-
-
setFilter
Sets a filter- Parameters:
filter
-
-
setSelectedItem
Sets the selected item -
setItems
Adds an item- Parameters:
t
-
-
setTileLayout
Sets the tile layout- Parameters:
width
-
-
update
public void update()Updates the tiles. TODO: Good to override?- Overrides:
update
in classorg.eclipse.swt.widgets.Control
-
removeFrame
protected void removeFrame()Removes the current frame
-