Skip navigation links
A B C D E F G H I L M N O P R S T V 

A

addFilter(ViewAdapter.Filter<T>) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Adds a new filter to the local filter chain.
addItem(T) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Adds a single item to the adapter, either creating a new view or reusing an old one and immediately attaching the view to the parent.
addPagingChangeHandler(PagingFilter.PagingChangeHandler) - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter
Adds handler for paging changes, i.e.
addPresenter(Presenter<? extends View<? extends Element>>) - Method in class sk.turn.gwtmvp.client.Mvp
Registers a new Presenter.
applyFilter(List<T>) - Method in class sk.turn.gwtmvp.client.adapters.ColumnSortingFilter
 
applyFilter(List<T>) - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter
 
applyFilter(List<T>) - Method in class sk.turn.gwtmvp.client.adapters.SearchFilter
 
applyFilter(List<T>) - Method in class sk.turn.gwtmvp.client.adapters.SortingFilter
 
applyFilter(List<T>) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter.Filter
Method that should do the actual filtering, e.g.
AsyncView - Annotation Type in sk.turn.gwtmvp.client
Annotation for views the should load asynchronously and shall not be bundled with compiled source code.
attachView(View<? extends Element>) - Method in class sk.turn.gwtmvp.client.Mvp
 

B

BasePresenter<V extends View<? extends Element>> - Class in sk.turn.gwtmvp.client
Basic implementation of Presenter interface.
BasePresenter(String, V) - Constructor for class sk.turn.gwtmvp.client.BasePresenter
 

C

clear() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Removes all the items/views from this adapter.
clearEventHandlers(Element, <any>) - Static method in class sk.turn.gwtmvp.client.EventManager
Clears all event handlers of a specific event type from an element.
ColumnSortingFilter<T> - Class in sk.turn.gwtmvp.client.adapters
Filter for sorting a list by configurable number of different comparators.
ColumnSortingFilter() - Constructor for class sk.turn.gwtmvp.client.adapters.ColumnSortingFilter
 
createView() - Method in class sk.turn.gwtmvp.client.adapters.OptionAdapter
 
createView() - Method in class sk.turn.gwtmvp.client.adapters.TableRowAdapter
Creates a table row view and appends all the columns (TDs).
createView() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Override this method to return a View instance representing a single adapter item.

D

detachView(View<? extends Element>) - Method in class sk.turn.gwtmvp.client.Mvp
 
disableLoader() - Method in class sk.turn.gwtmvp.client.Mvp
Disables the loader when loading async views.
dispatch(PagingFilter.PagingChangeHandler) - Method in class sk.turn.gwtmvp.client.adapters.PagingFilter.PagingChangeEvent
 

E

EMPTY - Static variable in interface sk.turn.gwtmvp.client.View
An empty view made of a single empty div element.
EventManager - Class in sk.turn.gwtmvp.client
Helper class to bind and unbind native browser events.
EventManager() - Constructor for class sk.turn.gwtmvp.client.EventManager
 

F

Filter() - Constructor for class sk.turn.gwtmvp.client.adapters.ViewAdapter.Filter
 

G

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 Presenters.
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.

H

HandlerView<E extends Element,H> - Interface in sk.turn.gwtmvp.client
A View sub-interface that allows direct event handler method mapping.
hide() - Static method in class sk.turn.gwtmvp.client.Loader
Decreases the shown counter for the loader and hides the element if it has reached zero.
hide(String) - Static method in class sk.turn.gwtmvp.client.Loader
Decreases the shown counter for a specific loader and hides the element if it has reached zero.
HtmlElement - Annotation Type in sk.turn.gwtmvp.client
Annotation for methods that reference a HTML element in an accompanying .html file.
HtmlHandler - Annotation Type in sk.turn.gwtmvp.client
Annotation for methods that handle HTML DOM events.

I

isAscending() - Method in class sk.turn.gwtmvp.client.adapters.ColumnSortingFilter
Whether or not sorting using ascending order
isVisible() - Method in class sk.turn.gwtmvp.client.BasePresenter
Returns the current visibility state of this presenter.
isVisible() - Static method in class sk.turn.gwtmvp.client.Loader
Checks the current state of the loader.
isVisible(String) - Static method in class sk.turn.gwtmvp.client.Loader
Checks the current state of a specific loader.
iterator() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Returns an iterator over item-view pairs of this adapter.

L

Loader - Class in sk.turn.gwtmvp.client
Helper class for globally managing visibility of loaders (loading indicators).
Loader() - Constructor for class sk.turn.gwtmvp.client.Loader
 
LoaderAsyncCallback<V> - Class in sk.turn.gwtmvp.client
 
LoaderAsyncCallback() - Constructor for class sk.turn.gwtmvp.client.LoaderAsyncCallback
 
LoaderAsyncCallback(String) - Constructor for class sk.turn.gwtmvp.client.LoaderAsyncCallback
 
loadView(View.ViewLoadedHandler<E>) - Method in interface sk.turn.gwtmvp.client.View
Tells the view to load itself (root element).

M

matches(T, String) - Method in class sk.turn.gwtmvp.client.adapters.SearchFilter
Implement this method for your own matching logic.
Mvp - Class in sk.turn.gwtmvp.client
The centerpiece of the MVP framework, it manages the Presenters and handles GWT history changes.
Mvp(Element) - Constructor for class sk.turn.gwtmvp.client.Mvp
Constructs a new MVP object with a root container element.

