|
||||||||||
| 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.web.Table
public class Table
The class Table is the GWT wrapper
for the Phoenix control: sap.ui.table.web.Table.
Can dispay complex data in "semantic rows".
| Constructor Summary | |
|---|---|
protected |
Table()
constructs the class Tablehidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
Table |
attachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
Event is fired when an item is clicked. |
void |
clear()
Delete all records. |
static Table |
create()
creates a new instance of the class Table |
static Table |
create(String idOrConfig)
creates a new instance of the class Table |
static Table |
create(String id,
String config)
creates a new instance of the class Table |
void |
createRecord(com.sap.ui.core.client.Control data,
String id)
Create one table record. |
void |
createRecords(com.sap.ui.core.client.Control data)
Create multiple table records. |
void |
deleteRecord(String id)
Delete one table record. |
void |
deleteRecords(String id)
Delete multiple records |
Table |
destroyFooter()
Destroys the footer in the Footer-aggregation. |
Table |
destroyHeader()
Destroys the header in the Header-aggregation. |
Table |
destroyRecordTemplate()
Destroys the recordTemplate in the RecordTemplate-aggregation. |
Table |
detachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when an item is clicked. |
Toolbar |
getFooter()
Getter for aggregation footer Allows setting the sap.ui.table.web.Toolbar that should be displayed at the bottom of this instance of the sap.ui.table.web.Table. |
Toolbar |
getHeader()
Getter for aggregation header Allows setting the sap.ui.table.web.Toolbar that should be displayed in the top of this instance of the sap.ui.table.web.Table. |
int |
getMinHeight()
Getter for property minHeight
Minimum height of the semantic rows which is defined in pixel value. |
Record |
getRecordTemplate()
Getter for aggregation recordTemplate Allows setting an instance of sap.ui.table.web.Record that should used as template for the rows to be displayed in this instance of the sap.ui.table.web.Table. |
String |
getWidth()
Getter for property width
Control width as common CSS-size (px or % as unit, for example). |
boolean |
isAlternate()
Getter for property alternate
Alternating semantic row colors. |
boolean |
isVisible()
Getter for property visible
Defines whether control is visible. |
Table |
setAlternate(boolean value)
Setter for property alternateDefault value is: false |
Table |
setFooter(Toolbar footer)
Setter for the aggregated footer. |
Table |
setHeader(Toolbar header)
Setter for the aggregated header. |
Table |
setMinHeight(int value)
Setter for property minHeight |
Table |
setRecordTemplate(Record recordTemplate)
Setter for the aggregated recordTemplate. |
Table |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
Table |
setWidth(String value)
Setter for property width |
| 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 String getWidth()
width
Control width as common CSS-size (px or % as unit, for example).
public final Table setWidth(String value)
width
value - String
this to allow method chainingpublic final boolean isAlternate()
alternate
Alternating semantic row colors.
public final Table setAlternate(boolean value)
alternatefalse
value - boolean
this to allow method chainingpublic final int getMinHeight()
minHeight
Minimum height of the semantic rows which is defined in pixel value.
public final Table setMinHeight(int value)
minHeight
value - int
this to allow method chainingpublic final boolean isVisible()
visible
Defines whether control is visible.
public final Table setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final Toolbar getHeader()
public final Table setHeader(Toolbar header)
oheader - {com.sap.ui.table.client.web.Toolbar}
this to allow method chainingpublic final Table destroyHeader()
this to allow method chainingpublic final Toolbar getFooter()
public final Table setFooter(Toolbar footer)
ofooter - {com.sap.ui.table.client.web.Toolbar}
this to allow method chainingpublic final Table destroyFooter()
this to allow method chainingpublic final Record getRecordTemplate()
public final Table setRecordTemplate(Record recordTemplate)
orecordTemplate - {com.sap.ui.table.client.web.Record}
this to allow method chainingpublic final Table destroyRecordTemplate()
this to allow method chainingpublic final Table attachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when an item is clicked.
listener - reference to the EventListener
this to allow method chainingpublic final Table detachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when an item is clicked.
listener - reference to the EventListener
this to allow method chaining
public final void createRecord(com.sap.ui.core.client.Control data,
String id)
data - Object which holds controls for the table cells.id - Record identifier.public final void deleteRecord(String id)
id - Record identifierpublic final void createRecords(com.sap.ui.core.client.Control data)
data - An object which holds controls for the table cells.public final void deleteRecords(String id)
id - Array with multiple IDs.public final void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||