ROW
- is the generic type of a row in the list.public abstract class UiWidgetAdapterGwtAbstractDataTable<ROW> extends UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.FlowPanel> implements UiWidgetAdapterAbstractDataTable<ROW>
UiWidgetAdapterAbstractDataTable
using GWT based on FlowPanel
and TableWidget
.Modifier and Type | Field and Description |
---|---|
private TableRow |
bodyWidthRow |
private List<AbstractUiWidgetTableColumn<?,ROW,?>> |
columns |
private TableCellHeaderAtomic |
headerCellSelection |
private com.google.gwt.user.client.ui.SimpleCheckBox |
headerMultiSelectionWidget |
private TableRow |
headerRow |
private com.google.gwt.user.client.ui.RadioButton |
headerSingleSelectionWidget |
private Section |
section |
private com.google.gwt.dom.client.StyleElement |
styleElement |
private TableWidget |
tableWidget |
TAB_INDEX_NONE
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
PROPERTY_SUMMARY
PROPERTY_TITLE
PROPERTY_LABEL
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterGwtAbstractDataTable()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addColumn(AbstractUiWidgetTableColumn<?,ROW,?> column,
int columnIndex)
Adds the given column to this table.
|
UiWidgetAdapterTableColumn |
createTableColumnAdapter(UiWidgetTableColumn<?,?> column) |
protected com.google.gwt.user.client.ui.FlowPanel |
createToplevelWidget()
This method creates the
underlying widget . |
void |
dragColumn(AbstractUiWidgetTableColumn<?,ROW,?> dragColumn,
AbstractUiWidgetTableColumn<?,ROW,?> dropColumn) |
List<AbstractUiWidgetTableColumn<?,ROW,?>> |
getColumns() |
TableCellHeaderAtomic |
getHeaderCellSelection() |
private com.google.gwt.user.client.ui.SimpleCheckBox |
getHeaderMultiSelectionWidget() |
private com.google.gwt.user.client.ui.RadioButton |
getHeaderSingleSelectionWidget() |
Section |
getSection() |
SelectionMode |
getSelectionMode()
This method gets the
SelectionMode . |
com.google.gwt.dom.client.StyleElement |
getStyleElement() |
String |
getSummary()
This method gets the summary of this object.
|
protected TableWidget |
getTableWidget() |
AbstractUiWidgetAbstractDataTable<?,?,ROW,ItemContainerGwt<ROW>> |
getUiWidgetTyped()
This method is a design suggestion for implementations of widget adapters that need typed access to
AbstractUiWidgetAdapter.getUiWidget() and want to perform the cast only in a single place. |
protected static UiWidgetAdapterGwtTableColumn |
getWidgetAdapterForColumn(UiWidgetTableColumn<?,?> column) |
protected com.google.gwt.user.client.ui.Focusable |
getWidgetAsFocusable() |
protected com.google.gwt.event.dom.client.HasAllFocusHandlers |
getWidgetAsHasAllFocusHandlers() |
protected com.google.gwt.event.dom.client.HasKeyPressHandlers |
getWidgetAsKeyPressHandlers() |
boolean |
isTitleVisible()
|
void |
setColumns(List<AbstractUiWidgetTableColumn<?,ROW,?>> columns) |
void |
setEnabled(boolean enabled)
This method sets the
enabled status of this object. |
void |
setSelectionMode(SelectionMode selectionMode)
This method sets the
selection mode . |
void |
setSummary(String summary)
This method sets the
summary of this object. |
void |
setTitle(String title)
This method sets the title of this object.
|
void |
setTitleVisible(boolean titleVisible)
This method sets the
titleVisible flag of this object. |
void |
sort(AbstractUiWidgetTableColumn<?,ROW,?> column,
SortOrder sortOrder) |
applyEventAdapterForClick, applyEventAdapterForFocus, getKeyboardFilter, getWidgetAsHasBlurHandlers, getWidgetAsHasFocusHandlers, setAccessKey, setClickEventSender, setFocused, setKeyboardFilter
dispose, getActiveWidget, removeFromParent
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getHeightInPixel, getImage, getImageParentElement, getLength, getSizeElement, getToplevelWidget, getToplevelWidget, getWidthInPixel, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setLength, setPrimaryStyle, setStyles, setTooltip, setVisible
applyEventAdapter, applyEventAdapterForChange, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUrl, getValidationFailure, hasStyle, isDisposed, isEnabled, isFocused, isResizable, setMode, setParent, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisible
setId
getId
setTooltip
getTooltip
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
setLength
getLength
getHeightInPixel, getWidthInPixel
getAttribute
setAttribute
isFocused
setFocused
setAccessKey
getAccessKey
getTitle
private TableWidget tableWidget
getTableWidget()
private Section section
getSection()
private List<AbstractUiWidgetTableColumn<?,ROW,?>> columns
setColumns(List)
private com.google.gwt.dom.client.StyleElement styleElement
getStyleElement()
private TableRow headerRow
setColumns(List)
private TableRow bodyWidthRow
setColumns(List)
private com.google.gwt.user.client.ui.SimpleCheckBox headerMultiSelectionWidget
getHeaderMultiSelectionWidget()
private com.google.gwt.user.client.ui.RadioButton headerSingleSelectionWidget
getHeaderSingleSelectionWidget()
private TableCellHeaderAtomic headerCellSelection
getHeaderCellSelection()
public UiWidgetAdapterGwtAbstractDataTable()
public UiWidgetAdapterTableColumn createTableColumnAdapter(UiWidgetTableColumn<?,?> column)
createTableColumnAdapter
in interface UiWidgetAdapterAbstractDataTable<ROW>
column
- is the UiWidgetTableColumn
for which to create the widget adapter.UiWidgetAdapterTableColumn
for the given UiWidgetTableColumn
.public List<AbstractUiWidgetTableColumn<?,ROW,?>> getColumns()
public void setColumns(List<AbstractUiWidgetTableColumn<?,ROW,?>> columns)
setColumns
in interface UiWidgetAdapterAbstractDataTable<ROW>
columns
- are the columns
to set.net.sf.mmm.client.ui.api.widget.complex.UiWidgetAbstractDataTable#setColumns(UiWidgetTableColumn...)
private void addColumn(AbstractUiWidgetTableColumn<?,ROW,?> column, int columnIndex)
column
- is the actual column widget.columnIndex
- is the current column index.protected static UiWidgetAdapterGwtTableColumn getWidgetAdapterForColumn(UiWidgetTableColumn<?,?> column)
column
- is the UiWidgetTableColumn
.column
.public com.google.gwt.dom.client.StyleElement getStyleElement()
public AbstractUiWidgetAbstractDataTable<?,?,ROW,ItemContainerGwt<ROW>> getUiWidgetTyped()
AbstractUiWidgetAdapter.getUiWidget()
and want to perform the cast only in a single place. If you would override
AbstractUiWidgetAdapter.getUiWidget()
to add the cast and do that multiple times across the inheritance hierarchy this
would cause multiple/unnecessary casts. Casting is required as we already declare enough generics for
widget adapters and also want to keep the code more flexible.getUiWidgetTyped
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.FlowPanel>
UiWidget
potentially specifically typed.public void sort(AbstractUiWidgetTableColumn<?,ROW,?> column, SortOrder sortOrder)
sort
in interface UiWidgetAdapterAbstractDataTable<ROW>
column
- is the column to sort by.sortOrder
- is the SortOrder
.AbstractUiWidgetTableColumn.sort(SortOrder)
public void dragColumn(AbstractUiWidgetTableColumn<?,ROW,?> dragColumn, AbstractUiWidgetTableColumn<?,ROW,?> dropColumn)
dragColumn
in interface UiWidgetAdapterAbstractDataTable<ROW>
public void setSummary(String summary)
summary
of this object.setSummary
in interface AttributeWriteSummary
summary
- is the new summary
to set.public String getSummary()
getSummary
in interface AttributeReadSummary
public void setEnabled(boolean enabled)
enabled
status of this object. If it is disabled, the user can
not interact with the object.setEnabled
in interface AttributeWriteEnabled
enabled
- - if true
the object will be enabled, else the object will be disabled.public void setTitle(String title)
setTitle
in interface AttributeWriteStringTitle
setTitle
in interface AttributeWriteTitle<String>
title
- is the new title.AttributeReadStringTitle.getTitle()
public void setTitleVisible(boolean titleVisible)
titleVisible flag
of this object.setTitleVisible
in interface AttributeWriteTitleVisible
titleVisible
- is the new value for AttributeReadTitleVisible.isTitleVisible()
.public boolean isTitleVisible()
title
of this object is
visible
. For Accessibility
reasons you should always
set the title
of a titled object. However in specific
cases you want to save space on the screen and may not require the title to be displayed for seeing
users. Then you can hide the title while it is still recognized by assistive technology such as screen
readers.isTitleVisible
in interface AttributeReadTitleVisible
true
if visible, false
if hidden.public SelectionMode getSelectionMode()
SelectionMode
.getSelectionMode
in interface AttributeReadSelectionMode
getSelectionMode
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.FlowPanel>
SelectionMode
. Must not be null
.public void setSelectionMode(SelectionMode selectionMode)
selection mode
. SelectionMode
immediately after creating the object. The initial
default is always SelectionMode.SINGLE_SELECTION
. Dynamically changing the SelectionMode
may be expensive or not be supported (in exotic implementations) and should therefore be avoided.setSelectionMode
in interface AttributeWriteSelectionMode
selectionMode
- is the new SelectionMode
.protected com.google.gwt.user.client.ui.Focusable getWidgetAsFocusable()
getWidgetAsFocusable
in class UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.FlowPanel>
widget
as Focusable
or null
if NOT
supported.protected com.google.gwt.event.dom.client.HasKeyPressHandlers getWidgetAsKeyPressHandlers()
getWidgetAsKeyPressHandlers
in class UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.FlowPanel>
widget
as HasKeyPressHandlers
or null
if
NOT supported.protected com.google.gwt.event.dom.client.HasAllFocusHandlers getWidgetAsHasAllFocusHandlers()
getWidgetAsHasAllFocusHandlers
in class UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.FlowPanel>
widget
as HasAllFocusHandlers
or null
if
NOT supported.protected com.google.gwt.user.client.ui.FlowPanel createToplevelWidget()
underlying widget
. createToplevelWidget
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.FlowPanel>
underlying widget
.public TableCellHeaderAtomic getHeaderCellSelection()
private com.google.gwt.user.client.ui.RadioButton getHeaderSingleSelectionWidget()
private com.google.gwt.user.client.ui.SimpleCheckBox getHeaderMultiSelectionWidget()
SimpleCheckBox
for the multi-selection in the header to select / deselect all.protected TableWidget getTableWidget()
TableWidget
for the actual data table.Copyright © 2001–2016 mmm-Team. All rights reserved.