com.tensegrity.gui.swt.repository
Class SwtRepositoryItemPanel

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.repository.SwtRepositoryItemPanel
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

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

TODO SG: Comment

Version:
$Id: SwtRepositoryItemPanel.java,v 1.13 2006/03/02 11:42:01 BurkhardWick Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
SwtRepositoryItemPanel(org.eclipse.swt.widgets.Composite mainContainer)
           Initializes a repository item panel in an swt context with 4 columns.
SwtRepositoryItemPanel(int initialColumns, org.eclipse.swt.widgets.Composite mainContainer)
           Initializes a repository item panel in an swt context with initialColumns columns, 0 horizontal gap, 0 vertical gap, and 32 by 32 icon size.
SwtRepositoryItemPanel(int horizontalgap, int verticalgap, org.eclipse.swt.widgets.Composite mainContainer)
           Initializes a repository item panel in an swt context with 4 columns, horizontalgap horizontal gap, verticalgap vertical gap, and 32 by 32 icon size.
SwtRepositoryItemPanel(int initialColumns, int horizontalgap, int verticalgap, int iconwidth, int iconheight, org.eclipse.swt.widgets.Composite mainContainer)
           Initializes a repository item panel in an swt context with initialColumns columns, horizontalgap horizontal gap, verticalgap vertical gap, and iconwidth by iconheight icon size.
 
Method Summary
 boolean addControl(org.eclipse.swt.widgets.Control control)
           TODO SG: Comment method
 void dispose()
           
 void setHorizontalSpacing(int hSpacing)
          Sets the horizontal spacing between the items
 void setItemHeight(int height)
          Sets the height of the items in this panel.
 void setItemWidth(int width)
          Sets the width of the items in this panel.
 void setVerticalSpacing(int vSpacing)
          Sets the vertical spacing between the items
 
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

SwtRepositoryItemPanel

public SwtRepositoryItemPanel(org.eclipse.swt.widgets.Composite mainContainer)

Initializes a repository item panel in an swt context with 4 columns.

Parameters:
mainContainer - This panel's parent container.
See Also:
SwtRepositoryItemPanel(int, Composite)

SwtRepositoryItemPanel

public SwtRepositoryItemPanel(int initialColumns,
                              org.eclipse.swt.widgets.Composite mainContainer)

Initializes a repository item panel in an swt context with initialColumns columns, 0 horizontal gap, 0 vertical gap, and 32 by 32 icon size.

Parameters:
initialColumns - number of initialcolumns.
mainContainer - This panel's parent container.
See Also:
SwtRepositoryItemPanel(int, int, int, int, int, Composite)

SwtRepositoryItemPanel

public SwtRepositoryItemPanel(int horizontalgap,
                              int verticalgap,
                              org.eclipse.swt.widgets.Composite mainContainer)

Initializes a repository item panel in an swt context with 4 columns, horizontalgap horizontal gap, verticalgap vertical gap, and 32 by 32 icon size.

Parameters:
horizontalgap - the horizontal gap between the icons.
verticalgap - the vertical gap between the icons.
mainContainer - This panel's parent container.
See Also:
SwtRepositoryItemPanel(int, int, int, int, int, Composite)

SwtRepositoryItemPanel

public SwtRepositoryItemPanel(int initialColumns,
                              int horizontalgap,
                              int verticalgap,
                              int iconwidth,
                              int iconheight,
                              org.eclipse.swt.widgets.Composite mainContainer)

Initializes a repository item panel in an swt context with initialColumns columns, horizontalgap horizontal gap, verticalgap vertical gap, and iconwidth by iconheight icon size.

Parameters:
initialColumns - number of initialcolumns.
horizontalgap - the horizontal gap between the icons.
verticalgap - the vertical gap between the icons.
iconwidth - the reference iconwidth
iconheight - the reference iconheight
mainContainer - This panel's parent container.
Method Detail

addControl

public boolean addControl(org.eclipse.swt.widgets.Control control)

TODO SG: Comment method

Returns:

dispose

public void dispose()
See Also:
Widget.dispose()

setHorizontalSpacing

public void setHorizontalSpacing(int hSpacing)
Sets the horizontal spacing between the items

Parameters:
hSpacing - the horizontal spacing between the items

setVerticalSpacing

public void setVerticalSpacing(int vSpacing)
Sets the vertical spacing between the items

Parameters:
vSpacing - the vertical spacing between the items

setItemWidth

public void setItemWidth(int width)
Sets the width of the items in this panel.

Parameters:
width - the width of the items in this panel.

setItemHeight

public void setItemHeight(int height)
Sets the height of the items in this panel.

Parameters:
height - the height of the items in this panel.


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