public class Twistie extends ToggleHyperlink
The control is rendered as a triangle that points to the right in the collapsed and down in the expanded state. Triangle color can be changed.
TreeNodehover, innerHeight, innerWidthmarginHeight, marginWidth| Constructor and Description |
|---|
Twistie(Composite parent,
int style)
Creates a control in a provided composite.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
paintHyperlink(GC gc)
Paints the hyperlink as a reaction to the provided paint event.
|
void |
setEnabled(boolean enabled)
Enables the receiver if the argument is
true,
and disables it otherwise. |
computeSize, geHoverDecorationColor, getDecorationColor, getHoverDecorationColor, isExpanded, setDecorationColor, setExpanded, setHoverDecorationColoraddHyperlinkListener, getHref, getSelection, getText, handleActivate, handleEnter, handleExit, paint, removeHyperlinkListener, setHrefdrawBackground, getCaret, scroll, setCaret, setFontchanged, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getVerticalBaraddControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, 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, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toStringpublic Twistie(Composite parent, int style)
parent - the parentstyle - the styleprotected void paintHyperlink(GC gc)
AbstractHyperlinkpaintHyperlink in class AbstractHyperlinkgc - graphic contextpublic void setEnabled(boolean enabled)
Controltrue,
and disables it otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.setEnabled in class Controlenabled - the new enabled stateGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.