public class Table<E> extends Widget<HTMLDivElement,Table<E>> implements HasRowContextMenuHandlers<Table<E>,E>, HasRowDoubleActionHandlers<Table<E>,E>, HasFocusHandlers<Table<E>>
Modifier and Type | Class and Description |
---|---|
static class |
Table.EditMode |
contextMenu, contextMenuHandlerRegistration, currentHeight, currentWidth, enabled, NATIVE_CONTEXT_MENU_HANDLER
Constructor and Description |
---|
Table(TableModel<E> model,
ColumnModel<E> columns) |
add, addActionHandler, addClassName, addDoubleActionHandler, addDoubleTapHandler, addDropTarget, addEventHandler, addEventHandler, addResizeHandler, addStyleName, addTapHandler, addTouchHoldHandler, canDropTargetAccept, cast, clear, clearBackgroundColor, clearDropTargets, clearTextColor, ensureHandlers, fireEvent, fireEvent, fireResizeEvent, getAbsoluteLeft, getAbsoluteTop, getAncestor, getChildren, getChildrenCount, getComputedStyle, getContextMenu, getContextMenuHandler, getDeepestWidget, getDragSource, getDropTargetList, getElement, getFirstChild, getId, getLastChild, getNextSibling, getNextSibling, getOffsetHeight, getOffsetWidth, getParent, getScrollLeft, getScrollTop, getStyle, hasClassName, hasFocus, insert, isAttached, isDropTarget, isEnabled, isInEventThread, onAttach, onDetach, remove, removeClassName, removeDropTarget, removeStyleName, setBackgroundColor, setClassName, setContextMenu, setDropTarget, setEnabled, setHeight, setHeight, setHeight, setId, setLeft, setLeftAndTop, setMaxHeight, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setMinWidth, setParent, setPixelSize, setScrollLeft, setScrollTop, setSize, setTextAlign, setTextColor, setTop, setWidth, setWidth, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRowDoubleActionHandlers
addFocusHandler, addFocusHandler
addEventHandler, addEventHandler
cancelMeasure, cancelMutation, measureAsSoonAsPossible, mutateAsSoonAsPossible, mutateAsSoonAsPossible, scheduleMeasure, scheduleMutation
addAttachHandler
addDetachHandler
addTransitionEndHandler, addTransitionEndHandler
addMouseDownHandler, addMouseDownHandler
addMouseMoveHandler, addMouseMoveHandler
addMouseOutHandler, addMouseOutHandler
addMouseOverHandler, addMouseOverHandler
addMouseUpHandler, addMouseUpHandler
addWheelHandler, addWheelHandler
addClickHandler, addClickHandler
addDoubleClickHandler, addDoubleClickHandler
addContextMenuHandler, addContextMenuHandler
addTouchStartHandler, addTouchStartHandler
addTouchMoveHandler, addTouchMoveHandler
addTouchForceChangeHandler, addTouchForceChangeHandler
addTouchEndHandler, addTouchEndHandler
addTouchCancelHandler, addTouchCancelHandler
addTouchHoldHandler
addTapHandler
addDoubleTapHandler
addKeyDownHandler, addKeyDownHandler
addKeyUpHandler, addKeyUpHandler
addKeyPressHandler, addKeyPressHandler
addScrollHandler, addScrollHandler
addAnimationStartHandler, addAnimationStartHandler
addAnimationIterationHandler, addAnimationIterationHandler
addAnimationEndHandler, addAnimationEndHandler
addActionHandler
addDoubleActionHandler
public Table(TableModel<E> model, ColumnModel<E> columns)
public ColumnModel<E> getColumnModel()
public TableModel<E> getModel()
@WillMutate public void sort(TableColumn<E,?> column)
@WillMutate public void sort(TableColumn<E,?> column, SortDirection direction)
@SafeVarargs @WillMutate public final void multiSort(TableColumn<E,?>... cols)
protected void displayUpDownSortArrow(TableColumn<E,?> column)
public TableColumn<E,?> getSortedColumn()
public TableColumn<E,?>[] getSortedColumns()
@WillMutate public void doFilter()
public boolean update()
@WillMutate public boolean updateColumns(List<TableColumn<E,?>> updateList)
public com.xalys.xgl.table.HeaderTable<E> getHeaderTable()
protected ScrollablePanel getBodyContainer()
public HandlerRegistration addRowContextMenuHandler(RowContextMenuHandler<Table<E>,E> rowContextMenuHandler)
addRowContextMenuHandler
in interface HasRowContextMenuHandlers<Table<E>,E>
public void setRowContextMenuGenerator(com.xalys.xgl.table.Table.RowContextMenuGenerator<E> rowContextMenuGenerator)
public void setRowContextMenu(Menu rowContextMenu)
public Menu getRowContextMenu()
public int getSelectedIndex()
public E getSelected()
@WillMutate public void update(E entity)
selected
- @WillMutate public void remove(E entity)
selected
- public Table<E> setDragSource(DragSource<Table<E>,?> dragSource)
setDragSource
in class Widget<HTMLDivElement,Table<E>>
dragSource
- the dragSource to setpublic void setDragSource(TableDragSource<E> dragSource)
public Table.EditMode getEditMode()
public void setEditMode(Table.EditMode editMode)
editMode
- the editMode to setprotected void fireRowDoubleActionChange(E entity)
Copyright © 2018 Xalys. All rights reserved.