public class TreeNode extends ToggleHyperlink
The control is rendered as box with a '+' or '-' sign, depending on the expansion state. Focus indication is rendered around the box when the control has keyboard focus.
Twistiehover, innerHeight, innerWidthmarginHeight, marginWidth| Constructor and Description |
|---|
TreeNode(Composite parent,
int style)
Creates a control in a provided composite.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
paint(PaintEvent e)
Paints the control as a reaction to the provided paint event.
|
protected void |
paintHyperlink(GC gc)
Paints the hyperlink as a reaction to the provided paint event.
|
computeSize, geHoverDecorationColor, getDecorationColor, getHoverDecorationColor, isExpanded, setDecorationColor, setExpanded, setHoverDecorationColoraddHyperlinkListener, getHref, getSelection, getText, handleActivate, handleEnter, handleExit, 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, setEnabled, 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 TreeNode(Composite parent, int style)
parent - the parentstyle - the styleprotected void paint(PaintEvent e)
AbstractHyperlinkpaint in class AbstractHyperlinke - the paint eventprotected void paintHyperlink(GC gc)
AbstractHyperlinkpaintHyperlink in class AbstractHyperlinkgc - graphic contextGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.