|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.table.client.Table
public class Table
The class Table is the GWT wrapper
for the Phoenix control: sap.ui.table.Table.
Provides a table with one or more columns. The table could have a scrollbar and the content inside the table is either editable or not.
| Constructor Summary | |
|---|---|
protected |
Table()
constructs the class Tablehidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Table |
addColumnHeader(ColumnHeader columnHeader)
Appends a columnHeader to the aggregation columnHeaders. |
Table |
addRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton)
Appends a rightToolbarButton to the aggregation rightToolbarButtons. |
Table |
attachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user deselects a row. |
Table |
attachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user selects a row. |
Table |
attachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user toggles a tree node such that its expand or collapsed. |
static Table |
create()
Deprecated. Since version 0.16.0. The sap.ui.table.Table control is replaced by the sap.ui.table.DataTable. |
static Table |
create(String idOrConfig)
Deprecated. Since version 0.16.0. The sap.ui.table.Table control is replaced by the sap.ui.table.DataTable. |
static Table |
create(String id,
String config)
Deprecated. Since version 0.16.0. The sap.ui.table.Table control is replaced by the sap.ui.table.DataTable. |
Table |
destroyActionToolbar()
Destroys the actionToolbar in the ActionToolbar-aggregation. |
Table |
destroyColumnHeaders()
Destroys all the columnHeaders in the ColumnHeaders-aggregation. |
Table |
destroyRightToolbarButtons()
Destroys all the rightToolbarButtons in the RightToolbarButtons-aggregation. |
Table |
detachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user deselects a row. |
Table |
detachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user selects a row. |
Table |
detachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user toggles a tree node such that its expand or collapsed. |
com.sap.ui.commons.client.Toolbar |
getActionToolbar()
Getter for aggregation actionToolbar Getter for aggregation left toolbar. |
com.sap.ui.core.client.js.JsArray<ColumnHeader> |
getColumnHeaders()
Getter for aggregation columnHeaders Getter for aggregation column headers. |
int |
getCustomRowHeight()
Getter for property customRowHeight
Sets the height of every row in "px" to the given value. |
Object |
getData()
Getter for property data
The data to be displayed in the table. |
TableVisualDesign |
getDesign()
Getter for property design
Design that influences the look-and-feel of the table. |
int |
getExpandedVisibleRowCount()
Getter for property expandedVisibleRowCount
Number of rows to be displayed when the table is expanded. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button> |
getRightToolbarButtons()
Getter for aggregation rightToolbarButtons Getter for aggregation right toolbar buttons. |
SelectionMode |
getSelectionMode()
Getter for property selectionMode
Selection mode of the table
The following selection mode can be chosen: sap.ui.table.SelectionMode.All, sap.ui.table.SelectionMode.Single, sap.ui.table.SelectionMode.None. |
String |
getTitle()
Getter for property title
Title to be displayed on the top of the table |
Object |
getTreeInformation()
Getter for property treeInformation
The tree specific information. |
int |
getVisibleFirstRow()
Getter for property visibleFirstRow
First visible row of the table. |
int |
getVisibleRowCount()
Getter for property visibleRowCount
The number of rows visible before scrolling. |
String |
getWidth()
Getter for property width
Width of the table |
int |
indexOfColumnHeader(ColumnHeader columnHeader)
Checks for the provided com.sap.ui.table.client.ColumnHeader in the columnHeaders-aggregation and
returns its index if found or -1 otherwise. |
int |
indexOfRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton)
Checks for the provided com.sap.ui.commons.client.Button in the rightToolbarButtons-aggregation and
returns its index if found or -1 otherwise. |
Table |
insertColumnHeader(ColumnHeader columnHeader,
int index)
Inserts some columnHeader into the aggregation named columnHeaders. |
Table |
insertRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton,
int index)
Inserts some rightToolbarButton into the aggregation named rightToolbarButtons. |
boolean |
isEditable()
Getter for property editable
Switches edit state of the control. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<ColumnHeader>> |
removeAllColumnHeaders()
Removes all the items in the columnHeaders-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button>> |
removeAllRightToolbarButtons()
Removes all the items in the rightToolbarButtons-aggregation. |
com.sap.ui.core.client.js.JsArray<ColumnHeader> |
removeColumnHeader(int index)
Removes a columnHeader from the aggregation named columnHeaders. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button> |
removeRightToolbarButton(int index)
Removes a rightToolbarButton from the aggregation named rightToolbarButtons. |
Table |
setActionToolbar(com.sap.ui.commons.client.Toolbar actionToolbar)
Setter for the aggregated actionToolbar. |
Table |
setCustomRowHeight(int value)
Setter for property customRowHeight |
Table |
setData(Object value)
Setter for property data |
Table |
setDesign(TableVisualDesign value)
Setter for property designDefault value is: sap.ui.table.TableVisualDesign.Standard |
Table |
setEditable(boolean value)
Setter for property editableDefault value is: false |
Table |
setExpandedVisibleRowCount(int value)
Setter for property expandedVisibleRowCountDefault value is: -1 |
Table |
setSelectionMode(SelectionMode value)
Setter for property selectionModeDefault value is: sap.ui.table.SelectionMode.All |
Table |
setTitle(String value)
Setter for property title |
Table |
setTreeInformation(Object value)
Setter for property treeInformation |
Table |
setVisibleFirstRow(int value)
Setter for property visibleFirstRowDefault value is: 0 |
Table |
setVisibleRowCount(int value)
Setter for property visibleRowCountDefault value is: 10 |
Table |
setWidth(String value)
Setter for property widthDefault value is: auto |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Table()
TableJavaScriptObject restriction
| Method Detail |
|---|
public static Table create()
Table
public static Table create(String idOrConfig)
Table
id - id of the Table or configuration JSON string
public static Table create(String id,
String config)
Table
id - id of the Tableconfig - configuration JSON stringpublic final Object getData()
data
The data to be displayed in the table. For now this will only be nested objects.
public final Table setData(Object value)
data
value - Object
this to allow method chainingpublic final Object getTreeInformation()
treeInformation
The tree specific information. It provides information like what node is expanded/collapsed by default
public final Table setTreeInformation(Object value)
treeInformation
value - Object
this to allow method chainingpublic final SelectionMode getSelectionMode()
selectionMode
Selection mode of the table
The following selection mode can be chosen: sap.ui.table.SelectionMode.All, sap.ui.table.SelectionMode.Single, sap.ui.table.SelectionMode.None.
public final Table setSelectionMode(SelectionMode value)
selectionModesap.ui.table.SelectionMode.All
value - com.sap.ui.table.client.SelectionMode
this to allow method chainingpublic final boolean isEditable()
editable
Switches edit state of the control. Read-only fields have different colors, depending on customer setting.
public final Table setEditable(boolean value)
editablefalse
value - boolean
this to allow method chainingpublic final String getTitle()
title
Title to be displayed on the top of the table
public final Table setTitle(String value)
title
value - String
this to allow method chainingpublic final int getVisibleRowCount()
visibleRowCount
The number of rows visible before scrolling. Max 50.
public final Table setVisibleRowCount(int value)
visibleRowCount10
value - int
this to allow method chainingpublic final int getVisibleFirstRow()
visibleFirstRow
First visible row of the table.
The table will scroll to that row.
public final Table setVisibleFirstRow(int value)
visibleFirstRow0
value - int
this to allow method chainingpublic final int getExpandedVisibleRowCount()
expandedVisibleRowCount
Number of rows to be displayed when the table is expanded.
public final Table setExpandedVisibleRowCount(int value)
expandedVisibleRowCount-1
value - int
this to allow method chainingpublic final int getCustomRowHeight()
customRowHeight
Sets the height of every row in "px" to the given value. (customRowHeight < 25 is ignored)
public final Table setCustomRowHeight(int value)
customRowHeight
value - int
this to allow method chainingpublic final String getWidth()
width
Width of the table
public final Table setWidth(String value)
widthauto
value - String
this to allow method chainingpublic final TableVisualDesign getDesign()
design
Design that influences the look-and-feel of the table.
public final Table setDesign(TableVisualDesign value)
designsap.ui.table.TableVisualDesign.Standard
value - com.sap.ui.table.client.TableVisualDesign
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<ColumnHeader> getColumnHeaders()
public final Table insertColumnHeader(ColumnHeader columnHeader,
int index)
columnHeaders.
columnHeader - the columnHeader to insertindex - int the 0-based index the columnHeader should be inserted at.
this to allow method chainingpublic final Table addColumnHeader(ColumnHeader columnHeader)
columnHeaders.
columnHeader - com.sap.ui.table.client.ColumnHeader the columnHeader to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<ColumnHeader> removeColumnHeader(int index)
columnHeaders.
index - int the position of the columnHeader to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<ColumnHeader>> removeAllColumnHeaders()
public final int indexOfColumnHeader(ColumnHeader columnHeader)
com.sap.ui.table.client.ColumnHeader in the columnHeaders-aggregation and
returns its index if found or -1 otherwise.
columnHeader - the columnHeader whose index is looked for.
public final Table destroyColumnHeaders()
this to allow method chainingpublic final com.sap.ui.commons.client.Toolbar getActionToolbar()
public final Table setActionToolbar(com.sap.ui.commons.client.Toolbar actionToolbar)
oactionToolbar - {com.sap.ui.commons.client.Toolbar}
this to allow method chainingpublic final Table destroyActionToolbar()
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button> getRightToolbarButtons()
public final Table insertRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton,
int index)
rightToolbarButtons.
rightToolbarButton - the rightToolbarButton to insertindex - int the 0-based index the rightToolbarButton should be inserted at.
this to allow method chainingpublic final Table addRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton)
rightToolbarButtons.
rightToolbarButton - com.sap.ui.commons.client.Button the rightToolbarButton to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button> removeRightToolbarButton(int index)
rightToolbarButtons.
index - int the position of the rightToolbarButton to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button>> removeAllRightToolbarButtons()
public final int indexOfRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton)
com.sap.ui.commons.client.Button in the rightToolbarButtons-aggregation and
returns its index if found or -1 otherwise.
rightToolbarButton - the rightToolbarButton whose index is looked for.
public final Table destroyRightToolbarButtons()
this to allow method chainingpublic final Table attachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a row.
listener - reference to the EventListener
this to allow method chainingpublic final Table detachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a row.
listener - reference to the EventListener
this to allow method chainingpublic final Table attachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user deselects a row.
listener - reference to the EventListener
this to allow method chainingpublic final Table detachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user deselects a row.
listener - reference to the EventListener
this to allow method chainingpublic final Table attachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user toggles a tree node such that its expand or collapsed.
listener - reference to the EventListener
this to allow method chainingpublic final Table detachToggleOpenStateEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user toggles a tree node such that its expand or collapsed.
listener - reference to the EventListener
this to allow method chaining
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||