com.tensegrity.gui.swt.control.panels
Class SwtSlidePanelContent

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Scrollable
              extended byorg.eclipse.swt.widgets.Composite
                  extended bycom.tensegrity.gui.swt.control.panels.SwtSlidePanelContent
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

Deprecated. please use SlidePanelContent instead

public class SwtSlidePanelContent
extends org.eclipse.swt.widgets.Composite

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 VisualGraphObjectSwtRepositoryItem). 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:

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.

Version:
$Id: SwtSlidePanelContent.java,v 1.5 2005/11/02 16:25:43 KevinCVS Exp $
Author:
Arnd Houben, S�bastien Guyon
See Also:
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

SwtSlidePanelContent

public 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. Instance are initialized with a RowLayout. The passed DragContext will provide the repository items with all the required information to support drag and drop operations.

Parameters:
parent - a Composite which will be the parent of this instance
style - describes the appearance and behavior of this instance
dragContext - required information for support of drag and drop operations
horizontalSpace - horizontal space for the internal row layout
verticalSpace - vertical space for the internal row layout
Method Detail

addItem

public final 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.

Parameters:
poolElementName - id of the repository item to receive it from the ElementPool
tooltip - a suitable text which describes this item
uiMapValue - the corresponding ui map value
iconWidth - the icon width
iconHeight - the icon height

Find more information in the class documentation


addCommandItem

public final 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.

Parameters:
cmd - the associated Command
tooltip - a suitable text which describes this item
uiMapValue - the corresponding ui map value
iconWidth - the icon width
iconHeight - the icon height

addItem

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)
Deprecated. 
Adds the specified repository item to the content.

Parameters:
poolElementName - id of the repository item to receive it from the ElementPool
tooltip - a suitable text which describes this item
uiMapValue - the corresponding ui map value
iconPath - the path to the icon
resourceClass - the resource class for the icon
iconWidth - the icon width
iconHeight - the icon height

Find more information in the class documentation


addCommandItem

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)
Deprecated. 
Adds the specified repository item to the content.

Parameters:
cmd - the associated Command
tooltip - a suitable text which describes this item
uiMapValue - the corresponding ui map value
iconPath - the path to the icon
resourceClass - the resource class for the icon
iconWidth - the icon width
iconHeight - the icon height

dispose

public void dispose()
Deprecated. 


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.