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

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

Deprecated. please use SlidePanel

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

Class SwtSlidePanel is the SWT-based implementation of a gui container responsible for displaying several child containers. These child containers are added within a so-called slide, which can be resized, expanded and collapsed.

The parent SWT-based class org.eclipse.swt.widgets.Composite is ultimately responsible for the correct layout. Therefore, it is usually a good idea for the parent to register itself as a SlideListener and adjust its layout after receiving expand and collapse events.

Version:
$Id: SwtSlidePanel.java,v 1.31 2005/11/02 16:20:44 KevinCVS Exp $
Author:
Arnd Houben

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
SwtSlidePanel(org.eclipse.swt.widgets.Composite parent, int style, java.lang.String title, boolean closeButton)
          Deprecated. REVIEWJAVADOC : (SwtSlidePanel.java) I started to correct this javadoc but realized I don't get the bit about the "already localized" title.
 
Method Summary
 void addSlidePanelListener(SlidePanelListener sl)
          Deprecated. Adds the listener to the list of listeners who will be notified when the SwtSlidePanel is expanded or collapsed
 org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
          Deprecated.  
 void dispose()
          Deprecated.  
 org.eclipse.swt.graphics.Color getControllerBackground()
          Deprecated.  Returns the background color of the slide panel controller bar
 org.eclipse.swt.graphics.Color getControllerForeground()
          Deprecated.  Returns the foreground color of the slide panel controller bar
 org.eclipse.swt.widgets.Composite getSlideContent()
          Deprecated. Returns the currently slide content
 java.util.List getSlidePanelListeners()
          Deprecated.  Returns the list of registered SlidePanelListeners
 java.lang.String getTitle()
          Deprecated. Returns the title of this control
 void hideContent()
          Deprecated. By default the slide content is visible.
 void removeSlidePanelListener(SlidePanelListener sl)
          Deprecated. Removes the listener from the list of listeners who will be notified when the SwtSlidePanel is expanded or collapsed
 void setContent(org.eclipse.swt.widgets.Composite contentPanel)
          Deprecated.  Sets the content panel which should be slided.
 void setControllerBackground(org.eclipse.swt.graphics.Color color)
          Deprecated. Sets the background color of the slide panel controller bar
 void setControllerForeground(org.eclipse.swt.graphics.Color color)
          Deprecated. Sets the foreground color of the slide panel controller bar
 void setText(java.lang.String title)
          Deprecated. Sets the title of the slide controller to the specified one.
 
Methods inherited from class org.eclipse.swt.widgets.Composite
checkSubclass, 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

SwtSlidePanel

public SwtSlidePanel(org.eclipse.swt.widgets.Composite parent,
                     int style,
                     java.lang.String title,
                     boolean closeButton)
Deprecated. 
REVIEWJAVADOC : (SwtSlidePanel.java) I started to correct this javadoc but realized I don't get the bit about the "already localized" title. Also, where are the styles documented? This SwtSlidePanel constructor requires a Composite parent and style since a SwtSlidePanel is a SWT Composite and an "already localized" title. The last parameter indicates whether or not the SwtSlidePanel can be closed. Note that the parent composite is responsible for the correct layout. I.e. it is usually a good idea for the parent to register itself as a SlidePanelListener and adjust its layout on expand and collapse events.

Parameters:
parent - a composite which is the parent of this control
style - the style of this control
title - the displayed title, it should describe the content
closeButton - set to true if the slide panel should have a close button and to false otherwise

Find more information in the class documentation

Method Detail

setText

public void setText(java.lang.String title)
Deprecated. 
Sets the title of the slide controller to the specified one.

Parameters:
title - the new slide controller title

dispose

public void dispose()
Deprecated. 

setControllerForeground

public final void setControllerForeground(org.eclipse.swt.graphics.Color color)
Deprecated. 
Sets the foreground color of the slide panel controller bar

Parameters:
color - the new foreground color

setControllerBackground

public final void setControllerBackground(org.eclipse.swt.graphics.Color color)
Deprecated. 
Sets the background color of the slide panel controller bar

Parameters:
color - the new background color

getControllerForeground

public final org.eclipse.swt.graphics.Color getControllerForeground()
Deprecated. 

Returns the foreground color of the slide panel controller bar

Returns:
the foreground color of the slide panel controller bar

getControllerBackground

public final org.eclipse.swt.graphics.Color getControllerBackground()
Deprecated. 

Returns the background color of the slide panel controller bar

Returns:
the background color of the slide panel controller bar

setContent

public final void setContent(org.eclipse.swt.widgets.Composite contentPanel)
Deprecated. 

Sets the content panel which should be slided. By default it will be visible at start. If you prefer to hide it, call hideContent


NOTE: the parent composite of the given contentPanel MUST be this SwtSlidePanel. Otherwise this method has no effect and you will see only the slide controller bar.

Parameters:
contentPanel - the content of slide panel

hideContent

public final void hideContent()
Deprecated. 
By default the slide content is visible. To hide it just call this method before showing this widget.


getTitle

public final java.lang.String getTitle()
Deprecated. 
Returns the title of this control

Returns:
control's title

computeSize

public org.eclipse.swt.graphics.Point computeSize(int wHint,
                                                  int hHint,
                                                  boolean changed)
Deprecated. 

addSlidePanelListener

public final void addSlidePanelListener(SlidePanelListener sl)
Deprecated. 
Adds the listener to the list of listeners who will be notified when the SwtSlidePanel is expanded or collapsed

Parameters:
sl - the listener which should be notified

removeSlidePanelListener

public final void removeSlidePanelListener(SlidePanelListener sl)
Deprecated. 
Removes the listener from the list of listeners who will be notified when the SwtSlidePanel is expanded or collapsed

Parameters:
sl - the listener which should be removed

getSlidePanelListeners

public final java.util.List getSlidePanelListeners()
Deprecated. 

Returns the list of registered SlidePanelListeners

Returns:
the list of registered SlidePanelListeners

getSlideContent

public org.eclipse.swt.widgets.Composite getSlideContent()
Deprecated. 
Returns the currently slide content

Returns:
a Composite containing the slide content


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