com.tensegrity.skeleton.container.swt
Class SwtRepositoryContent

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.skeleton.container.swt.SwtRepositoryContent
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

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

TODO: DOCUMENT ME

Version:
$Id: SwtRepositoryContent.java,v 1.4 2005/10/21 15:09:19 ArndHouben Exp $
Author:
S�bastion Guyon, ArndHouben

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
SwtRepositoryContent(org.eclipse.swt.widgets.Composite parent, DragContext dragContext)
          Creates a new SwtRepositoryContent
 
Method Summary
 AbstractSwtRepositoryItem addCommandItem(Command cmd, java.lang.String tooltip, org.eclipse.swt.graphics.Point iconSize)
          Adds the specified repository item to the content.
 AbstractSwtRepositoryItem addCommandItem(Command cmd, java.lang.String tooltip, java.lang.String iconPath, java.lang.Class resourceClass, org.eclipse.swt.graphics.Point iconSize)
          Adds the specified repository item to the content.
 AbstractSwtRepositoryItem addItem(java.lang.String poolElementName, java.lang.String tooltip, org.eclipse.swt.graphics.Point iconSize)
          Adds the specified repository item to the content.
 AbstractSwtRepositoryItem addItem(java.lang.String poolElementName, java.lang.String tooltip, java.lang.String iconPath, java.lang.Class resourceClass, org.eclipse.swt.graphics.Point iconSize)
          Adds the specified repository item to the content.
 void dispose()
           
 DragContext getDragContext()
          Returns the used DragContext
 
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

SwtRepositoryContent

public SwtRepositoryContent(org.eclipse.swt.widgets.Composite parent,
                            DragContext dragContext)
Creates a new SwtRepositoryContent

Parameters:
parent - the parent Composite to add this repository to
dragContext - the DragContext to use
Method Detail

getDragContext

public final DragContext getDragContext()
Returns the used DragContext

Returns:
the internally used DragContext

addItem

public final AbstractSwtRepositoryItem addItem(java.lang.String poolElementName,
                                               java.lang.String tooltip,
                                               org.eclipse.swt.graphics.Point iconSize)
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
iconSize - the width and height of the icon
Returns:
the newly created repository item

addCommandItem

public final AbstractSwtRepositoryItem addCommandItem(Command cmd,
                                                      java.lang.String tooltip,
                                                      org.eclipse.swt.graphics.Point iconSize)
Adds the specified repository item to the content.

Parameters:
cmd - the associated Command
tooltip - a suitable text which describes this item
iconSize - the width and height of the icon
Returns:
the newly created repository item

addItem

public final AbstractSwtRepositoryItem addItem(java.lang.String poolElementName,
                                               java.lang.String tooltip,
                                               java.lang.String iconPath,
                                               java.lang.Class resourceClass,
                                               org.eclipse.swt.graphics.Point iconSize)
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
iconPath - the path to the icon
resourceClass - the resource class for the icon
iconSize - the width and height of the icon
Returns:
the newly created repository item

addCommandItem

public final AbstractSwtRepositoryItem addCommandItem(Command cmd,
                                                      java.lang.String tooltip,
                                                      java.lang.String iconPath,
                                                      java.lang.Class resourceClass,
                                                      org.eclipse.swt.graphics.Point iconSize)
Adds the specified repository item to the content.

Parameters:
cmd - the associated Command
tooltip - a suitable text which describes this item
iconPath - the path to the icon
resourceClass - the resource class for the icon
iconSize - the width and height of the icon
Returns:
the newly created repository item

dispose

public void dispose()


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