org.eclipse.ercp.update.views
Class ScrolledText
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.ercp.update.views.ScrolledText
- All Implemented Interfaces:
- Drawable
public class ScrolledText
- extends Composite
Method Summary |
Rectangle |
computeTrim(int x,
int y,
int width,
int height)
Given a desired client area for the receiver
(as described by the arguments), returns the bounding
rectangle which would be required to produce that client
area. |
void |
setEditable(boolean b)
|
void |
setText(java.lang.String labelMessage)
|
Methods inherited from class org.eclipse.swt.widgets.Composite |
allowTraverseByArrowKey, checkSubclass, computeSize, getChildren, getLayout, getTabList, internal_createHandle, internal_getNativeStyle, internal_removeChild, layout, layout, setBounds, setFocus, setLayout, setSize, setTabList, traverse |
Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addKeyListener, addMouseListener, addMouseMoveListener, addPaintListener, addTraverseListener, computeSize, dispose, forceFocus, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getParent, getShell, getSize, getToolTipText, getVisible, internal_copyArea, internal_dispose_GC, internal_getBounds, internal_getDefaultClipping, internal_new_GC, isEnabled, isEnableTraverse, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setCapture, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverseByArrowKey, traverseGroup, update |
Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, internal_sendEvent, isDisposed, isListening, notifyListeners, removeDisposeListener, removeInternalFilter, removeListener, removeListener, sendEvent, setData, setData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
text
public Text text
ScrolledText
public ScrolledText(Composite parent,
int compositeAttribute,
int textAttribute)
ScrolledText
public ScrolledText(Composite parent,
int compositeAttribute,
int textAttribute,
int maxLineCount)
computeTrim
public Rectangle computeTrim(int x,
int y,
int width,
int height)
- Description copied from class:
Scrollable
- Given a desired client area for the receiver
(as described by the arguments), returns the bounding
rectangle which would be required to produce that client
area.
In other words, it returns a rectangle such that, if the
receiver's bounds were set to that rectangle, the area
of the receiver which is capable of displaying data
(that is, not covered by the "trimmings") would be the
rectangle described by the arguments (relative to the
receiver's parent).
- Overrides:
computeTrim
in class Scrollable
- Parameters:
x
- the desired x coordinate of the client areay
- the desired y coordinate of the client areawidth
- the desired width of the client areaheight
- the desired height of the client area
- Returns:
- the required bounds to produce the given client area
- See Also:
Scrollable.getClientArea()
setText
public void setText(java.lang.String labelMessage)
setEditable
public void setEditable(boolean b)