N

notifyDataSetChanged() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Reloads the views in the adapter.
notifyFilterChanged() - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter.Filter
Call this method when this filter parameters have changed in order to re-filter the associated ViewAdapter.

O

onFailure(Throwable) - Method in class sk.turn.gwtmvp.client.LoaderAsyncCallback
 
onHide() - Method in class sk.turn.gwtmvp.client.BasePresenter
 
onHide() - Method in interface sk.turn.gwtmvp.client.Presenter
Called when this presenter is about to be hidden.
onPagingChange(PagingFilter.PagingChangeEvent) - Method in interface sk.turn.gwtmvp.client.adapters.PagingFilter.PagingChangeHandler
 
onShow(String...) - Method in class sk.turn.gwtmvp.client.BasePresenter
 
onShow(String...) - Method in interface sk.turn.gwtmvp.client.Presenter
Called when this presenter is being shown to the user.
onSuccess(V) - Method in class sk.turn.gwtmvp.client.LoaderAsyncCallback
 
onViewLoaded(TableRowAdapter.TableRowView) - Method in class sk.turn.gwtmvp.client.adapters.TableRowAdapter
 
onViewLoaded(V) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Override this method to do one-time initialization of the created view.
onViewLoaded() - Method in class sk.turn.gwtmvp.client.BasePresenter
 
onViewLoaded() - Method in interface sk.turn.gwtmvp.client.Presenter
Called for one-time initialization of this presenter, in most cases the related View.
onViewLoaded(E) - Method in interface sk.turn.gwtmvp.client.View.ViewLoadedHandler
 
OptionAdapter - Class in sk.turn.gwtmvp.client.adapters
Implementation of ViewAdapter to populate options in a select element.
OptionAdapter(SelectElement) - Constructor for class sk.turn.gwtmvp.client.adapters.OptionAdapter
 

P

PagingFilter<T> - Class in sk.turn.gwtmvp.client.adapters
Simple paging filter for ViewAdapter
PagingFilter(int) - Constructor for class sk.turn.gwtmvp.client.adapters.PagingFilter
Initializes the filter with a fixed number of items per page.
PagingFilter.PagingChangeEvent - Class in sk.turn.gwtmvp.client.adapters
PagingFilter.PagingChangeHandler - Interface in sk.turn.gwtmvp.client.adapters
Event handler when the paging changes (either the current page or total pages count).
Presenter<V extends View<? extends Element>> - Interface in sk.turn.gwtmvp.client
Base interface for presenters.

R

register(Element, boolean) - Static method in class sk.turn.gwtmvp.client.Loader
Registers a global (general) loader, this method effectively calls register(null, element, isCounted).
register(String, Element, boolean) - Static method in class sk.turn.gwtmvp.client.Loader
Registers a specific loader.
reload(int...) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Deprecated.
removeAt(int) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Calls removeAt(index, true)
removeAt(int, boolean) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Removes an item at the specified index and return the instance.
removeItem(T) - Method in class sk.turn.gwtmvp.client.adapters.ViewAdapter
Removes a specific item from the adapter and also the corresponding view from the DOM tree.
removePresenter(Presenter<? extends View<? extends Element>>) - Method in class sk.turn.gwtmvp.client.Mvp
Removes a Presenter from the list of registered Presenters.

S

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
Control whether methods that change the list (add, remove, removeAt, clear) automatically call ViewAdapter.notifyDataSetChanged().
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
Default implementation that populates the table cells with a return value of TableRowAdapter.getCellContent(int, Object).
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.

T

TableRowAdapter<T> - Class in sk.turn.gwtmvp.client.adapters
Subclass of ViewAdapter to show items in a table row without the need to create View for it.
TableRowAdapter(TableElement, int) - Constructor for class sk.turn.gwtmvp.client.adapters.TableRowAdapter
Constructs a new instance setting the number of columns for each row and attaching it to a table element.
TableRowAdapter(TableSectionElement, int) - Constructor for class sk.turn.gwtmvp.client.adapters.TableRowAdapter
Constructs a new instance setting the number of columns for each row and attaching it to a table section element.

V

view - Variable in class sk.turn.gwtmvp.client.BasePresenter
 
View<E extends Element> - Interface in sk.turn.gwtmvp.client
Base interface for a view.
View.ViewLoadedHandler<E extends Element> - Interface in sk.turn.gwtmvp.client
 
ViewAdapter<T,V extends View<? extends Element>> - Class in sk.turn.gwtmvp.client.adapters
Helper class to provide support for lists of reusable Views.
ViewAdapter(Element) - Constructor for class sk.turn.gwtmvp.client.adapters.ViewAdapter
Creates a new instance of ViewAdapter with a specific parent element for all the sub-views.
ViewAdapter.Filter<T> - Class in sk.turn.gwtmvp.client.adapters
Interface for filtering items in a view adapter.
ViewAdapter.ItemView<T,V extends View<? extends Element>> - Interface in sk.turn.gwtmvp.client.adapters
 
ViewHtml - Annotation Type in sk.turn.gwtmvp.client
Annotation for Views that have simple/small HTML that can be included directly in the code.
A B C D E F G H I L M N O P R S T V 
Skip navigation links