|
|||||||||||
| 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
com.tensegrity.gui.swt.control.panels.SwtSlidePanelContent
SlidePanelContent
instead
Class SwtSlidePanelContent is a SWT-based Composite
designed to be used as the content for SwtSlidePanel
instances.
Within the Tensegrity Graph Framework, SwtSlidePanelContent instances
are typically used to contain repository items or layout command items.
In order to properly lay out items when they are resized, SwtSlidePanelContent
instances are initialized with a RowLayout.
Two methods are also provided in order to add repository instances of class
).
While one creates the item icon "on the fly " using its associated composite
data , the other method gives the user a chance to set the icon by providing an
image file:
VisualGraphObjectSwtRepositoryItem
REVIEWJAVADOC (SwtSlidePanelContent): Have a look at the sources for the following two methods...which method parameter allows you to set the icon? The parameter named uiMapValue is not even used in the method!!!
addItem(String, String, String, int, int)
addItem(String, String, String, String, Class, int, int)
Notice that by default the background is set to be white.
Please see SwtSlidePanel.setContent(Composite)
for more information.
In order to release the resources allocated by instances of SwtSlidePanelContent
one should call the dispose() method once they are no longer
needed.
VisualGraphObjectSwtRepositoryItem| Field Summary |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
SwtSlidePanelContent(org.eclipse.swt.widgets.Composite parent,
int style,
DragContext dragContext,
int horizontalSpace,
int verticalSpace)
Deprecated. Constructs a new SlideContent instance with the specified parent and style. |
|
| Method Summary | |
AbstractSwtRepositoryItem |
addCommandItem(Command cmd,
java.lang.String tooltip,
java.lang.String uiMapValue,
int iconWidth,
int iconHeight)
Deprecated. Adds the specified repository item to the content. |
AbstractSwtRepositoryItem |
addCommandItem(Command cmd,
java.lang.String tooltip,
java.lang.String uiMapValue,
java.lang.String iconPath,
java.lang.Class resourceClass,
int iconWidth,
int iconHeight)
Deprecated. Adds the specified repository item to the content. |
AbstractSwtRepositoryItem |
addItem(java.lang.String poolElementName,
java.lang.String tooltip,
java.lang.String uiMapValue,
int iconWidth,
int iconHeight)
Deprecated. Adds the specified repository item to the content. |
AbstractSwtRepositoryItem |
addItem(java.lang.String poolElementName,
java.lang.String tooltip,
java.lang.String uiMapValue,
java.lang.String iconPath,
java.lang.Class resourceClass,
int iconWidth,
int iconHeight)
Deprecated. Adds the specified repository item to the content. |
void |
dispose()
Deprecated. |
| 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, setFont, 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, 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 SwtSlidePanelContent(org.eclipse.swt.widgets.Composite parent,
int style,
DragContext dragContext,
int horizontalSpace,
int verticalSpace)
RowLayout.
The passed DragContext will provide the repository items
with all the required information to support drag and drop operations.
parent - a Composite which will be the parent of this instancestyle - describes the appearance and behavior of this instancedragContext - required information for support of drag and drop operationshorizontalSpace - horizontal space for the internal row layoutverticalSpace - vertical space for the internal row layout| Method Detail |
public final AbstractSwtRepositoryItem addItem(java.lang.String poolElementName,
java.lang.String tooltip,
java.lang.String uiMapValue,
int iconWidth,
int iconHeight)
poolElementName - id of the repository item to receive it from the
ElementPooltooltip - a suitable text which describes this itemuiMapValue - the corresponding ui map valueiconWidth - the icon widthiconHeight - the icon height
public final AbstractSwtRepositoryItem addCommandItem(Command cmd,
java.lang.String tooltip,
java.lang.String uiMapValue,
int iconWidth,
int iconHeight)
cmd - the associated Commandtooltip - a suitable text which describes this itemuiMapValue - the corresponding ui map valueiconWidth - the icon widthiconHeight - the icon height
public final AbstractSwtRepositoryItem addItem(java.lang.String poolElementName,
java.lang.String tooltip,
java.lang.String uiMapValue,
java.lang.String iconPath,
java.lang.Class resourceClass,
int iconWidth,
int iconHeight)
poolElementName - id of the repository item to receive it from the
ElementPooltooltip - a suitable text which describes this itemuiMapValue - the corresponding ui map valueiconPath - the path to the iconresourceClass - the resource class for the iconiconWidth - the icon widthiconHeight - the icon height
public final AbstractSwtRepositoryItem addCommandItem(Command cmd,
java.lang.String tooltip,
java.lang.String uiMapValue,
java.lang.String iconPath,
java.lang.Class resourceClass,
int iconWidth,
int iconHeight)
cmd - the associated Commandtooltip - a suitable text which describes this itemuiMapValue - the corresponding ui map valueiconPath - the path to the iconresourceClass - the resource class for the iconiconWidth - the icon widthiconHeight - the icon heightpublic void dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||