|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Web Dynpro Table API. Table represents a two-dimensional data set arranged in rows and columns.
Data binding:
The table gets its data from a context node X.
The number of table rows is given by the number of elements in X.
The selected table rows are given by the selection of X.
The editable row is determined by the lead selection of X.
Table columns are defined by aggregating TableColumn objects. Each table column has a table cell editor. Every property of the table cell editor may be bound either
X, or
i is determined by the attribute value of the ith node element.
Otherwise, the property value is the same for all rows and given by the root attribute's value.
This type can be called by applications using Web Dynpro, but DO NOT EXTEND OR IMPLEMENT IT!
| Field Summary | |
static java.lang.String |
DEFAULT_ACCESSIBILITY_DESCRIPTION
Default value of property accessibilityDescription. |
static WDTableDesign |
DEFAULT_DESIGN
Default value of property design. |
static int |
DEFAULT_FIRST_VISIBLE_ROW
Default value of property firstVisibleRow. |
static boolean |
DEFAULT_FOOTER_VISIBLE
Default value of property footerVisible. |
static boolean |
DEFAULT_READ_ONLY
Default value of property readOnly. |
static WDTableSelectionMode |
DEFAULT_SELECTION_MODE
Default value of property selectionMode. |
static int |
DEFAULT_VISIBLE_ROW_COUNT
Default value of property visibleRowCount. |
static java.lang.String |
DEFAULT_WIDTH
Default value of property width. |
| Fields inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
DEFAULT_ENABLED, DEFAULT_TOOLTIP, DEFAULT_VISIBLE |
| Method Summary | |
void |
addColumn(IWDTableColumn aTableColumn)
Adds the given Column at the end of the list of Columns. |
void |
addColumn(IWDTableColumn aTableColumn,
int index)
Adds the given Column at the specified index in the list of Columns. |
void |
bindAccessibilityDescription(IWDAttributeInfo attributeInfo)
Binds property accessibilityDescription to the context attribute
specified by the given attribute info. |
void |
bindAccessibilityDescription(java.lang.String path)
Binds property accessibilityDescription to the context attribute
specified by path. |
void |
bindDataSource(IWDNodeInfo nodeInfo)
Note: This property must be bound to the context! Binds property dataSource to the context node
specified by the given node info. |
void |
bindDataSource(java.lang.String path)
Note: This property must be bound to the context! Binds property dataSource to the context attribute
specified by path. |
void |
bindDesign(IWDAttributeInfo attributeInfo)
Binds property design to the context attribute
specified by the given attribute info. |
void |
bindDesign(java.lang.String path)
Binds property design to the context attribute
specified by path. |
void |
bindFirstVisibleRow(IWDAttributeInfo attributeInfo)
Binds property firstVisibleRow to the context attribute
specified by the given attribute info. |
void |
bindFirstVisibleRow(java.lang.String path)
Binds property firstVisibleRow to the context attribute
specified by path. |
void |
bindFooterVisible(IWDAttributeInfo attributeInfo)
Binds property footerVisible to the context attribute
specified by the given attribute info. |
void |
bindFooterVisible(java.lang.String path)
Binds property footerVisible to the context attribute
specified by path. |
java.lang.String |
bindingOfAccessibilityDescription()
Binding path of property accessibilityDescription. |
java.lang.String |
bindingOfDataSource()
Note: This property must be bound to the context! Binding path of property dataSource. |
java.lang.String |
bindingOfDesign()
Binding path of property design. |
java.lang.String |
bindingOfFirstVisibleRow()
Binding path of property firstVisibleRow. |
java.lang.String |
bindingOfFooterVisible()
Binding path of property footerVisible. |
java.lang.String |
bindingOfReadOnly()
Binding path of property readOnly. |
java.lang.String |
bindingOfVisibleRowCount()
Binding path of property visibleRowCount. |
java.lang.String |
bindingOfWidth()
Binding path of property width. |
void |
bindReadOnly(IWDAttributeInfo attributeInfo)
Binds property readOnly to the context attribute
specified by the given attribute info. |
void |
bindReadOnly(java.lang.String path)
Binds property readOnly to the context attribute
specified by path. |
void |
bindVisibleRowCount(IWDAttributeInfo attributeInfo)
Binds property visibleRowCount to the context attribute
specified by the given attribute info. |
void |
bindVisibleRowCount(java.lang.String path)
Binds property visibleRowCount to the context attribute
specified by path. |
void |
bindWidth(IWDAttributeInfo attributeInfo)
Binds property width to the context attribute
specified by the given attribute info. |
void |
bindWidth(java.lang.String path)
Binds property width to the context attribute
specified by path. |
void |
destroyAllColumns()
Destroys all entries in the list of Columns. |
void |
destroyHeader()
Destroys the Header instance. |
void |
destroyMasterColumn()
Destroys the MasterColumn instance. |
void |
destroyToolBar()
Destroys the ToolBar instance. |
java.lang.String |
getAccessibilityDescription()
Returns the value of the accessibilityDescription property. |
IWDTableColumn |
getColumn(int index)
Returns the Column at the given index. |
IWDTableColumn[] |
getColumns()
Returns the list of Columns. |
WDTableDesign |
getDesign()
Returns the value of the design property. |
int |
getFirstVisibleRow()
Returns the value of the firstVisibleRow property. |
boolean |
getFooterVisible()
Returns the value of the footerVisible property. |
IWDCaption |
getHeader()
Gets the Header instance. |
IWDAbstractMasterTableColumn |
getMasterColumn()
Gets the MasterColumn instance. |
IWDAction |
getOnFilter()
Returns the action to which the event onFilter is mapped. |
IWDAction |
getOnLeadSelect()
Returns the action to which the event onLeadSelect is mapped. |
boolean |
getReadOnly()
Returns the value of the readOnly property. |
WDTableSelectionMode |
getSelectionMode()
Returns the value of the selectionMode property. |
IWDToolBar |
getToolBar()
Gets the ToolBar instance. |
int |
getVisibleRowCount()
Returns the value of the visibleRowCount property. |
java.lang.String |
getWidth()
Returns the value of the width property. |
boolean |
hasColumns()
Checks if there exist Columns. |
int |
indexOfColumn(IWDTableColumn aTableColumn)
Returns the index of the given element in the list of Columns or -1 if it is not contained in the list. |
java.util.Iterator |
iterateColumns()
Returns an iterator over the list of Columns. |
IWDParameterMapping |
mappingOfOnFilter()
Returns the parameter mapping of event onFilter. |
IWDParameterMapping |
mappingOfOnLeadSelect()
Returns the parameter mapping of event onLeadSelect. |
int |
numberOfColumns()
Returns the number of Columns. |
void |
removeAllColumns()
Removes all entries from the list of Columns. |
IWDTableColumn |
removeColumn(int index)
Removes the entry at the given index from the list of Columns. |
IWDTableColumn |
removeColumn(java.lang.String id)
Removes the entry with the given ID from the list of Columns. |
void |
setAccessibilityDescription(java.lang.String value)
Sets property accessibilityDescription to the new value. |
void |
setDesign(WDTableDesign value)
Sets property design to the new value. |
void |
setFirstVisibleRow(int value)
Sets property firstVisibleRow to the new value. |
void |
setFooterVisible(boolean value)
Sets property footerVisible to the new value. |
void |
setHeader(IWDCaption header)
Sets the Header instance. |
void |
setMasterColumn(IWDAbstractMasterTableColumn masterColumn)
Sets the MasterColumn instance. |
void |
setOnFilter(IWDAction action)
Maps the event onFilter to the given action. |
void |
setOnLeadSelect(IWDAction action)
Maps the event onLeadSelect to the given action. |
void |
setReadOnly(boolean value)
Sets property readOnly to the new value. |
void |
setSelectionMode(WDTableSelectionMode selectionMode)
Sets property selectionMode to the given value. |
void |
setToolBar(IWDToolBar toolBar)
Sets the ToolBar instance. |
void |
setVisibleRowCount(int value)
Sets property visibleRowCount to the new value. |
void |
setWidth(java.lang.String value)
Sets property width to the new value. |
void |
swapColumns(int i,
int j)
Swaps the Columns at the given indices. |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDUIElement |
bindEnabled, bindEnabled, bindingOfEnabled, bindingOfTooltip, bindingOfVisible, bindTooltip, bindTooltip, bindVisible, bindVisible, createLayoutData, getContainer, getEnabled, getLayoutData, getTooltip, getVisible, setEnabled, setTooltip, setVisible |
| Methods inherited from interface com.sap.tc.webdynpro.progmodel.api.IWDViewElement |
getId, getView, requestFocus |
| Field Detail |
public static final java.lang.String DEFAULT_ACCESSIBILITY_DESCRIPTION
accessibilityDescription.public static final WDTableDesign DEFAULT_DESIGN
design.public static final int DEFAULT_FIRST_VISIBLE_ROW
firstVisibleRow.public static final boolean DEFAULT_FOOTER_VISIBLE
footerVisible.public static final boolean DEFAULT_READ_ONLY
readOnly.public static final WDTableSelectionMode DEFAULT_SELECTION_MODE
selectionMode.public static final int DEFAULT_VISIBLE_ROW_COUNT
visibleRowCount.public static final java.lang.String DEFAULT_WIDTH
width.| Method Detail |
public IWDAction getOnFilter()
onFilter is mapped.
The event raised when the filter button is pressed.mappingOfOnFilter()public void setOnFilter(IWDAction action)
onFilter to the given action.action - the action for the eventgetOnFilter()public IWDParameterMapping mappingOfOnFilter()
onFilter.
To be accessible in a view controller, a UI element event parameter has to be mapped to a controller event handler parameter. This is done by defining a parameter mapping.
Event parameters:getOnFilter()public IWDAction getOnLeadSelect()
onLeadSelect is mapped.
The action performed when the lead selection of the table was changed.
Event parameters are the ID of the column and the zero based index of the row
where the selection occured.mappingOfOnLeadSelect()public void setOnLeadSelect(IWDAction action)
onLeadSelect to the given action.action - the action for the eventgetOnLeadSelect()public IWDParameterMapping mappingOfOnLeadSelect()
onLeadSelect.
To be accessible in a view controller, a UI element event parameter has to be mapped to a controller event handler parameter. This is done by defining a parameter mapping.
Event parameters:getOnLeadSelect()public void bindAccessibilityDescription(java.lang.String path)
accessibilityDescription to the context attribute
specified by path.path - the path of the context attribute to which the accessibilityDescription
property is boundpublic void bindAccessibilityDescription(IWDAttributeInfo attributeInfo)
accessibilityDescription to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
accessibilityDescription property is boundpublic java.lang.String bindingOfAccessibilityDescription()
accessibilityDescription.public java.lang.String getAccessibilityDescription()
accessibilityDescription property.
The initial value is "".
Short description for the Table (it's like a title) in the accessibility mode. Should be used if no title is available. If you set both, title and accessibilityDescription, only the accessibilityDescription is considered. It is only used if accessibility mode (508) is switched on and will be included into the tooltip. Its read by the screen reader when the whole UI element gets the focus.setAccessibilityDescription(String)public void setAccessibilityDescription(java.lang.String value)
accessibilityDescription to the new value.value - the new value of the accessibilityDescription propertygetAccessibilityDescription()public void bindDataSource(java.lang.String path)
dataSource to the context attribute
specified by path.path - the path of the context attribute to which the dataSource
property is boundpublic void bindDataSource(IWDNodeInfo nodeInfo)
dataSource to the context node
specified by the given node info.nodeInfo - the info of the context node to which the
dataSource property is boundpublic java.lang.String bindingOfDataSource()
dataSource.public void bindDesign(java.lang.String path)
design to the context attribute
specified by path.path - the path of the context attribute to which the design
property is boundpublic void bindDesign(IWDAttributeInfo attributeInfo)
design to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
design property is boundpublic java.lang.String bindingOfDesign()
design.public WDTableDesign getDesign()
design property.
The initial value is WDTableDesign.STANDARD.
Determines the visual design of the table.setDesign(WDTableDesign)public void setDesign(WDTableDesign value)
design to the new value.value - the new value of the design propertygetDesign()public void bindFirstVisibleRow(java.lang.String path)
firstVisibleRow to the context attribute
specified by path.path - the path of the context attribute to which the firstVisibleRow
property is boundpublic void bindFirstVisibleRow(IWDAttributeInfo attributeInfo)
firstVisibleRow to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
firstVisibleRow property is boundpublic java.lang.String bindingOfFirstVisibleRow()
firstVisibleRow.public int getFirstVisibleRow()
firstVisibleRow property.
The initial value is 0.
Determines which row should be the first visible, counts from zero.setFirstVisibleRow(int)public void setFirstVisibleRow(int value)
firstVisibleRow to the new value.value - the new value of the firstVisibleRow propertygetFirstVisibleRow()public void bindFooterVisible(java.lang.String path)
footerVisible to the context attribute
specified by path.path - the path of the context attribute to which the footerVisible
property is boundpublic void bindFooterVisible(IWDAttributeInfo attributeInfo)
footerVisible to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
footerVisible property is boundpublic java.lang.String bindingOfFooterVisible()
footerVisible.public boolean getFooterVisible()
footerVisible property.
The initial value is true.
Determines if the table footer is displayed.setFooterVisible(boolean)public void setFooterVisible(boolean value)
footerVisible to the new value.value - the new value of the footerVisible propertygetFooterVisible()public void bindReadOnly(java.lang.String path)
readOnly to the context attribute
specified by path.path - the path of the context attribute to which the readOnly
property is boundpublic void bindReadOnly(IWDAttributeInfo attributeInfo)
readOnly to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
readOnly property is boundpublic java.lang.String bindingOfReadOnly()
readOnly.public boolean getReadOnly()
readOnly property.
The initial value is false.
Determines if the table is editable. If set to true editing data in the table is disabled.setReadOnly(boolean)public void setReadOnly(boolean value)
readOnly to the new value.value - the new value of the readOnly propertygetReadOnly()public WDTableSelectionMode getSelectionMode()
selectionMode property.
The initial value is WDTableSelectionMode.AUTO.
Determines how table rows can be selected.setSelectionMode(WDTableSelectionMode)public void setSelectionMode(WDTableSelectionMode selectionMode)
selectionMode to the given value.selectionMode - the new selectionMode valuegetSelectionMode()public void bindVisibleRowCount(java.lang.String path)
visibleRowCount to the context attribute
specified by path.path - the path of the context attribute to which the visibleRowCount
property is boundpublic void bindVisibleRowCount(IWDAttributeInfo attributeInfo)
visibleRowCount to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
visibleRowCount property is boundpublic java.lang.String bindingOfVisibleRowCount()
visibleRowCount.public int getVisibleRowCount()
visibleRowCount property.
The initial value is 5.
The number of rows that should be visible without scrolling; a value of -1 means "unlimited" and displays all rows without scrolling.setVisibleRowCount(int)public void setVisibleRowCount(int value)
visibleRowCount to the new value.value - the new value of the visibleRowCount propertygetVisibleRowCount()public void bindWidth(java.lang.String path)
width to the context attribute
specified by path.path - the path of the context attribute to which the width
property is boundpublic void bindWidth(IWDAttributeInfo attributeInfo)
width to the context attribute
specified by the given attribute info.attributeInfo - the info of the context attribute to which the
width property is boundpublic java.lang.String bindingOfWidth()
width.public java.lang.String getWidth()
width property.
The initial value is "".
The width (CSS size) of the table.setWidth(String)public void setWidth(java.lang.String value)
width to the new value.value - the new value of the width propertygetWidth()public void addColumn(IWDTableColumn aTableColumn)
aTableColumn - the Column to be added into the listgetColumns()
public void addColumn(IWDTableColumn aTableColumn,
int index)
aTableColumn - the Column to be added into the listindex - zero based index of the insertion position in the listgetColumns()
public void swapColumns(int i,
int j)
i - index of the first Column to swapj - index of the second Column to swapIndexOutOfBoundsException - If one of the indices is out of boundspublic IWDTableColumn[] getColumns()
public IWDTableColumn getColumn(int index)
public int indexOfColumn(IWDTableColumn aTableColumn)
-1 if it is not contained in the list.public int numberOfColumns()
getColumns()public boolean hasColumns()
true if there are Columns;
false otherwise.getColumns()public java.util.Iterator iterateColumns()
getColumns()public IWDTableColumn removeColumn(int index)
index - zero based index of the deletion position in the listaddColumn(IWDTableColumn),
getColumns()public IWDTableColumn removeColumn(java.lang.String id)
id - unique ID of the element to be deleted from the listaddColumn(IWDTableColumn),
getColumns()public void removeAllColumns()
addColumn(IWDTableColumn),
getColumns()public void destroyAllColumns()
public IWDCaption getHeader()
setHeader(IWDCaption)public void setHeader(IWDCaption header)
header - the new headergetHeader()public void destroyHeader()
public IWDAbstractMasterTableColumn getMasterColumn()
setMasterColumn(IWDAbstractMasterTableColumn)public void setMasterColumn(IWDAbstractMasterTableColumn masterColumn)
masterColumn - the new masterColumngetMasterColumn()public void destroyMasterColumn()
public IWDToolBar getToolBar()
setToolBar(IWDToolBar)public void setToolBar(IWDToolBar toolBar)
toolBar - the new toolBargetToolBar()public void destroyToolBar()
|
Web Dynpro API Documentation | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||