- getAssociatedType() - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter.PagingChangeEvent
-
- getCellContent(int, T) - Method in class sk.turn.gwtmvp.client.adapters.TableRowAdapter
-
Method that should return the text or SafeHtml
content of the table cell.
- getColumn() - Method in class sk.turn.gwtmvp.client.adapters.ColumnSortingFilter
-
Returns the current column index/ID that is used for sorting.
- getCount() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the count of the (filtered) items in the adapter.
- getCurrentGroups() - Method in class sk.turn.gwtmvp.client.BasePresenter
-
Returns the current history token groups that this presenter is showing or null if the presenter is hidden (inactive).
- getElement(String) - Method in interface sk.turn.gwtmvp.client.View
-
Tries to find an element with a specific data-mvp-id
and returns it.
- getFilteredCount() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the count of the filtered items in the adapter.
- getFilters() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the list of current filters, may be empty.
- getItem(int) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Calls getItem(index, true)
- getItem(int, boolean) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the item at the specified index.
- getItem() - Method in interface sk.turn.gwtmvp.client.adapters.ViewAdapter.ItemView
-
- getItemFromEvent(<any>) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the item that is related to an event fired from within an item view.
- getItemIndexFromEvent(<any>) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the item index that is related to an event fired from within an item view.
- getItemView(int) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the view at the specified index.
- getPage() - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter
-
Returns the current page index.
- getPage() - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter.PagingChangeEvent
-
Returns the current page index
- getPageCount() - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter
-
Returns the number of pages in the current state.
- getPageCount() - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter.PagingChangeEvent
-
Returns the total page count
- getPageSize() - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter
-
Retrieves the page size of this filter.
- getPresenters() - Method in class sk.turn.gwtmvp.client.Mvp
-
Returns a list of currently registered
Presenter
s.
- getRootElement() - Method in interface sk.turn.gwtmvp.client.View
-
Do not implement or override this method, this is automatically done by the compile-time GWT
generator.
- getTokenRegExp() - Method in class sk.turn.gwtmvp.client.BasePresenter
-
- getTokenRegExp() - Method in interface sk.turn.gwtmvp.client.Presenter
-
Regular expression that the
Mvp
checks when looking for a suitable presenter that
matches the current history token.
- getTotalCount() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Returns the count of all the items in the adapter (including the ones filtered out).
- getType() - Static method in class sk.turn.gwtmvp.client.adapters.PagingFilter.PagingChangeEvent
-
- getView() - Method in interface sk.turn.gwtmvp.client.adapters.ViewAdapter.ItemView
-
- getView() - Method in class sk.turn.gwtmvp.client.BasePresenter
-
- getView() - Method in interface sk.turn.gwtmvp.client.Presenter
-
Returns the
View
that represents this presenter.
- SearchFilter<T> - Class in sk.turn.gwtmvp.client.adapters
-
Simple search filter with user-defined match function
- SearchFilter() - Constructor for class sk.turn.gwtmvp.client.adapters.SearchFilter
-
- setAdapter(ViewAdapter<T, V>) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter.Filter
-
Called automatically by the ViewAdapter
to set reference to itself for later filter-changed notifications.
- setColumnComparator(int, Comparator<T>) - Method in class sk.turn.gwtmvp.client.adapters.ColumnSortingFilter
-
Adds a new comparator identified by a column index/ID.
- setEventHandler(Element, <any>, H) - Static method in class sk.turn.gwtmvp.client.EventManager
-
Sets an event handler for an Element
.
- setHandler(H) - Method in interface sk.turn.gwtmvp.client.HandlerView
-
Sets the instance of event handler class.
- setItems(Iterable<T>) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Replaces all the items in the adapter and updates the views as necessary.
- setLoader(String) - Method in class sk.turn.gwtmvp.client.Mvp
-
Enables a specific loader to show when loading views asynchronously.
- setNotifyOnChange(boolean) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
- setPage(int) - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter
-
Sets the current page index and refilters the view adapter to update the UI.
- setQuery(String) - Method in class sk.turn.gwtmvp.client.adapters.SearchFilter
-
Sets the query to search for and refilters the view adapter.
- setSortColumn(int, boolean) - Method in class sk.turn.gwtmvp.client.adapters.ColumnSortingFilter
-
Sets the current sorting column index/ID and sorting order and refilters the adapter data.
- setStringItems(Iterable<String>) - Method in class sk.turn.gwtmvp.client.adapters.OptionAdapter
-
- setTableCell(int, TableCellElement, T) - Method in class sk.turn.gwtmvp.client.adapters.TableRowAdapter
-
- setTokenRegExp(String) - Method in class sk.turn.gwtmvp.client.BasePresenter
-
Allows to change the history token regular expression at runtime.
- setViewData(OptionAdapter.OptionView, Map.Entry<String, String>) - Method in class sk.turn.gwtmvp.client.adapters.OptionAdapter
-
- setViewData(TableRowAdapter.TableRowView, T) - Method in class sk.turn.gwtmvp.client.adapters.TableRowAdapter
-
Loops through columns and calls setTableCell
for each.
- setViewData(V, T) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
-
Override this method to update the view with the data from the object.
- show() - Static method in class sk.turn.gwtmvp.client.Loader
-
Shows a loader if it hasn't been already visible before.
- show(String) - Static method in class sk.turn.gwtmvp.client.Loader
-
Shows a specific loader if it hasn't been already visible before.
- sk.turn.gwtmvp.client - package sk.turn.gwtmvp.client
-
MVP library for GWT, adding a light-weighted, easy-to-use MVP framework, plain HTML-to-Java
binding and at the same time taking the complexity off of the built-in Widgets library.
- sk.turn.gwtmvp.client.adapters - package sk.turn.gwtmvp.client.adapters
-
Helper classes for showing various lists of data effectively with reusable views.
- SortingFilter<T> - Class in sk.turn.gwtmvp.client.adapters
-
Simple sorting filter for view adapters.
- SortingFilter(Comparator<T>) - Constructor for class sk.turn.gwtmvp.client.adapters.SortingFilter
-
Creates a new instance of the filter with a specified comparator.
- start() - Method in class sk.turn.gwtmvp.client.Mvp
-
Starts the main handling loop by registering a GWT History
handler.
- stop() - Method in class sk.turn.gwtmvp.client.Mvp
-
Stops the main handling loop and removes the current
Presenter
, if any.