com.tensegrity.gui.swt.control
Class ExtendedShell

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 byorg.eclipse.swt.widgets.Canvas
                      extended byorg.eclipse.swt.widgets.Decorations
                          extended byorg.eclipse.swt.widgets.Shell
                              extended bycom.tensegrity.gui.swt.control.ExtendedShell
All Implemented Interfaces:
BasicComponent, org.eclipse.swt.graphics.Drawable, Evaluable, Frame

public class ExtendedShell
extends org.eclipse.swt.widgets.Shell
implements Frame

This class extends the Shell class in order to make it benefit from the Frame interface. Although the SWT API for the Shell class specifies that the class is not intended to be subclassed, this should not be an issue here since none of the Shell class methods are herein overridden. Note that this class provides an empty implementation of the checkSubclass() method. This is required in order to be able to extend the Shell class.

Version:
$Id: ExtendedShell.java,v 1.2 2005/03/23 15:01:26 SebastienGuyon Exp $
Author:
S�bastien Guyon

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
ExtendedShell(org.eclipse.swt.widgets.Display display, int style)
           Initializes this ExtendedShell.
ExtendedShell(org.eclipse.swt.widgets.Shell parent, int style)
           Initializes this ExtendedShell.
 
Method Summary
 void applyEvList()
          Tells the component to apply its UIItemEvaluationList.
protected  void checkSubclass()
          Overwrite with an empty implementation.
 int getHeight()
          Returns the height of the component in pixels.
 BasicComponent getParentComponent()
          Returns the parent Component of this instance.
 int getWidth()
          Returns the width of the component in pixels.
 void installEvList()
          Tells the component to setup its internal state.
 void repaint()
          Triggers a repaint.
 
Methods inherited from class org.eclipse.swt.widgets.Shell
addShellListener, close, dispose, forceActive, getBounds, getEnabled, getImeInputMode, getLocation, getRegion, getShell, getShells, getSize, isEnabled, isVisible, open, removeShellListener, setActive, setEnabled, setImeInputMode, setRegion, setVisible, win32_new
 
Methods inherited from class org.eclipse.swt.widgets.Decorations
computeTrim, getClientArea, getDefaultButton, getImage, getImages, getMaximized, getMenuBar, getMinimized, getText, isReparentable, setDefaultButton, setImage, setImages, setMaximized, setMenuBar, setMinimized, setText
 
Methods inherited from class org.eclipse.swt.widgets.Canvas
getCaret, scroll, setCaret, setFont
 
Methods inherited from class org.eclipse.swt.widgets.Composite
computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
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, getFont, getForeground, getLayoutData, getMenu, getMonitor, getParent, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isFocusControl, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, 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

ExtendedShell

public ExtendedShell(org.eclipse.swt.widgets.Display display,
                     int style)

Initializes this ExtendedShell. Please refer to the documentation of Shell.Shell(org.eclipse.swt.widgets.Display, int) for more information. This constructor does nothing but forwarding the call to the super class.

Parameters:
display - the display to create the shell on
style - the style of control to construct

ExtendedShell

public ExtendedShell(org.eclipse.swt.widgets.Shell parent,
                     int style)

Initializes this ExtendedShell. Please refer to the documentation of Shell.Shell(org.eclipse.swt.widgets.Shell, int) for more information. This constructor does nothing but forwarding the call to the super class.

Parameters:
parent - a shell which will be the parent of the new instance
style - the style of control to construct
Method Detail

getHeight

public int getHeight()
Description copied from interface: BasicComponent
Returns the height of the component in pixels.

Specified by:
getHeight in interface BasicComponent
Returns:
the height of the component in pixels.

getParentComponent

public BasicComponent getParentComponent()
Description copied from interface: BasicComponent
Returns the parent Component of this instance.

Specified by:
getParentComponent in interface BasicComponent
Returns:
the parent component or null if no parent exists.

getWidth

public int getWidth()
Description copied from interface: BasicComponent
Returns the width of the component in pixels.

Specified by:
getWidth in interface BasicComponent
Returns:
the width of the component in pixels.

repaint

public void repaint()
Description copied from interface: BasicComponent
Triggers a repaint.

Specified by:
repaint in interface BasicComponent

applyEvList

public void applyEvList()
Description copied from interface: Evaluable
Tells the component to apply its UIItemEvaluationList.

Specified by:
applyEvList in interface Evaluable

installEvList

public void installEvList()
Description copied from interface: Evaluable
Tells the component to setup its internal state.

Specified by:
installEvList in interface Evaluable

checkSubclass

protected void checkSubclass()
Overwrite with an empty implementation.

See Also:
Widget.checkSubclass()


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