|
||||||||||
| 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.commons.client.RowRepeater
public class RowRepeater
The class RowRepeater is the GWT wrapper
for the Phoenix control: sap.ui.commons.RowRepeater.
This control displays items in a stacked list format, allowing the user to page in order to see more items or to use the offered filtering and sorting capabilities in order to manipulate the displayed data.
| Constructor Summary | |
|---|---|
protected |
RowRepeater()
constructs the class RowRepeaterhidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
RowRepeater |
addFilter(RowRepeaterFilter filter)
Appends a filter to the aggregation filters. |
RowRepeater |
addRow(com.sap.ui.core.client.Control row)
Appends a row to the aggregation rows. |
RowRepeater |
addSorter(RowRepeaterSorter sorter)
Appends a sorter to the aggregation sorters. |
void |
applyFilter(String id)
Applies a filter. |
RowRepeater |
attachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when a filter is set. |
RowRepeater |
attachPageEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when paging was executed. |
RowRepeater |
attachResizeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when the number of rows was changed. |
RowRepeater |
attachSortEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when a sorting is applied. |
RowRepeater |
bindRows(String path,
com.sap.ui.core.client.Element template)
Binder for aggregation rows. |
static RowRepeater |
create()
creates a new instance of the class RowRepeater |
static RowRepeater |
create(String idOrConfig)
creates a new instance of the class RowRepeater |
static RowRepeater |
create(String id,
String config)
creates a new instance of the class RowRepeater |
RowRepeater |
destroyFilters()
Destroys all the filters in the Filters-aggregation. |
RowRepeater |
destroyRows()
Destroys all the rows in the Rows-aggregation. |
RowRepeater |
destroySorters()
Destroys all the sorters in the Sorters-aggregation. |
RowRepeater |
destroyTitle()
Destroys the title in the Title-aggregation. |
RowRepeater |
detachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when a filter is set. |
RowRepeater |
detachPageEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when paging was executed. |
RowRepeater |
detachResizeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when the number of rows was changed. |
RowRepeater |
detachSortEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when a sorting is applied. |
void |
firstPage()
Switch to first page. |
int |
getCurrentPage()
Getter for property currentPage
The index of the page currently displayed. |
RowRepeaterDesign |
getDesign()
Getter for property design
The visual design of the control. |
com.sap.ui.core.client.js.JsArray<RowRepeaterFilter> |
getFilters()
Getter for aggregation filters Filters to be provided in toolbar. |
String |
getFixedRowHeight()
Getter for property fixedRowHeight
Row height adapts to rendered content. |
int |
getNumberOfRows()
Getter for property numberOfRows
Number of rows displayed. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
getRows()
Getter for aggregation rows Rows to be repeated. |
int |
getShowMoreSteps()
Getter for property showMoreSteps
Step size used to increase the numberOfRows value. |
com.sap.ui.core.client.js.JsArray<RowRepeaterSorter> |
getSorters()
Getter for aggregation sorters Sorters to be provided in secondary toolbar. |
Title |
getTitle()
Getter for aggregation title Title to be displayed in top left corner. |
void |
gotoPage(int pageNumber)
Switch to specified page. |
int |
indexOfFilter(RowRepeaterFilter filter)
Checks for the provided com.sap.ui.commons.client.RowRepeaterFilter in the filters-aggregation and
returns its index if found or -1 otherwise. |
int |
indexOfRow(com.sap.ui.core.client.Control row)
Checks for the provided com.sap.ui.core.client.Control in the rows-aggregation and
returns its index if found or -1 otherwise. |
int |
indexOfSorter(RowRepeaterSorter sorter)
Checks for the provided com.sap.ui.commons.client.RowRepeaterSorter in the sorters-aggregation and
returns its index if found or -1 otherwise. |
RowRepeater |
insertFilter(RowRepeaterFilter filter,
int index)
Inserts some filter into the aggregation named filters. |
RowRepeater |
insertRow(com.sap.ui.core.client.Control row,
int index)
Inserts some row into the aggregation named rows. |
RowRepeater |
insertSorter(RowRepeaterSorter sorter,
int index)
Inserts some sorter into the aggregation named sorters. |
boolean |
isVisible()
Getter for property visible
Invisible row-repeaters are not rendered. |
void |
lastPage()
Switch to last page. |
void |
nextPage()
Switch to next page. |
void |
previousPage()
Switch to previous page. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<RowRepeaterFilter>> |
removeAllFilters()
Removes all the items in the filters-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> |
removeAllRows()
Removes all the items in the rows-aggregation. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<RowRepeaterSorter>> |
removeAllSorters()
Removes all the items in the sorters-aggregation. |
com.sap.ui.core.client.js.JsArray<RowRepeaterFilter> |
removeFilter(int index)
Removes a filter from the aggregation named filters. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> |
removeRow(int index)
Removes a row from the aggregation named rows. |
com.sap.ui.core.client.js.JsArray<RowRepeaterSorter> |
removeSorter(int index)
Removes a sorter from the aggregation named sorters. |
void |
resize(int numberOfRows)
Resizes the row repeater by changing the number of displayed rows. |
RowRepeater |
setCurrentPage(int value)
Setter for property currentPageDefault value is: 1 |
RowRepeater |
setDesign(RowRepeaterDesign value)
Setter for property designDefault value is: Standard |
RowRepeater |
setFixedRowHeight(String value)
Setter for property fixedRowHeight |
RowRepeater |
setNumberOfRows(int value)
Setter for property numberOfRowsDefault value is: 5 |
RowRepeater |
setShowMoreSteps(int value)
Setter for property showMoreStepsDefault value is: 0 |
RowRepeater |
setTitle(Title title)
Setter for the aggregated title. |
RowRepeater |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
triggerShowMore()
Increments the number of rows. |
void |
triggerSort(String id)
Sort the data. |
RowRepeater |
unbindRows()
Unbinder for aggregation rows. |
| 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 RowRepeater()
RowRepeaterJavaScriptObject restriction
| Method Detail |
|---|
public static RowRepeater create()
RowRepeater
public static RowRepeater create(String idOrConfig)
RowRepeater
id - id of the RowRepeater or configuration JSON string
public static RowRepeater create(String id,
String config)
RowRepeater
id - id of the RowRepeaterconfig - configuration JSON stringpublic final boolean isVisible()
visible
Invisible row-repeaters are not rendered.
public final RowRepeater setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final int getNumberOfRows()
numberOfRows
Number of rows displayed.
public final RowRepeater setNumberOfRows(int value)
numberOfRows5
value - int
this to allow method chainingpublic final int getCurrentPage()
currentPage
The index of the page currently displayed. The index starts at 1.
public final RowRepeater setCurrentPage(int value)
currentPage1
value - int
this to allow method chainingpublic final int getShowMoreSteps()
showMoreSteps
Step size used to increase the numberOfRows value. This feature is only active if value is greater than 0. This will deactivate the paging feature.
public final RowRepeater setShowMoreSteps(int value)
showMoreSteps0
value - int
this to allow method chainingpublic final String getFixedRowHeight()
fixedRowHeight
Row height adapts to rendered content. If a fixed height is specified the cells have a maximum height and the overflow will be hidden.
public final RowRepeater setFixedRowHeight(String value)
fixedRowHeight
value - String
this to allow method chainingpublic final RowRepeaterDesign getDesign()
design
The visual design of the control.
public final RowRepeater setDesign(RowRepeaterDesign value)
designStandard
value - com.sap.ui.commons.client.RowRepeaterDesign
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getRows()
public final RowRepeater insertRow(com.sap.ui.core.client.Control row,
int index)
rows.
row - the row to insertindex - int the 0-based index the row should be inserted at.
this to allow method chainingpublic final RowRepeater addRow(com.sap.ui.core.client.Control row)
rows.
row - com.sap.ui.core.client.Control the row to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> removeRow(int index)
rows.
index - int the position of the row to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control>> removeAllRows()
public final int indexOfRow(com.sap.ui.core.client.Control row)
com.sap.ui.core.client.Control in the rows-aggregation and
returns its index if found or -1 otherwise.
row - the row whose index is looked for.
public final RowRepeater destroyRows()
this to allow method chaining
public final RowRepeater bindRows(String path,
com.sap.ui.core.client.Element template)
rows.
path - path to a list in the modeltemplate - the template Element for this aggregation
this to allow method chainingpublic final RowRepeater unbindRows()
rows.
this to allow method chainingpublic final Title getTitle()
public final RowRepeater setTitle(Title title)
otitle - {com.sap.ui.commons.client.Title}
this to allow method chainingpublic final RowRepeater destroyTitle()
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<RowRepeaterFilter> getFilters()
public final RowRepeater insertFilter(RowRepeaterFilter filter,
int index)
filters.
filter - the filter to insertindex - int the 0-based index the filter should be inserted at.
this to allow method chainingpublic final RowRepeater addFilter(RowRepeaterFilter filter)
filters.
filter - com.sap.ui.commons.client.RowRepeaterFilter the filter to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<RowRepeaterFilter> removeFilter(int index)
filters.
index - int the position of the filter to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<RowRepeaterFilter>> removeAllFilters()
public final int indexOfFilter(RowRepeaterFilter filter)
com.sap.ui.commons.client.RowRepeaterFilter in the filters-aggregation and
returns its index if found or -1 otherwise.
filter - the filter whose index is looked for.
public final RowRepeater destroyFilters()
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<RowRepeaterSorter> getSorters()
public final RowRepeater insertSorter(RowRepeaterSorter sorter,
int index)
sorters.
sorter - the sorter to insertindex - int the 0-based index the sorter should be inserted at.
this to allow method chainingpublic final RowRepeater addSorter(RowRepeaterSorter sorter)
sorters.
sorter - com.sap.ui.commons.client.RowRepeaterSorter the sorter to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<RowRepeaterSorter> removeSorter(int index)
sorters.
index - int the position of the sorter to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<RowRepeaterSorter>> removeAllSorters()
public final int indexOfSorter(RowRepeaterSorter sorter)
com.sap.ui.commons.client.RowRepeaterSorter in the sorters-aggregation and
returns its index if found or -1 otherwise.
sorter - the sorter whose index is looked for.
public final RowRepeater destroySorters()
this to allow method chainingpublic final RowRepeater attachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a filter is set.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater detachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a filter is set.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater attachSortEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a sorting is applied.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater detachSortEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a sorting is applied.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater attachPageEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when paging was executed.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater detachPageEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when paging was executed.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater attachResizeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when the number of rows was changed.
listener - reference to the EventListener
this to allow method chainingpublic final RowRepeater detachResizeEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when the number of rows was changed.
listener - reference to the EventListener
this to allow method chainingpublic final void triggerShowMore()
public final void resize(int numberOfRows)
numberOfRows - The new value of number of rows displayed.public final void applyFilter(String id)
id - The ID if the filter.public final void triggerSort(String id)
id - The ID of the sorter.public final void firstPage()
public final void lastPage()
public final void previousPage()
public final void nextPage()
public final void gotoPage(int pageNumber)
pageNumber - The index of the page to go to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||