info.joseluismartin.vaadin.ui.table
Class PageableTable<T>
java.lang.Object
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.CustomComponent
info.joseluismartin.vaadin.ui.table.PageableTable<T>
- All Implemented Interfaces:
- com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.event.ItemClickEvent.ItemClickListener, com.vaadin.event.MethodEventSource, com.vaadin.terminal.Paintable, com.vaadin.terminal.Sizeable, com.vaadin.terminal.VariableOwner, com.vaadin.ui.Component, com.vaadin.ui.ComponentContainer, com.vaadin.ui.Window.CloseListener, PaginatorListener, Serializable, EventListener
public class PageableTable<T>
- extends com.vaadin.ui.CustomComponent
- implements PaginatorListener, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.event.ItemClickEvent.ItemClickListener, com.vaadin.ui.Window.CloseListener
Vaadin Table with paginator. Use a BeanItemContainer as
table datasource.
- Author:
- Jose Luis Martin - (jlm@joseluismartin.info)
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandler |
Nested classes/interfaces inherited from interface com.vaadin.ui.ComponentContainer |
com.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener |
Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener |
Nested classes/interfaces inherited from interface com.vaadin.terminal.Paintable |
com.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListener |
Fields inherited from interface com.vaadin.terminal.Sizeable |
SIZE_UNDEFINED, UNIT_SYMBOLS, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
Methods inherited from class com.vaadin.ui.CustomComponent |
addComponent, getComponentCount, getComponentIterator, getComponentType, getCompositionRoot, moveComponentsFrom, paintContent, removeAllComponents, removeComponent, replaceComponent, setComponentType, setCompositionRoot |
Methods inherited from class com.vaadin.ui.AbstractComponentContainer |
addListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidth |
Methods inherited from class com.vaadin.ui.AbstractComponent |
addListener, addListener, addListener, addListener, addListener, addStyleName, changeVariables, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, focus, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnits |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, childRequestedRepaint, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setIcon, setParent, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.terminal.Paintable |
addListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugId |
Methods inherited from interface com.vaadin.terminal.VariableOwner |
changeVariables, isImmediate |
Methods inherited from interface com.vaadin.terminal.Sizeable |
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUnits, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUnits |
PageableTable
public PageableTable()
PageableTable
public PageableTable(Class<T> entityClass)
init
public void init()
pageChanged
public void pageChanged(PageChangedEvent event)
-
- Specified by:
pageChanged
in interface PaginatorListener
getEditorForm
public com.vaadin.ui.Form getEditorForm()
- Get default form for edit or add models;
- Returns:
- form editor
getSelected
public Collection<T> getSelected()
itemClick
public void itemClick(com.vaadin.event.ItemClickEvent event)
-
- Specified by:
itemClick
in interface com.vaadin.event.ItemClickEvent.ItemClickListener
containerItemSetChange
public void containerItemSetChange(com.vaadin.data.Container.ItemSetChangeEvent event)
-
- Specified by:
containerItemSetChange
in interface com.vaadin.data.Container.ItemSetChangeListener
getTable
public ConfigurableTable getTable()
setTable
public void setTable(ConfigurableTable table)
getPaginator
public VaadinPaginator<T> getPaginator()
setPaginator
public void setPaginator(VaadinPaginator<T> paginator)
getService
public PersistentService<T,Serializable> getService()
setService
public void setService(PersistentService<T,Serializable> service)
getFilter
public Object getFilter()
- Returns:
- the filter Object
- See Also:
Page.getFilter()
setFilter
public void setFilter(Object filter)
- Parameters:
filter
- - See Also:
Page.setFilter(java.lang.Object)
getEditor
public String getEditor()
- Deprecated. use getEditorName instead
- Returns:
- the editor
setEditor
public void setEditor(String editor)
- Parameters:
editor
- the editor to se
getGuiFactory
public GuiFactory getGuiFactory()
- Returns:
- the guiFactory
setGuiFactory
public void setGuiFactory(GuiFactory guiFactory)
- Parameters:
guiFactory
- the guiFactory to set
isAutoResize
public boolean isAutoResize()
- Returns:
- the autoResize
setAutoResize
public void setAutoResize(boolean autoResize)
- Parameters:
autoResize
- the autoResize to set
getActions
public List<TableButtonListener> getActions()
- Returns:
- the actions
setActions
public void setActions(List<TableButtonListener> actions)
- Parameters:
actions
- the actions to set
isAutoCreateEditor
public boolean isAutoCreateEditor()
- Returns:
- the autoCreateEditor
setAutoCreateEditor
public void setAutoCreateEditor(boolean autoCreateEditor)
- Parameters:
autoCreateEditor
- the autoCreateEditor to set
getEntityClass
public Class<T> getEntityClass()
- Returns:
- the entityClass
setEntityClass
public void setEntityClass(Class<T> entityClass)
- Parameters:
entityClass
- the entityClass to set
getFormFieldFactory
public com.vaadin.ui.FormFieldFactory getFormFieldFactory()
- Returns:
- the formFieldFactory
setFormFieldFactory
public void setFormFieldFactory(com.vaadin.ui.FormFieldFactory formFieldFactory)
- Parameters:
formFieldFactory
- the formFieldFactory to set
getBeanFilter
public Filter getBeanFilter()
- Returns:
- the beanFilter
setBeanFilter
public void setBeanFilter(Filter beanFilter)
- Parameters:
beanFilter
- the beanFilter to set
getFilterEditor
public String getFilterEditor()
- Returns:
- the filterEditor
setFilterEditor
public void setFilterEditor(String filterEditor)
- Parameters:
filterEditor
- the filterEditor to set
delete
public void delete(Collection<?> selected)
- Parameters:
selected
-
refresh
public void refresh()
getFilterForm
public com.vaadin.ui.Form getFilterForm()
- Returns:
- the filterForm
setFilterForm
public void setFilterForm(com.vaadin.ui.Form filterForm)
- Parameters:
filterForm
- the filterForm to set
windowClose
public void windowClose(com.vaadin.ui.Window.CloseEvent e)
-
- Specified by:
windowClose
in interface com.vaadin.ui.Window.CloseListener
Copyright © 2012 JDAL. All Rights Reserved.