Package io.jmix.ui.component.impl
Class AbstractDataGrid.HeaderCellImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticCellImpl
io.jmix.ui.component.impl.AbstractDataGrid.HeaderCellImpl
- All Implemented Interfaces:
DataGrid.HeaderCell
,DataGrid.StaticCell
- Enclosing class:
- AbstractDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>,
E>
protected static class AbstractDataGrid.HeaderCellImpl
extends AbstractDataGrid.AbstractStaticCellImpl
implements DataGrid.HeaderCell
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.vaadin.ui.components.grid.Header.Row.Cell
Fields inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticCellImpl
component, row
-
Constructor Summary
ConstructorDescriptionHeaderCellImpl
(DataGrid.HeaderRow row, com.vaadin.ui.components.grid.Header.Row.Cell gridCell) -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of content stored in this cell.getHtml()
Returns the HTML content displayed in this cell.getRow()
Gets the row where this cell is.Returns the custom style name for this cell.getText()
Returns the text displayed in this cell.void
setComponent
(Component component) Sets the component displayed in this cell.void
Sets the HTML content displayed in this cell.void
setStyleName
(String styleName) Sets a custom style name for this cell.void
Sets the text displayed in this cell.Methods inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticCellImpl
getComponent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.DataGrid.StaticCell
getComponent
-
Field Details
-
gridCell
protected com.vaadin.ui.components.grid.Header.Row.Cell gridCell
-
-
Constructor Details
-
HeaderCellImpl
public HeaderCellImpl(DataGrid.HeaderRow row, com.vaadin.ui.components.grid.Header.Row.Cell gridCell)
-
-
Method Details
-
getRow
Description copied from interface:DataGrid.StaticCell
Gets the row where this cell is.- Specified by:
getRow
in interfaceDataGrid.StaticCell
- Overrides:
getRow
in classAbstractDataGrid.AbstractStaticCellImpl
- Returns:
- row for this cell
-
getStyleName
Description copied from interface:DataGrid.StaticCell
Returns the custom style name for this cell.- Specified by:
getStyleName
in interfaceDataGrid.StaticCell
- Returns:
- the style name or null if no style name has been set
-
setStyleName
Description copied from interface:DataGrid.StaticCell
Sets a custom style name for this cell.- Specified by:
setStyleName
in interfaceDataGrid.StaticCell
- Parameters:
styleName
- the style name to set or null to not use any style name
-
getCellType
Description copied from interface:DataGrid.StaticCell
Returns the type of content stored in this cell.- Specified by:
getCellType
in interfaceDataGrid.StaticCell
- Returns:
- cell content type
-
setComponent
Description copied from interface:DataGrid.StaticCell
Sets the component displayed in this cell.- Specified by:
setComponent
in interfaceDataGrid.StaticCell
- Overrides:
setComponent
in classAbstractDataGrid.AbstractStaticCellImpl
- Parameters:
component
- the component to set
-
getHtml
Description copied from interface:DataGrid.StaticCell
Returns the HTML content displayed in this cell.- Specified by:
getHtml
in interfaceDataGrid.StaticCell
- Returns:
- the html
-
setHtml
Description copied from interface:DataGrid.StaticCell
Sets the HTML content displayed in this cell.- Specified by:
setHtml
in interfaceDataGrid.StaticCell
- Parameters:
html
- the html to set
-
getText
Description copied from interface:DataGrid.StaticCell
Returns the text displayed in this cell.- Specified by:
getText
in interfaceDataGrid.StaticCell
- Returns:
- the plain text caption
-
setText
Description copied from interface:DataGrid.StaticCell
Sets the text displayed in this cell.- Specified by:
setText
in interfaceDataGrid.StaticCell
- Parameters:
text
- a plain text caption
-