@Deprecated public class WebRowsCount extends io.jmix.ui.component.impl.AbstractComponent<io.jmix.ui.widget.JmixRowsCount> implements RowsCount, io.jmix.ui.component.VisibilityChangeNotifier, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
protected class |
WebRowsCount.AbstractDatasourceAdapter
Deprecated.
|
static interface |
WebRowsCount.Adapter
Deprecated.
|
protected class |
WebRowsCount.DatasourceAdapter
Deprecated.
|
protected class |
WebRowsCount.LoaderAdapter
Deprecated.
|
protected class |
WebRowsCount.NoPagingDatasourceAdapter
Deprecated.
|
RowsCount.BeforeRefreshEvent, RowsCount.BeforeRefreshListener, RowsCount.RowsCountTarget, RowsCount.Stateio.jmix.ui.component.Component.Alignment, io.jmix.ui.component.Component.BelongToFrame, io.jmix.ui.component.Component.Disposable, io.jmix.ui.component.Component.Editable, io.jmix.ui.component.Component.Focusable, io.jmix.ui.component.Component.HasCaption, io.jmix.ui.component.Component.HasDescription, io.jmix.ui.component.Component.HasIcon, io.jmix.ui.component.Component.HasXmlDescriptor, io.jmix.ui.component.Component.Wrapper| Modifier and Type | Field and Description |
|---|---|
protected WebRowsCount.Adapter |
adapter
Deprecated.
|
protected boolean |
autoLoad
Deprecated.
|
protected io.jmix.ui.executor.BackgroundWorker |
backgroundWorker
Deprecated.
|
protected io.jmix.core.metamodel.datatype.Datatype |
countDatatype
Deprecated.
|
protected io.jmix.core.DataManager |
dataManager
Deprecated.
|
protected io.jmix.ui.icon.IconResolver |
iconResolver
Deprecated.
|
protected io.jmix.ui.icon.Icons |
icons
Deprecated.
|
protected RowsCount.State |
lastState
Deprecated.
|
protected io.jmix.core.Messages |
messages
Deprecated.
|
protected com.vaadin.shared.Registration |
onFirstClickRegistration
Deprecated.
|
protected com.vaadin.shared.Registration |
onLastClickRegistration
Deprecated.
|
protected com.vaadin.shared.Registration |
onLinkClickRegistration
Deprecated.
|
protected com.vaadin.shared.Registration |
onNextClickRegistration
Deprecated.
|
protected com.vaadin.shared.Registration |
onPrevClickRegistration
Deprecated.
|
protected static java.lang.String |
PAGING_COUNT_NUMBER_STYLENAME
Deprecated.
|
protected io.jmix.data.QueryTransformerFactory |
queryTransformerFactory
Deprecated.
|
protected boolean |
refreshing
Deprecated.
|
protected io.jmix.ui.executor.BackgroundTaskHandler<java.lang.Integer> |
rowsCountTaskHandler
Deprecated.
|
protected boolean |
samePage
Deprecated.
|
protected int |
size
Deprecated.
|
protected int |
start
Deprecated.
|
protected RowsCount.State |
state
Deprecated.
|
protected static java.lang.String |
TABLE_ROWS_COUNT_STYLENAME
Deprecated.
|
protected RowsCount.RowsCountTarget |
target
Deprecated.
|
protected java.util.function.Function<io.jmix.core.DataLoadContext,java.lang.Long> |
totalCountDelegate
Deprecated.
|
protected UserSessionSource |
userSessionSource
Deprecated.
|
| Constructor and Description |
|---|
WebRowsCount()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBeforeRefreshListener(java.util.function.Consumer<RowsCount.BeforeRefreshEvent> listener)
Deprecated.
|
io.jmix.core.common.event.Subscription |
addVisibilityChangeListener(java.util.function.Consumer<io.jmix.ui.component.VisibilityChangeNotifier.VisibilityChangeEvent> listener)
Deprecated.
|
void |
afterPropertiesSet()
Deprecated.
|
protected java.lang.String |
countValue(int start,
int size)
Deprecated.
|
protected WebRowsCount.Adapter |
createAdapter(RowsCount.RowsCountTarget target)
Deprecated.
|
protected WebRowsCount.Adapter |
createDatasourceAdapter(CollectionDatasource datasource)
Deprecated.
|
protected WebRowsCount.Adapter |
createLoaderAdapter(io.jmix.ui.model.CollectionContainer container)
Deprecated.
|
boolean |
getAutoLoad()
Deprecated.
|
CollectionDatasource |
getDatasource()
Deprecated.
|
protected io.jmix.ui.executor.BackgroundTask<java.lang.Long,java.lang.Integer> |
getLoadCountTask()
Deprecated.
|
io.jmix.ui.component.ListComponent |
getOwner()
Deprecated.
|
RowsCount.RowsCountTarget |
getRowsCountTarget()
Deprecated.
|
java.lang.String |
getStyleName()
Deprecated.
|
java.util.function.Function<io.jmix.core.DataLoadContext,java.lang.Long> |
getTotalCountDelegate()
Deprecated.
|
protected void |
initButtonListeners()
Deprecated.
|
protected void |
loadRowsCount()
Deprecated.
|
protected void |
onCollectionChanged()
Deprecated.
|
protected void |
onFirstClick()
Deprecated.
|
protected void |
onLastClick()
Deprecated.
|
protected void |
onLinkClick()
Deprecated.
|
protected void |
onNextClick()
Deprecated.
|
protected void |
onPrevClick()
Deprecated.
|
protected boolean |
refreshData()
Deprecated.
|
void |
removeBeforeRefreshListener(java.util.function.Consumer<RowsCount.BeforeRefreshEvent> listener)
Deprecated.
|
protected void |
resetCurrentDataPage(io.jmix.ui.component.Table table)
Deprecated.
|
void |
setAutoLoad(boolean autoLoad)
Deprecated.
Sets whether rows count should be loaded automatically.
|
void |
setBackgroundWorker(io.jmix.ui.executor.BackgroundWorker backgroundWorker)
Deprecated.
|
void |
setDatasource(CollectionDatasource datasource)
Deprecated.
|
void |
setDatatypeRegistry(io.jmix.core.metamodel.datatype.DatatypeRegistry datatypeRegistry)
Deprecated.
|
void |
setIconResolver(io.jmix.ui.icon.IconResolver iconResolver)
Deprecated.
|
void |
setIcons(io.jmix.ui.icon.Icons icons)
Deprecated.
|
void |
setMessages(io.jmix.core.Messages messages)
Deprecated.
|
void |
setOwner(io.jmix.ui.component.ListComponent owner)
Deprecated.
|
void |
setRowsCountTarget(RowsCount.RowsCountTarget target)
Deprecated.
|
void |
setTotalCountDelegate(java.util.function.Function<io.jmix.core.DataLoadContext,java.lang.Long> countDelegate)
Deprecated.
Sets delegate which is used to get the total number of rows when user clicks "total count" or "last page".
|
void |
setUserSessionSource(UserSessionSource userSessionSource)
Deprecated.
|
void |
setVisible(boolean visible)
Deprecated.
|
protected void |
showRowsCountValue(int count)
Deprecated.
|
protected void |
unregisterListeners()
Deprecated.
|
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionprotected static final java.lang.String TABLE_ROWS_COUNT_STYLENAME
protected static final java.lang.String PAGING_COUNT_NUMBER_STYLENAME
protected io.jmix.core.Messages messages
protected io.jmix.ui.executor.BackgroundWorker backgroundWorker
protected io.jmix.ui.icon.Icons icons
protected io.jmix.ui.icon.IconResolver iconResolver
protected UserSessionSource userSessionSource
protected WebRowsCount.Adapter adapter
@Autowired protected io.jmix.core.DataManager dataManager
@Autowired protected io.jmix.data.QueryTransformerFactory queryTransformerFactory
protected boolean refreshing
protected RowsCount.State state
protected RowsCount.State lastState
protected int start
protected int size
protected boolean samePage
protected boolean autoLoad
protected io.jmix.ui.executor.BackgroundTaskHandler<java.lang.Integer> rowsCountTaskHandler
protected RowsCount.RowsCountTarget target
protected com.vaadin.shared.Registration onLinkClickRegistration
protected com.vaadin.shared.Registration onPrevClickRegistration
protected com.vaadin.shared.Registration onNextClickRegistration
protected com.vaadin.shared.Registration onFirstClickRegistration
protected com.vaadin.shared.Registration onLastClickRegistration
protected java.util.function.Function<io.jmix.core.DataLoadContext,java.lang.Long> totalCountDelegate
protected io.jmix.core.metamodel.datatype.Datatype countDatatype
@Autowired public void setMessages(io.jmix.core.Messages messages)
@Autowired public void setIconResolver(io.jmix.ui.icon.IconResolver iconResolver)
@Autowired public void setIcons(io.jmix.ui.icon.Icons icons)
@Autowired public void setBackgroundWorker(io.jmix.ui.executor.BackgroundWorker backgroundWorker)
@Autowired public void setDatatypeRegistry(io.jmix.core.metamodel.datatype.DatatypeRegistry datatypeRegistry)
@Autowired public void setUserSessionSource(UserSessionSource userSessionSource)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic java.lang.String getStyleName()
getStyleName in interface io.jmix.ui.component.ComponentgetStyleName in class io.jmix.ui.component.impl.AbstractComponent<io.jmix.ui.widget.JmixRowsCount>protected void initButtonListeners()
protected void unregisterListeners()
@Nullable public io.jmix.ui.component.ListComponent getOwner()
public void setOwner(@Nullable
io.jmix.ui.component.ListComponent owner)
public RowsCount.RowsCountTarget getRowsCountTarget()
getRowsCountTarget in interface RowsCountTable. Can be null.protected WebRowsCount.Adapter createAdapter(RowsCount.RowsCountTarget target)
public void setRowsCountTarget(RowsCount.RowsCountTarget target)
setRowsCountTarget in interface RowsCountpublic CollectionDatasource getDatasource()
getDatasource in interface RowsCountpublic void setDatasource(CollectionDatasource datasource)
setDatasource in interface RowsCountprotected WebRowsCount.Adapter createDatasourceAdapter(CollectionDatasource datasource)
protected WebRowsCount.Adapter createLoaderAdapter(io.jmix.ui.model.CollectionContainer container)
public java.util.function.Function<io.jmix.core.DataLoadContext,java.lang.Long> getTotalCountDelegate()
getTotalCountDelegate in interface RowsCountpublic void setTotalCountDelegate(java.util.function.Function<io.jmix.core.DataLoadContext,java.lang.Long> countDelegate)
RowsCountsetTotalCountDelegate in interface RowsCountpublic void addBeforeRefreshListener(java.util.function.Consumer<RowsCount.BeforeRefreshEvent> listener)
addBeforeRefreshListener in interface RowsCountpublic void removeBeforeRefreshListener(java.util.function.Consumer<RowsCount.BeforeRefreshEvent> listener)
removeBeforeRefreshListener in interface RowsCountprotected void onPrevClick()
protected void onNextClick()
protected void onFirstClick()
protected void onLastClick()
protected void resetCurrentDataPage(io.jmix.ui.component.Table table)
protected boolean refreshData()
protected void onLinkClick()
protected void showRowsCountValue(int count)
protected void onCollectionChanged()
protected java.lang.String countValue(int start,
int size)
protected void loadRowsCount()
protected io.jmix.ui.executor.BackgroundTask<java.lang.Long,java.lang.Integer> getLoadCountTask()
public void setVisible(boolean visible)
setVisible in interface io.jmix.ui.component.ComponentsetVisible in class io.jmix.ui.component.impl.AbstractComponent<io.jmix.ui.widget.JmixRowsCount>public io.jmix.core.common.event.Subscription addVisibilityChangeListener(java.util.function.Consumer<io.jmix.ui.component.VisibilityChangeNotifier.VisibilityChangeEvent> listener)
addVisibilityChangeListener in interface io.jmix.ui.component.VisibilityChangeNotifierpublic boolean getAutoLoad()
getAutoLoad in interface RowsCountpublic void setAutoLoad(boolean autoLoad)
RowsCountsetAutoLoad in interface RowsCountautoLoad - pass true to enable auto load, or false otherwise