|
||||||||||
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.eclipse.swt.widgets.Canvas
org.eclipse.draw2d.FigureCanvas
org.eclipse.draw2d.widgets.MultiLineLabel
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 Summary |
Fields inherited from class org.eclipse.draw2d.FigureCanvas |
ALWAYS, AUTOMATIC, NEVER |
Fields inherited from class org.eclipse.swt.widgets.Composite |
embeddedHandle |
Fields inherited from class org.eclipse.swt.widgets.Widget |
handle |
Constructor Summary | |
MultiLineLabel(org.eclipse.swt.widgets.Composite parent)
Constructs a new MultiLineLabel with the given parent. |
Method Summary | |
org.eclipse.swt.graphics.Image |
getImage()
|
java.lang.String |
getText()
Returns the text in this label. |
void |
setEnabled(boolean enabled)
|
void |
setFont(org.eclipse.swt.graphics.Font font)
|
void |
setImage(org.eclipse.swt.graphics.Image image)
|
void |
setText(java.lang.String text)
Sets the text for this label. |
Methods inherited from class org.eclipse.draw2d.FigureCanvas |
computeSize, getContents, getFont, getHorizontalScrollBarVisibility, getLightweightSystem, getVerticalScrollBarVisibility, getViewport, scrollSmoothTo, scrollTo, scrollToX, scrollToY, setBorder, setContents, setHorizontalScrollBarVisibility, setScrollBarVisibility, setVerticalScrollBarVisibility, setViewport |
Methods inherited from class org.eclipse.swt.widgets.Canvas |
getCaret, scroll, setCaret |
Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getBorderWidth, getClientArea, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBounds, getEnabled, 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, setBounds, setBounds, setCapture, setCursor, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MultiLineLabel(org.eclipse.swt.widgets.Composite parent)
parent
- the parentMethod Detail |
public void setEnabled(boolean enabled)
public org.eclipse.swt.graphics.Image getImage()
public java.lang.String getText()
public void setFont(org.eclipse.swt.graphics.Font font)
setFont
in class FigureCanvas
Canvas.setFont(org.eclipse.swt.graphics.Font)
public void setImage(org.eclipse.swt.graphics.Image image)
image
- The Image
to be used for this label. It can be
null
.ImageBorder#setImage(Image, int)
public void setText(java.lang.String text)
text
- the new text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |