|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.table.client.DataTableWidget
public class DataTableWidget
The class DataTable is the GWT wrapper
for the Phoenix control: sap.ui.table.DataTable.
The DataTable Control.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
DataTableWidget()
constructs the class DataTableWidget |
protected |
DataTableWidget(DataTable control)
constructs the class DataTableWidget |
|
DataTableWidget(String id)
constructs the class DataTableWidget |
| Method Summary | |
|---|---|
void |
addColumn(Column column)
Appends some column to the columns-aggregation. |
void |
addSelectedIndex(int index)
Adds the given index to current selection. |
void |
addSelectedIndices(Integer[] indices)
Adds the given indices to selection. |
void |
attachColumnSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
fired when a column of the table has been selected
Event Parameters: {sap.ui.table/Column} column reference to the clicked column |
void |
attachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
fired when a row of the table has been selected
Event Parameters: {sap.ui.core/int} rowIndex index of the selected row {sap.ui.core/object} rowContext binding context of the selected row |
void |
bindRows(String path,
Object sorter,
Object[] filters)
Binds the rows of the DataTable against the given binding path. |
void |
clearSelection()
Removes complete selection. |
void |
destroyColumns()
Destroys all the columns in the Columns-aggregation. |
void |
destroyToolbar()
Destroys the toolbar in the Toolbar-aggregation. |
void |
detachColumnSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
fired when a column of the table has been selected |
void |
detachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
fired when a row of the table has been selected |
com.sap.ui.core.client.js.JsArray<Column> |
getColumns()
Getter for aggregation columns Columns of the Table |
Object |
getContextByIndex(int index)
Returns the context of a row by its index. |
DataTable |
getControl()
returns the reference to the Phoenix Control |
int |
getExpandedVisibleRowCount()
Getter for property expandedVisibleRowCount
Count of visible rows when expanded |
int |
getFirstVisibleRow()
Getter for property firstVisibleRow
First visible row |
int |
getSelectedIndex()
Zero-based index of selected item. |
Integer[] |
getSelectedIndices()
Zero-based indices of selected items, wrapped in an array. |
SelectionMode |
getSelectionMode()
Getter for property selectionMode
Selection mode of the Table |
String |
getTitle()
Getter for property title
Title of the Table (if not set/empty) the title will be hidden) |
com.sap.ui.commons.client.Toolbar |
getToolbar()
Getter for aggregation toolbar Toolbar of the Table (if not set it will be hidden) |
int |
getVisibleRowCount()
Getter for property visibleRowCount
Count of visible rows |
String |
getWidth()
Getter for property width
Width of the Table |
int |
indexOfColumn(Column column)
Checks for the provided com.sap.ui.table.client.Column in the columns-aggregation and
returns its index if found or -1 otherwise. |
void |
insertColumn(Column column,
int index)
Inserts some column into the aggregation named columns. |
boolean |
isEditable()
Getter for property editable
Flag whether the controls of the Table are editable or not |
boolean |
isExpanded()
Getter for property expanded
Flag whether the Table is expanded or not |
boolean |
isHierarchical()
Getter for property hierarchical
Flag, whether the table displays its content hierarchical or not **experimental**!! |
boolean |
isIndexSelected(int index)
Returns whether the given index is selected. |
void |
removeAllColumns()
Removes all the items in the columns-aggregation. |
void |
removeColumn(int index)
Removes the column at position index in the columns-aggregation named. |
void |
removeSelectedIndex(int index)
Removes the given index from this selection. |
void |
setEditable(boolean value)
Setter for property editableDefault value is: false |
void |
setExpanded(boolean value)
Setter for property expandedDefault value is: false |
void |
setExpandedVisibleRowCount(int value)
Setter for property expandedVisibleRowCount |
void |
setFirstVisibleRow(int value)
Setter for property firstVisibleRowDefault value is: 0 |
void |
setHierarchical(boolean value)
Setter for property hierarchicalDefault value is: false |
void |
setSelectedIndex(int index)
Sets the zero-based index of the currently selected item. |
void |
setSelectedIndices(Integer[] indices)
Zero-based indices of selected items, wrapped in an array. |
void |
setSelectionMode(SelectionMode value)
Setter for property selectionModeDefault value is: Multi |
void |
setTitle(String value)
Setter for property title |
void |
setToolbar(com.sap.ui.commons.client.Toolbar toolbar)
Setter for the aggregated toolbar. |
void |
setVisibleRowCount(int value)
Setter for property visibleRowCountDefault value is: 10 |
void |
setWidth(String value)
Setter for property widthDefault value is: auto |
void |
unbindRows()
Unbinds the rows of the DataTable. |
| Methods inherited from class com.sap.ui.core.client.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataTableWidget()
DataTableWidget
public DataTableWidget(String id)
DataTableWidget
id - id of the DataTableWidgetprotected DataTableWidget(DataTable control)
DataTableWidget
control - reference to an existing DataTable| Method Detail |
|---|
public DataTable getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic String getTitle()
title
Title of the Table (if not set/empty) the title will be hidden)
getTitle in class com.google.gwt.user.client.ui.UIObjectpublic void setTitle(String value)
title
setTitle in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getWidth()
width
Width of the Table
public void setWidth(String value)
widthauto
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic int getVisibleRowCount()
visibleRowCount
Count of visible rows
public void setVisibleRowCount(int value)
visibleRowCount10
value - intpublic int getExpandedVisibleRowCount()
expandedVisibleRowCount
Count of visible rows when expanded
public void setExpandedVisibleRowCount(int value)
expandedVisibleRowCount
value - intpublic int getFirstVisibleRow()
firstVisibleRow
First visible row
public void setFirstVisibleRow(int value)
firstVisibleRow0
value - intpublic SelectionMode getSelectionMode()
selectionMode
Selection mode of the Table
public void setSelectionMode(SelectionMode value)
selectionModeMulti
value - com.sap.ui.table.client.SelectionModepublic boolean isEditable()
editable
Flag whether the controls of the Table are editable or not
public void setEditable(boolean value)
editablefalse
value - booleanpublic boolean isExpanded()
expanded
Flag whether the Table is expanded or not
public void setExpanded(boolean value)
expandedfalse
value - booleanpublic boolean isHierarchical()
hierarchical
Flag, whether the table displays its content hierarchical or not **experimental**!!
public void setHierarchical(boolean value)
hierarchicalfalse
value - booleanpublic com.sap.ui.core.client.js.JsArray<Column> getColumns()
public void insertColumn(Column column,
int index)
column - the column to insertindex - int the 0-based index the column should be inserted at.public void addColumn(Column column)
column - com.sap.ui.table.client.Column the column to addpublic void removeColumn(int index)
index in the columns-aggregation named.
index - int the position of the column to remove.public void removeAllColumns()
public int indexOfColumn(Column column)
com.sap.ui.table.client.Column in the columns-aggregation and
returns its index if found or -1 otherwise.
column - the column whose index is looked for.
public void destroyColumns()
public com.sap.ui.commons.client.Toolbar getToolbar()
public void setToolbar(com.sap.ui.commons.client.Toolbar toolbar)
toolbar - {com.sap.ui.commons.client.Toolbar}public void destroyToolbar()
public void attachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
fired when a row of the table has been selected
listener - reference to the EventListenerpublic void detachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
fired when a row of the table has been selected
listener - reference to the EventListenerpublic void attachColumnSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
fired when a column of the table has been selected
listener - reference to the EventListenerpublic void detachColumnSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
fired when a column of the table has been selected
listener - reference to the EventListener
public void bindRows(String path,
Object sorter,
Object[] filters)
path - Binding path for the rows of the DataTable.sorter - Initial sorting property (defined by sap.ui.model/Sorter).filters - Predefined filter for the DataTable (defined by sap.ui.model/Filter).public void unbindRows()
public int getSelectedIndex()
public void setSelectedIndex(int index)
index - Index to be selected.public void addSelectedIndex(int index)
index - Index to add to selection.public void removeSelectedIndex(int index)
index - Index that shall be removed from selection.public Integer[] getSelectedIndices()
public void setSelectedIndices(Integer[] indices)
indices - Indices of the items to be selected.public void addSelectedIndices(Integer[] indices)
indices - Indices of the items that shall additionally be selected.public boolean isIndexSelected(int index)
index - Index which is checked for selection state.public void clearSelection()
public Object getContextByIndex(int index)
index - Index of the row to return the context from.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||