public class ModelNodeTable<T extends ModelNode> extends DataTable<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelNodeTable.Builder<T extends ModelNode>
Builder to create tables based on resource metadata.
|
Table.SelectionChangeHandler<T>| Modifier and Type | Method and Description |
|---|---|
void |
attach()
Initialized the
Api instance using the Options given at constructor argument. |
elemental2.dom.HTMLElement |
jsElement() |
T[] |
jsRows() |
T[] |
jsSelectedRows() |
void |
jsUpdate(T[] rows) |
void |
select(T data)
Shortcut for
super.select(data, NamedNode::getName) |
void |
select(T data,
Function<T,String> identifier)
Selects the row with the specified data.
|
void |
update(Iterable<T> data)
Shortcut for
super.update(data, NamedNode::getName) |
void |
update(Iterable<T> data,
RefreshMode mode,
Function<T,String> identifier)
Replaces the existing data with the new one.
|
asElement, bindForm, bindForms, buttonElement, clear, enableButton, getRows, hide, onSelectionChange, selectedRow, selectedRows, show, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasSelectiondetach@JsMethod public void attach()
DataTableApi instance using the Options given at constructor argument. Make sure to call
this method before using any of the API methods. It's safe to call the methods multiple times (the
initialization will happen only once).public void select(T data)
super.select(data, NamedNode::getName)public void select(T data, Function<T,String> identifier)
DataTablepublic void update(Iterable<T> data, RefreshMode mode, Function<T,String> identifier)
DataTable@JsProperty(name="element") public elemental2.dom.HTMLElement jsElement()
@JsProperty(name="rows") public T[] jsRows()
@JsProperty(name="selectedRows") public T[] jsSelectedRows()
@JsMethod(name="update") public void jsUpdate(T[] rows)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.