Package org.eclipse.draw2d.widgets
Class MultiLineLabel
- All Implemented Interfaces:
- Drawable
A widget for displaying a multi-line string. The label will have a vertical
 or horizontal scrollbar when needed. Unlike the platform Label, this label is
 focusable and accessible to screen-readers.
- 
Field SummaryFields inherited from class org.eclipse.draw2d.FigureCanvasALWAYS, AUTOMATIC, NEVER
- 
Constructor SummaryConstructorsConstructorDescriptionMultiLineLabel(Composite parent) Constructs a new MultiLineLabel with the given parent.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.FigureCanvascomputeSize, getContents, getFont, getHorizontalScrollBarVisibility, getLightweightSystem, getVerticalScrollBarVisibility, getViewport, scrollSmoothTo, scrollTo, scrollToX, scrollToY, setBorder, setContents, setHorizontalScrollBarVisibility, setScrollBarVisibility, setVerticalScrollBarVisibility, setViewportMethods inherited from class org.eclipse.swt.widgets.CanvasdrawBackground, getCaret, getIME, scroll, setCaret, setIMEMethods inherited from class org.eclipse.swt.widgets.Compositechanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, redraw, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.ScrollablecomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods inherited from class org.eclipse.swt.widgets.ControladdControlListener, 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, 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, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, 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, updateMethods inherited from class org.eclipse.swt.widgets.WidgetaddDisposeListener, addListener, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setDataMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.swt.graphics.DrawableisAutoScalable
- 
Constructor Details- 
MultiLineLabelConstructs a new MultiLineLabel with the given parent.- Parameters:
- parent- the parent
 
 
- 
- 
Method Details- 
setEnabledpublic void setEnabled(boolean enabled) - Overrides:
- setEnabledin class- Control
- See Also:
 
- 
getImage- Returns:
- the Image for this label, or nullif there is none
- See Also:
 
- 
getTextReturns the text in this label.- Returns:
- the text
 
- 
setFont- Overrides:
- setFontin class- FigureCanvas
- See Also:
 
- 
setImage- Parameters:
- image- The- Imageto be used for this label. It can be- null.
 
- 
setTextSets the text for this label.- Parameters:
- text- the new text
 
 
-