|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Canvas
com.tensegrity.gui.swt.control.multiselect.SelectionBox
com.tensegrity.gui.swt.control.multiselect.PatternSelectionBox
A selection box for displaying and choosing patterns.
Each pattern is created by the createControl(Composite, Object)
method.
An example of the usage of a PatternSelectionBox can be found in
PaintItemDialog
| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
PatternSelectionBox(org.eclipse.swt.widgets.Composite parent,
int style,
int columns)
Constructor where you can specify the amount of used columns for displaying the available patterns. |
|
| Method Summary | |
protected org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent,
java.lang.Object item)
Returns a suitable control widget to display the given item object. |
java.lang.Object |
getSelection()
Returns the selected item. |
protected void |
setSelection(org.eclipse.swt.widgets.Control control)
Sets the selected control object. |
void |
updateItem(int index,
org.eclipse.swt.graphics.RGB backColor,
org.eclipse.swt.graphics.RGB foreColor)
Update the pattern at the given index with the specified colors. |
| Methods inherited from class com.tensegrity.gui.swt.control.multiselect.SelectionBox |
addItem, addItems, addSelectionListener, mouseDoubleClick, mouseDown, mouseUp, removeSelectionListener |
| Methods inherited from class org.eclipse.swt.widgets.Canvas |
getCaret, scroll, setCaret, setFont |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PatternSelectionBox(org.eclipse.swt.widgets.Composite parent,
int style,
int columns)
parent - Composite to add this PatternSelectionBox tostyle - the style of this SelectionBoxcolumns - amount of columns to use for displaying patterns| Method Detail |
protected org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent,
java.lang.Object item)
SelectionBox
createControl in class SelectionBoxprotected void setSelection(org.eclipse.swt.widgets.Control control)
SelectionBox
setSelection in class SelectionBoxcontrol - the selected control widgetpublic java.lang.Object getSelection()
SelectionBox
getSelection in class SelectionBox
public final void updateItem(int index,
org.eclipse.swt.graphics.RGB backColor,
org.eclipse.swt.graphics.RGB foreColor)
index - the pattern index within the selection boxbackColor - the pattern's background colorforeColor - the pattern's foreground color
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||