IInternalWidget
, IRenderer
DefaultColumnGroupHeaderRenderer
, DefaultColumnHeaderRenderer
public abstract class GridHeaderRenderer extends AbstractInternalWidget
NOTE: THIS WIDGET AND ITS API ARE STILL UNDER DEVELOPMENT. THIS IS A PRE-RELEASE ALPHA VERSION. USERS SHOULD EXPECT API CHANGES IN FUTURE VERSIONS.
The super class for all grid header renderers. Contains the properties specific to a grid header.LeftMouseButtonDown, MouseMove
Constructor | Description |
---|---|
GridHeaderRenderer() |
Modifier and Type | Method | Description |
---|---|---|
org.eclipse.swt.graphics.Rectangle |
getTextBounds(java.lang.Object value,
boolean preferred) |
Returns the bounds of the text in the cell.
|
org.eclipse.swt.graphics.Rectangle |
getToggleBounds() |
Returns the bounds of the toggle within the header (typically only group headers have toggles)
or null.
|
boolean |
isWordWrap() |
Returns whether or not text will be word-wrapped during the render
|
void |
setWordWrap(boolean wordWrap) |
Sets whether or not text should be word-wrapped during the render
|
getHoverDetail, setHoverDetail
getBounds, getDisplay, getSize, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setDisplay, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
notify
computeSize, paint, setBounds, setBounds, setDisplay, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
public org.eclipse.swt.graphics.Rectangle getTextBounds(java.lang.Object value, boolean preferred)
null
is returned here, in-place tooltips will not be displayed. If the
preferred
argument is true
then the returned bounds should be large
enough to show the entire text. If preferred
is false
then the
returned bounds should be be relative to the current bounds.value
- the object being rendered.preferred
- true if the preferred width of the text should be returned.public org.eclipse.swt.graphics.Rectangle getToggleBounds()
public boolean isWordWrap()
public void setWordWrap(boolean wordWrap)
wordWrap
- True to wrap text, false otherwise