Klasse DataTableDecorator
java.lang.Object
org.eclipse.nebula.widgets.nattable.painter.cell.AbstractCellPainter
org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
org.deidentifier.arx.gui.view.impl.common.datatable.DataTableDecorator
- Alle implementierten Schnittstellen:
org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter
public class DataTableDecorator
extends org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
A table decorator. Based on code from Dirk Fauth.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringLabel for adding a border at the bottom of a cell.static final StringLabel for adding a border at the left of a cell.static final StringLabel for adding a border at the right of a cell.static final StringLabel for adding a border at the top of a cell. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungDataTableDecorator(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter, org.eclipse.nebula.widgets.nattable.style.BorderStyle defaultBorderStyle) Creates a new LabelLineBorderDecorator wrapping the given interior painter using the given BorderStyle as default. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintgetPreferredHeight(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) intgetPreferredWidth(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) voidpaintCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) Von Klasse geerbte Methoden org.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
getCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainter
-
Felddetails
-
TOP_LINE_BORDER_LABEL
Label for adding a border at the top of a cell.- Siehe auch:
-
BOTTOM_LINE_BORDER_LABEL
Label for adding a border at the bottom of a cell.- Siehe auch:
-
LEFT_LINE_BORDER_LABEL
Label for adding a border at the left of a cell.- Siehe auch:
-
RIGHT_LINE_BORDER_LABEL
Label for adding a border at the right of a cell.- Siehe auch:
-
-
Konstruktordetails
-
DataTableDecorator
public DataTableDecorator(org.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter interiorPainter, org.eclipse.nebula.widgets.nattable.style.BorderStyle defaultBorderStyle) Creates a new LabelLineBorderDecorator wrapping the given interior painter using the given BorderStyle as default.- Parameter:
interiorPainter- The painter to be wrapped by this decorator.defaultBorderStyle- The BorderStyle to use as default if there is no BorderStyle configured via cell styles. Can benull.
-
-
Methodendetails
-
getPreferredHeight
public int getPreferredHeight(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) - Angegeben von:
getPreferredHeightin Schnittstelleorg.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter- Setzt außer Kraft:
getPreferredHeightin Klasseorg.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-
getPreferredWidth
public int getPreferredWidth(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) - Angegeben von:
getPreferredWidthin Schnittstelleorg.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter- Setzt außer Kraft:
getPreferredWidthin Klasseorg.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-
paintCell
public void paintCell(org.eclipse.nebula.widgets.nattable.layer.cell.ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, org.eclipse.nebula.widgets.nattable.config.IConfigRegistry configRegistry) - Angegeben von:
paintCellin Schnittstelleorg.eclipse.nebula.widgets.nattable.painter.cell.ICellPainter- Setzt außer Kraft:
paintCellin Klasseorg.eclipse.nebula.widgets.nattable.painter.cell.CellPainterWrapper
-