|
||||||||||
| 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.TableWidget
public class TableWidget
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.
| 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 | |
|---|---|
|
TableWidget()
Deprecated. Since version 0.16.0. The sap.ui.table.Table control is replaced by the sap.ui.table.DataTable. |
|
TableWidget(String id)
Deprecated. Since version 0.16.0. The sap.ui.table.Table control is replaced by the sap.ui.table.DataTable. |
protected |
TableWidget(Table control)
Deprecated. Since version 0.16.0. The sap.ui.table.Table control is replaced by the sap.ui.table.DataTable. |
| Method Summary | |
|---|---|
void |
addColumnHeader(ColumnHeader columnHeader)
Appends some columnHeader to the columnHeaders-aggregation. |
void |
addRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton)
Appends some rightToolbarButton to the rightToolbarButtons-aggregation. |
void |
attachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user deselects a row. |
void |
attachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when the user selects a row. |
void |
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. |
void |
destroyActionToolbar()
Destroys the actionToolbar in the ActionToolbar-aggregation. |
void |
destroyColumnHeaders()
Destroys all the columnHeaders in the ColumnHeaders-aggregation. |
void |
destroyRightToolbarButtons()
Destroys all the rightToolbarButtons in the RightToolbarButtons-aggregation. |
void |
detachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user deselects a row. |
void |
detachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when the user selects a row. |
void |
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. |
Table |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
insertColumnHeader(ColumnHeader columnHeader,
int index)
Inserts some columnHeader into the aggregation named columnHeaders. |
void |
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. |
void |
removeAllColumnHeaders()
Removes all the items in the columnHeaders-aggregation. |
void |
removeAllRightToolbarButtons()
Removes all the items in the rightToolbarButtons-aggregation. |
void |
removeColumnHeader(int index)
Removes the columnHeader at position index in the columnHeaders-aggregation named. |
void |
removeRightToolbarButton(int index)
Removes the rightToolbarButton at position index in the rightToolbarButtons-aggregation named. |
void |
setActionToolbar(com.sap.ui.commons.client.Toolbar actionToolbar)
Setter for the aggregated actionToolbar. |
void |
setCustomRowHeight(int value)
Setter for property customRowHeight |
void |
setData(Object value)
Setter for property data |
void |
setDesign(TableVisualDesign value)
Setter for property designDefault value is: sap.ui.table.TableVisualDesign.Standard |
void |
setEditable(boolean value)
Setter for property editableDefault value is: false |
void |
setExpandedVisibleRowCount(int value)
Setter for property expandedVisibleRowCountDefault value is: -1 |
void |
setSelectionMode(SelectionMode value)
Setter for property selectionModeDefault value is: sap.ui.table.SelectionMode.All |
void |
setTitle(String value)
Setter for property title |
void |
setTreeInformation(Object value)
Setter for property treeInformation |
void |
setVisibleFirstRow(int value)
Setter for property visibleFirstRowDefault value is: 0 |
void |
setVisibleRowCount(int value)
Setter for property visibleRowCountDefault value is: 10 |
void |
setWidth(String value)
Setter for property widthDefault value is: auto |
| 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 TableWidget()
TableWidget
public TableWidget(String id)
TableWidget
id - id of the TableWidgetprotected TableWidget(Table control)
TableWidget
control - reference to an existing Table| Method Detail |
|---|
public Table getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic Object getData()
data
The data to be displayed in the table. For now this will only be nested objects.
public void setData(Object value)
data
value - Objectpublic Object getTreeInformation()
treeInformation
The tree specific information. It provides information like what node is expanded/collapsed by default
public void setTreeInformation(Object value)
treeInformation
value - Objectpublic 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 void setSelectionMode(SelectionMode value)
selectionModesap.ui.table.SelectionMode.All
value - com.sap.ui.table.client.SelectionModepublic boolean isEditable()
editable
Switches edit state of the control. Read-only fields have different colors, depending on customer setting.
public void setEditable(boolean value)
editablefalse
value - booleanpublic String getTitle()
title
Title to be displayed on the top of the table
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 int getVisibleRowCount()
visibleRowCount
The number of rows visible before scrolling. Max 50.
public void setVisibleRowCount(int value)
visibleRowCount10
value - intpublic int getVisibleFirstRow()
visibleFirstRow
First visible row of the table.
The table will scroll to that row.
public void setVisibleFirstRow(int value)
visibleFirstRow0
value - intpublic int getExpandedVisibleRowCount()
expandedVisibleRowCount
Number of rows to be displayed when the table is expanded.
public void setExpandedVisibleRowCount(int value)
expandedVisibleRowCount-1
value - intpublic int getCustomRowHeight()
customRowHeight
Sets the height of every row in "px" to the given value. (customRowHeight < 25 is ignored)
public void setCustomRowHeight(int value)
customRowHeight
value - intpublic String getWidth()
width
Width of the table
public void setWidth(String value)
widthauto
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic TableVisualDesign getDesign()
design
Design that influences the look-and-feel of the table.
public void setDesign(TableVisualDesign value)
designsap.ui.table.TableVisualDesign.Standard
value - com.sap.ui.table.client.TableVisualDesignpublic com.sap.ui.core.client.js.JsArray<ColumnHeader> getColumnHeaders()
public void insertColumnHeader(ColumnHeader columnHeader,
int index)
columnHeader - the columnHeader to insertindex - int the 0-based index the columnHeader should be inserted at.public void addColumnHeader(ColumnHeader columnHeader)
columnHeader - com.sap.ui.table.client.ColumnHeader the columnHeader to addpublic void removeColumnHeader(int index)
index in the columnHeaders-aggregation named.
index - int the position of the columnHeader to remove.public void removeAllColumnHeaders()
public 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 void destroyColumnHeaders()
public com.sap.ui.commons.client.Toolbar getActionToolbar()
public void setActionToolbar(com.sap.ui.commons.client.Toolbar actionToolbar)
actionToolbar - {com.sap.ui.commons.client.Toolbar}public void destroyActionToolbar()
public com.sap.ui.core.client.js.JsArray<com.sap.ui.commons.client.Button> getRightToolbarButtons()
public void insertRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton,
int index)
rightToolbarButton - the rightToolbarButton to insertindex - int the 0-based index the rightToolbarButton should be inserted at.public void addRightToolbarButton(com.sap.ui.commons.client.Button rightToolbarButton)
rightToolbarButton - com.sap.ui.commons.client.Button the rightToolbarButton to addpublic void removeRightToolbarButton(int index)
index in the rightToolbarButtons-aggregation named.
index - int the position of the rightToolbarButton to remove.public void removeAllRightToolbarButtons()
public 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 void destroyRightToolbarButtons()
public void attachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a row.
listener - reference to the EventListenerpublic void detachRowSelectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user selects a row.
listener - reference to the EventListenerpublic void attachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user deselects a row.
listener - reference to the EventListenerpublic void detachRowDeselectEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when the user deselects a row.
listener - reference to the EventListenerpublic void 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 EventListenerpublic void 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||