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
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.ui.components.grid.Header.Row.CellFields inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticCellImpl
component, row -
Constructor Summary
ConstructorsConstructorDescriptionHeaderCellImpl(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.voidsetComponent(Component component) Sets the component displayed in this cell.voidSets the HTML content displayed in this cell.voidsetStyleName(String styleName) Sets a custom style name for this cell.voidSets the text displayed in this cell.Methods inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractStaticCellImpl
getComponentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.StaticCellGets the row where this cell is.- Specified by:
getRowin interfaceDataGrid.StaticCell- Overrides:
getRowin classAbstractDataGrid.AbstractStaticCellImpl- Returns:
- row for this cell
-
getStyleName
Description copied from interface:DataGrid.StaticCellReturns the custom style name for this cell.- Specified by:
getStyleNamein interfaceDataGrid.StaticCell- Returns:
- the style name or null if no style name has been set
-
setStyleName
Description copied from interface:DataGrid.StaticCellSets a custom style name for this cell.- Specified by:
setStyleNamein interfaceDataGrid.StaticCell- Parameters:
styleName- the style name to set or null to not use any style name
-
getCellType
Description copied from interface:DataGrid.StaticCellReturns the type of content stored in this cell.- Specified by:
getCellTypein interfaceDataGrid.StaticCell- Returns:
- cell content type
-
setComponent
Description copied from interface:DataGrid.StaticCellSets the component displayed in this cell.- Specified by:
setComponentin interfaceDataGrid.StaticCell- Overrides:
setComponentin classAbstractDataGrid.AbstractStaticCellImpl- Parameters:
component- the component to set
-
getHtml
Description copied from interface:DataGrid.StaticCellReturns the HTML content displayed in this cell.- Specified by:
getHtmlin interfaceDataGrid.StaticCell- Returns:
- the html
-
setHtml
Description copied from interface:DataGrid.StaticCellSets the HTML content displayed in this cell.- Specified by:
setHtmlin interfaceDataGrid.StaticCell- Parameters:
html- the html to set
-
getText
Description copied from interface:DataGrid.StaticCellReturns the text displayed in this cell.- Specified by:
getTextin interfaceDataGrid.StaticCell- Returns:
- the plain text caption
-
setText
Description copied from interface:DataGrid.StaticCellSets the text displayed in this cell.- Specified by:
setTextin interfaceDataGrid.StaticCell- Parameters:
text- a plain text caption
-