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.
Twistie
hover, innerHeight, innerWidth
marginHeight, 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, setHoverDecorationColor
addHyperlinkListener, getHref, getSelection, getText, handleActivate, handleEnter, handleExit, removeHyperlinkListener, setEnabled, setHref
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, 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, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public TreeNode(Composite parent, int style)
parent
- the parentstyle
- the styleprotected void paint(PaintEvent e)
AbstractHyperlink
paint
in class AbstractHyperlink
e
- the paint eventprotected void paintHyperlink(GC gc)
AbstractHyperlink
paintHyperlink
in class AbstractHyperlink
gc
- graphic context
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.