|
|||||||||
| 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
org.gudy.azureus2.ui.swt.twistie.TwistieLabel
public class TwistieLabel
A Label with a twistie graphic at the beginning; every time this label is clicked the twistie graphic toggles between pointing to the right and pointing down.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
view |
| Fields inherited from interface org.gudy.azureus2.ui.swt.twistie.ITwistieConstants |
|---|
NONE, SHOW_DESCRIPTION, SHOW_EXPANDED, SHOW_SEPARATOR |
| Constructor Summary | |
|---|---|
TwistieLabel(org.eclipse.swt.widgets.Composite parent,
int style)
Create a twistie Label with the given style bit. |
|
| Method Summary | |
|---|---|
void |
addMouseListener(org.eclipse.swt.events.MouseListener listener)
Add a mouse listener to the control and also the titleLabel |
void |
addTwistieListener(ITwistieListener listener)
Add a listener to be notified whenever this control is collapsed or expanded; listeners can check the collapsed/expanded state on the control and perform layout changes if need be. |
boolean |
isCollapsed()
Returns whether this control is in a collapsed state |
void |
removeMouseListener(org.eclipse.swt.events.MouseListener listener)
Remove the mouse listener from the control and also the titleLabel |
void |
removeTwistieListener(ITwistieListener listener)
|
void |
setBackground(org.eclipse.swt.graphics.Color color)
Sets the background color for the control and also all the text-base children |
void |
setCollapsed(boolean c)
|
void |
setDescription(java.lang.String string)
Sets the text to display as the description; this is not in effect unless the ITwistieConstants.SHOW_DESCRIPTION flag is also set |
void |
setEnabled(boolean enabled)
Sets the enablement for the control and also all the text-base children |
void |
setForeground(org.eclipse.swt.graphics.Color color)
Sets the foreground color for the control and also all the text-base children |
void |
setTitle(java.lang.String string)
Sets the text to display as the title |
void |
setToolTipText(java.lang.String string)
Sets the tooltip for the control and also all the text-base children |
void |
setTwistieForeground(org.eclipse.swt.graphics.Color color)
Sets the color to be used for drawing the twistie graphic |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setFont, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TwistieLabel(org.eclipse.swt.widgets.Composite parent,
int style)
Style bit can be one or more of:
parent - style - | Method Detail |
|---|
public void addMouseListener(org.eclipse.swt.events.MouseListener listener)
titleLabel
addMouseListener in class org.eclipse.swt.widgets.Controlpublic void removeMouseListener(org.eclipse.swt.events.MouseListener listener)
titleLabel
removeMouseListener in class org.eclipse.swt.widgets.Controlpublic void setTwistieForeground(org.eclipse.swt.graphics.Color color)
color - public void setForeground(org.eclipse.swt.graphics.Color color)
setForeground in class org.eclipse.swt.widgets.Controlpublic void setBackground(org.eclipse.swt.graphics.Color color)
setBackground in class org.eclipse.swt.widgets.Controlpublic void setTitle(java.lang.String string)
string - public void setDescription(java.lang.String string)
ITwistieConstants.SHOW_DESCRIPTION flag is also set
string - public void setToolTipText(java.lang.String string)
setToolTipText in class org.eclipse.swt.widgets.Controlpublic void setEnabled(boolean enabled)
setEnabled in class org.eclipse.swt.widgets.Controlpublic boolean isCollapsed()
public void setCollapsed(boolean c)
public void addTwistieListener(ITwistieListener listener)
listener - public void removeTwistieListener(ITwistieListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||