|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.tensegrity.gui.swt.control.panels.SwtSlidePanel
SlidePanel
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.
| 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 |
public SwtSlidePanel(org.eclipse.swt.widgets.Composite parent,
int style,
java.lang.String title,
boolean closeButton)
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.
parent - a composite which is the parent of this controlstyle - the style of this controltitle - the displayed title, it should describe the contentcloseButton - set to true if the slide panel should have a close
button and to false otherwise| Method Detail |
public void setText(java.lang.String title)
title - the new slide controller titlepublic void dispose()
public final void setControllerForeground(org.eclipse.swt.graphics.Color color)
color - the new foreground colorpublic final void setControllerBackground(org.eclipse.swt.graphics.Color color)
color - the new background colorpublic final org.eclipse.swt.graphics.Color getControllerForeground()
Returns the foreground color of the slide panel controller bar
public final org.eclipse.swt.graphics.Color getControllerBackground()
Returns the background color of the slide panel controller bar
public final void setContent(org.eclipse.swt.widgets.Composite contentPanel)
Sets the content panel which should be slided. By default it will be
visible at start. If you prefer to hide it, call hideContent
contentPanel - the content of slide panelpublic final void hideContent()
public final java.lang.String getTitle()
public org.eclipse.swt.graphics.Point computeSize(int wHint,
int hHint,
boolean changed)
public final void addSlidePanelListener(SlidePanelListener sl)
sl - the listener which should be notifiedpublic final void removeSlidePanelListener(SlidePanelListener sl)
sl - the listener which should be removedpublic final java.util.List getSlidePanelListeners()
Returns the list of registered SlidePanelListeners
SlidePanelListenerspublic org.eclipse.swt.widgets.Composite getSlideContent()
Composite containing the slide content
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||