Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d.widgets
Class MultiLineLabel

java.lang.Object
  extended byCanvas
      extended by

org.eclipse.draw2d.FigureCanvas
          extended by
org.eclipse.draw2d.widgets.MultiLineLabel

public final class MultiLineLabel
extends FigureCanvas

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.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eclipse.draw2d. FigureCanvas
ALWAYS, AUTOMATIC, NEVER
 
Constructor Summary
MultiLineLabel (Composite parent)
          Constructs a new MultiLineLabel with the given parent.
 
Method Summary
 Image getImage ()
           
 java.lang.String getText ()
          Returns the text in this label.
 void setEnabled (boolean enabled)
           
 void setFont (Font font)
           
 void setImage (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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiLineLabel

public MultiLineLabel(Composite parent)
Constructs a new MultiLineLabel with the given parent.

Parameters:
parent - the parent
Method Detail

setEnabled

public void setEnabled(boolean enabled)
See Also:
Control

getImage

public Image getImage()
Returns:
the Image for this label, or null if there is none
See Also:
setImage(Image)

getText

public java.lang.String getText()
Returns the text in this label.

Returns:
the text

setFont

public void setFont(Font font)
Overrides:
setFont in class FigureCanvas
See Also:
Canvas

setImage

public void setImage(Image image)
Parameters:
image - The Image to be used for this label. It can be null.

setText

public void setText(java.lang.String text)
Sets the text for this label.

Parameters:
text - the new text

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire