T - The column and items type.public class FinderColumn<T> extends Object implements org.jboss.gwt.elemento.core.IsElement, Attachable
ItemRenderer which defines how the items of this column are rendered. All items of a column must have
the same type parameter which is the type parameter of this column.
The idea is that columns are self-contained and don't need direct references to other columns. References are only
provided by id. The ColumnRegistry will then resolve the id against an existing column.
Please do not use constants from ModelDescriptionConstants for the column ids (it makes refactoring harder).
Instead add an id to Ids.
TODO This class is huge! Try to refactor and break into smaller pieces.
| Modifier and Type | Class and Description |
|---|---|
static class |
FinderColumn.Builder<T> |
static class |
FinderColumn.RefreshMode |
| Modifier | Constructor and Description |
|---|---|
protected |
FinderColumn(FinderColumn.Builder<T> builder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addColumnAction(ColumnAction<T> columnAction)
Sometimes you need to reference
this in the column action handler. |
protected void |
addColumnActions(String id,
String iconsCss,
String title,
List<ColumnAction<T>> actions) |
elemental2.dom.HTMLElement |
asElement() |
void |
attach() |
void |
detach() |
protected Finder |
getFinder() |
String |
getId() |
String |
getTitle() |
protected boolean |
isVisible() |
void |
refresh(Callback callback) |
void |
refresh(FinderColumn.RefreshMode refreshMode) |
void |
refresh(String selectItemId)
Refreshes and selects and the specified item.
|
protected void |
resetColumnActions() |
protected void |
setBreadcrumbItemsProvider(BreadcrumbItemsProvider<T> breadcrumbItemsProvider)
Sometimes you need to reference
this in the breadcrumb items provider. |
protected void |
setItemRenderer(ItemRenderer<T> itemRenderer)
Sometimes you need to reference
this in the actions created by ItemDisplay.actions(). |
protected void |
setItemsProvider(ItemsProvider<T> itemsProvider)
Sometimes you need to reference
this in the items provider. |
protected void |
setOnDrop(org.jboss.gwt.elemento.core.EventCallbackFn<elemental2.dom.DragEvent> handler) |
protected void |
setPreviewCallback(PreviewCallback<T> previewCallback)
Sometimes you need to reference
this in the preview callback. |
protected FinderColumn(FinderColumn.Builder<T> builder)
public void attach()
attach in interface Attachablepublic void detach()
detach in interface Attachableprotected boolean isVisible()
protected void addColumnAction(ColumnAction<T> columnAction)
this in the column action handler. This is not possible if they're
part of the builder which is passed to super(). In this case you can use this method to add your column
actions after the call to super().protected void addColumnActions(String id, String iconsCss, String title, List<ColumnAction<T>> actions)
protected void resetColumnActions()
protected void setItemRenderer(ItemRenderer<T> itemRenderer)
this in the actions created by ItemDisplay.actions(). This is
not possible if they're part of the builder which is passed to super(). In this case the item renderer
can be specified after the call to super() using this setter.
However make sure to call the setter before the column is used asElement() and gets
attached to the DOM!
protected void setItemsProvider(ItemsProvider<T> itemsProvider)
this in the items provider. This is not possible if the items provider
is part of the builder which is passed to super(). In this case the items provider can be specified
after the call to super() using this setter.
However make sure to call the setter before the column is used asElement() and gets
attached to the DOM!
protected void setPreviewCallback(PreviewCallback<T> previewCallback)
this in the preview callback. This is not possible if the preview
callback is part of the builder which is passed to super(). In this case the preview callback can be
specified after the call to super() using this setter.
However make sure to call the setter before the column is used asElement() and gets
attached to the DOM!
protected void setBreadcrumbItemsProvider(BreadcrumbItemsProvider<T> breadcrumbItemsProvider)
this in the breadcrumb items provider. This is not possible if the
breadcrumb items provider is part of the builder which is passed to super(). In this case the breadcrumb
items provider can be specified after the call to super() using this setter.
However make sure to call the setter before the column is used asElement() and gets
attached to the DOM!
protected void setOnDrop(org.jboss.gwt.elemento.core.EventCallbackFn<elemental2.dom.DragEvent> handler)
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElementpublic void refresh(FinderColumn.RefreshMode refreshMode)
public void refresh(String selectItemId)
public void refresh(Callback callback)
public String getId()
public String getTitle()
protected Finder getFinder()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.