com.tensegrity.skeleton.container.swt
Class SwtLayoutToolsContainer

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.swt.container.AbstractSwtToolContainer
                      extended bycom.tensegrity.skeleton.container.swt.SwtLayoutToolsContainer
All Implemented Interfaces:
Container, org.eclipse.swt.graphics.Drawable, LayoutToolsContainer, ToolContainer

public class SwtLayoutToolsContainer
extends AbstractSwtToolContainer
implements LayoutToolsContainer

This is the SWT implementation of the LayoutToolsContainer interface.

This Composite is initialized in the init() method with a GridLayout.

It is important to notice that since no assumption can be made upon which type of Layout is set on the parent of this AbstractSwtToolContainer, it is the caller's responsability to set its layout data.

Refer to the dispose() method for more information.

Version:
$Id: SwtLayoutToolsContainer.java,v 1.6 2005/09/27 14:27:37 ArndHouben Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class com.tensegrity.skeleton.swt.container.AbstractSwtToolContainer
isSelected
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
SwtLayoutToolsContainer(ApplicationFrame applicationFrame, org.eclipse.swt.widgets.Composite parent, int style)
           This constructor simply forwards its call to the constructor of the parent class.
 
Method Summary
 void dispose()
           
 java.lang.String getName()
          A container has a name.
 void init()
          Subclasses implement this method to start their initialization code.
 void setName(java.lang.String s)
          Sets the name of this container.
 
Methods inherited from class com.tensegrity.skeleton.swt.container.AbstractSwtToolContainer
getApplicationFrame, getHeight, getUiManager, getWidth, repaint, setSelected, setUiManager
 
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
 
Methods inherited from interface com.tensegrity.gui.container.Container
getApplicationFrame, setSelected
 

Constructor Detail

SwtLayoutToolsContainer

public SwtLayoutToolsContainer(ApplicationFrame applicationFrame,
                               org.eclipse.swt.widgets.Composite parent,
                               int style)

This constructor simply forwards its call to the constructor of the parent class.

Parameters:
applicationFrame - Enclosing ApplicationFrame
parent - a widget which will be the parent of the new instance (cannot be null)
style - the style of widget to construct
Method Detail

init

public void init()
Description copied from class: AbstractSwtToolContainer
Subclasses implement this method to start their initialization code. This method is called from within the constructor of this class.

Specified by:
init in class AbstractSwtToolContainer

getName

public java.lang.String getName()
Description copied from interface: Container
A container has a name. This name can be used for title elements, menu entries or within any other component which refers to this container.

Specified by:
getName in interface Container
Returns:
the name of the container.

setName

public void setName(java.lang.String s)
Description copied from interface: Container
Sets the name of this container.

Specified by:
setName in interface Container
Specified by:
setName in class AbstractSwtToolContainer
Parameters:
s - the new name for this container.

dispose

public void dispose()


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