Package org.eclipse.nebula.widgets.grid
Class GridFooterRenderer
java.lang.Object
org.eclipse.nebula.widgets.grid.AbstractRenderer
org.eclipse.nebula.widgets.grid.AbstractInternalWidget
org.eclipse.nebula.widgets.grid.GridFooterRenderer
- All Implemented Interfaces:
IInternalWidget
,IRenderer
- Direct Known Subclasses:
DefaultColumnFooterRenderer
public abstract class GridFooterRenderer 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.-
Field Summary
Fields Modifier and Type Field Description protected int
truncationStyle
Truncation styleFields inherited from interface org.eclipse.nebula.widgets.grid.IInternalWidget
LeftMouseButtonDown, MouseMove
-
Constructor Summary
Constructors Constructor Description GridFooterRenderer()
-
Method Summary
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.int
getTruncationStyle()
Get the truncation stylevoid
setTruncationStyle(int truncationStyle)
Set the truncation style to use when cell content is too large.Methods inherited from class org.eclipse.nebula.widgets.grid.AbstractInternalWidget
getHoverDetail, setHoverDetail
Methods inherited from class org.eclipse.nebula.widgets.grid.AbstractRenderer
getBounds, getDisplay, getSize, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setDisplay, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.nebula.widgets.grid.IRenderer
computeSize, paint, setBounds, setBounds, setDisplay, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
-
Field Details
-
truncationStyle
protected int truncationStyleTruncation style
-
-
Constructor Details
-
GridFooterRenderer
public GridFooterRenderer()
-
-
Method Details
-
getTextBounds
public org.eclipse.swt.graphics.Rectangle getTextBounds(java.lang.Object value, boolean preferred)Returns the bounds of the text in the cell. This is used when displaying in-place tooltips. Ifnull
is returned here, in-place tooltips will not be displayed. If thepreferred
argument istrue
then the returned bounds should be large enough to show the entire text. Ifpreferred
isfalse
then the returned bounds should be be relative to the current bounds.- Parameters:
value
- the object being rendered.preferred
- true if the preferred width of the text should be returned.- Returns:
- bounds of the text.
-
getTruncationStyle
public int getTruncationStyle()Get the truncation style- Returns:
- the truncation style.
-
setTruncationStyle
public void setTruncationStyle(int truncationStyle)Set the truncation style to use when cell content is too large.- Parameters:
truncationStyle
-- See Also:
SWT.LEFT
,SWT.CENTER
,SWT.RIGHT
-