|
||||||||||
| 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.web.TableWidget
public class TableWidget
The class Table is the GWT wrapper
for the Phoenix control: sap.ui.table.web.Table.
Can dispay complex data in "semantic rows".
| 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()
constructs the class TableWidget |
|
TableWidget(String id)
constructs the class TableWidget |
protected |
TableWidget(Table control)
constructs the class TableWidget |
| Method Summary | |
|---|---|
void |
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. |
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 |
void |
destroyFooter()
Destroys the footer in the Footer-aggregation. |
void |
destroyHeader()
Destroys the header in the Header-aggregation. |
void |
destroyRecordTemplate()
Destroys the recordTemplate in the RecordTemplate-aggregation. |
void |
detachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
Event is fired when an item is clicked. |
Table |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
setAlternate(boolean value)
Setter for property alternateDefault value is: false |
void |
setFooter(Toolbar footer)
Setter for the aggregated footer. |
void |
setHeader(Toolbar header)
Setter for the aggregated header. |
void |
setMinHeight(int value)
Setter for property minHeight |
void |
setRecordTemplate(Record recordTemplate)
Setter for the aggregated recordTemplate. |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
setWidth(String value)
Setter for property width |
| 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, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, 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 String getWidth()
width
Control width as common CSS-size (px or % as unit, for example).
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic boolean isAlternate()
alternate
Alternating semantic row colors.
public void setAlternate(boolean value)
alternatefalse
value - booleanpublic int getMinHeight()
minHeight
Minimum height of the semantic rows which is defined in pixel value.
public void setMinHeight(int value)
minHeight
value - intpublic boolean isVisible()
visible
Defines whether control is visible.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic Toolbar getHeader()
public void setHeader(Toolbar header)
header - {com.sap.ui.table.client.web.Toolbar}public void destroyHeader()
public Toolbar getFooter()
public void setFooter(Toolbar footer)
footer - {com.sap.ui.table.client.web.Toolbar}public void destroyFooter()
public Record getRecordTemplate()
public void setRecordTemplate(Record recordTemplate)
recordTemplate - {com.sap.ui.table.client.web.Record}public void destroyRecordTemplate()
public void attachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when an item is clicked.
listener - reference to the EventListenerpublic void detachItemSelectedEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
Event is fired when an item is clicked.
listener - reference to the EventListener
public void createRecord(com.sap.ui.core.client.Control data,
String id)
data - Object which holds controls for the table cells.id - Record identifier.public void deleteRecord(String id)
id - Record identifierpublic void createRecords(com.sap.ui.core.client.Control data)
data - An object which holds controls for the table cells.public void deleteRecords(String id)
id - Array with multiple IDs.public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||