|
||||||||||
| 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.commons.client.RowRepeaterWidget
public class RowRepeaterWidget
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.
| 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 | |
|---|---|
|
RowRepeaterWidget()
constructs the class RowRepeaterWidget |
protected |
RowRepeaterWidget(RowRepeater control)
constructs the class RowRepeaterWidget |
|
RowRepeaterWidget(String id)
constructs the class RowRepeaterWidget |
| Method Summary | |
|---|---|
void |
addFilter(RowRepeaterFilter filter)
Appends some filter to the filters-aggregation. |
void |
addRow(com.sap.ui.core.client.Control row)
Appends some row to the rows-aggregation. |
void |
addSorter(RowRepeaterSorter sorter)
Appends some sorter to the sorters-aggregation. |
void |
applyFilter(String id)
Applies a filter. |
void |
attachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when a filter is set. |
void |
attachPageEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when paging was executed. |
void |
attachResizeEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when the number of rows was changed. |
void |
attachSortEvent(com.sap.ui.core.client.event.EventListener listener)
attach an EventListener
This event is triggered when a sorting is applied. |
void |
bindRows(String path,
com.sap.ui.core.client.Element template)
Binder for aggregation rows. |
void |
destroyFilters()
Destroys all the filters in the Filters-aggregation. |
void |
destroyRows()
Destroys all the rows in the Rows-aggregation. |
void |
destroySorters()
Destroys all the sorters in the Sorters-aggregation. |
void |
destroyTitle()
Destroys the title in the Title-aggregation. |
void |
detachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when a filter is set. |
void |
detachPageEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when paging was executed. |
void |
detachResizeEvent(com.sap.ui.core.client.event.EventListener listener)
detach an EventListener
This event is triggered when the number of rows was changed. |
void |
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. |
RowRepeater |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
insertFilter(RowRepeaterFilter filter,
int index)
Inserts some filter into the aggregation named filters. |
void |
insertRow(com.sap.ui.core.client.Control row,
int index)
Inserts some row into the aggregation named rows. |
void |
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. |
void |
removeAllFilters()
Removes all the items in the filters-aggregation. |
void |
removeAllRows()
Removes all the items in the rows-aggregation. |
void |
removeAllSorters()
Removes all the items in the sorters-aggregation. |
void |
removeFilter(int index)
Removes the filter at position index in the filters-aggregation named. |
void |
removeRow(int index)
Removes the row at position index in the rows-aggregation named. |
void |
removeSorter(int index)
Removes the sorter at position index in the sorters-aggregation named. |
void |
resize(int numberOfRows)
Resizes the row repeater by changing the number of displayed rows. |
void |
setCurrentPage(int value)
Setter for property currentPageDefault value is: 1 |
void |
setDesign(RowRepeaterDesign value)
Setter for property designDefault value is: Standard |
void |
setFixedRowHeight(String value)
Setter for property fixedRowHeight |
void |
setNumberOfRows(int value)
Setter for property numberOfRowsDefault value is: 5 |
void |
setShowMoreSteps(int value)
Setter for property showMoreStepsDefault value is: 0 |
void |
setTitle(Title title)
Setter for the aggregated title. |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
triggerShowMore()
Increments the number of rows. |
void |
triggerSort(String id)
Sort the data. |
void |
unbindRows()
Unbinder for aggregation rows. |
| 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, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RowRepeaterWidget()
RowRepeaterWidget
public RowRepeaterWidget(String id)
RowRepeaterWidget
id - id of the RowRepeaterWidgetprotected RowRepeaterWidget(RowRepeater control)
RowRepeaterWidget
control - reference to an existing RowRepeater| Method Detail |
|---|
public RowRepeater getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic boolean isVisible()
visible
Invisible row-repeaters are not rendered.
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 int getNumberOfRows()
numberOfRows
Number of rows displayed.
public void setNumberOfRows(int value)
numberOfRows5
value - intpublic int getCurrentPage()
currentPage
The index of the page currently displayed. The index starts at 1.
public void setCurrentPage(int value)
currentPage1
value - intpublic 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 void setShowMoreSteps(int value)
showMoreSteps0
value - intpublic 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 void setFixedRowHeight(String value)
fixedRowHeight
value - Stringpublic RowRepeaterDesign getDesign()
design
The visual design of the control.
public void setDesign(RowRepeaterDesign value)
designStandard
value - com.sap.ui.commons.client.RowRepeaterDesignpublic com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.Control> getRows()
public void insertRow(com.sap.ui.core.client.Control row,
int index)
row - the row to insertindex - int the 0-based index the row should be inserted at.public void addRow(com.sap.ui.core.client.Control row)
row - com.sap.ui.core.client.Control the row to addpublic void removeRow(int index)
index in the rows-aggregation named.
index - int the position of the row to remove.public void removeAllRows()
public 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 void destroyRows()
public final void bindRows(String path,
com.sap.ui.core.client.Element template)
rows.
path - path to a list in the modeltemplate - the template Element for this aggregationpublic final void unbindRows()
rows.
public Title getTitle_()
public void setTitle(Title title)
title - {com.sap.ui.commons.client.Title}public void destroyTitle()
public com.sap.ui.core.client.js.JsArray<RowRepeaterFilter> getFilters()
public void insertFilter(RowRepeaterFilter filter,
int index)
filter - the filter to insertindex - int the 0-based index the filter should be inserted at.public void addFilter(RowRepeaterFilter filter)
filter - com.sap.ui.commons.client.RowRepeaterFilter the filter to addpublic void removeFilter(int index)
index in the filters-aggregation named.
index - int the position of the filter to remove.public void removeAllFilters()
public 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 void destroyFilters()
public com.sap.ui.core.client.js.JsArray<RowRepeaterSorter> getSorters()
public void insertSorter(RowRepeaterSorter sorter,
int index)
sorter - the sorter to insertindex - int the 0-based index the sorter should be inserted at.public void addSorter(RowRepeaterSorter sorter)
sorter - com.sap.ui.commons.client.RowRepeaterSorter the sorter to addpublic void removeSorter(int index)
index in the sorters-aggregation named.
index - int the position of the sorter to remove.public void removeAllSorters()
public 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 void destroySorters()
public void attachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a filter is set.
listener - reference to the EventListenerpublic void detachFilterEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a filter is set.
listener - reference to the EventListenerpublic void attachSortEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a sorting is applied.
listener - reference to the EventListenerpublic void detachSortEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when a sorting is applied.
listener - reference to the EventListenerpublic void attachPageEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when paging was executed.
listener - reference to the EventListenerpublic void detachPageEvent(com.sap.ui.core.client.event.EventListener listener)
EventListener
This event is triggered when paging was executed.
listener - reference to the EventListenerpublic void 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 EventListenerpublic void 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 EventListenerpublic void triggerShowMore()
public void resize(int numberOfRows)
numberOfRows - The new value of number of rows displayed.public void applyFilter(String id)
id - The ID if the filter.public void triggerSort(String id)
id - The ID of the sorter.public void firstPage()
public void lastPage()
public void previousPage()
public void nextPage()
public 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 | |||||||||