public interface Pollable<G extends Pollable<G>> extends Component<G>
Modifier and Type | Interface and Description |
---|---|
static class |
Pollable.Attributes |
Modifier and Type | Method and Description |
---|---|
default G |
notPollable()
Disables pollable behavior.
|
default G |
pollable()
Enables pollable behavior with out-of-box defaults.
|
default G |
pollable(boolean isPollable) |
default G |
pollable(UnaryOperator<Pollable<?>> fn)
Configure polling behavior for the component.
|
default G |
pollableCollectionCondition(Conditional<?>... conditions) |
default G |
pollableCollectionConditions(Collection<Conditional<?>> conditionsToAdd) |
default G |
pollableItemCondition(Conditional<?>... conditions) |
default G |
pollableItemConditions(Collection<Conditional<?>> conditionsToAdd) |
default G |
pollableOptions(PollableOptions pollOptions) |
default G |
pollableOptions(UnaryOperator<PollableOptions> fn)
Enables pollable behavior and provides the opportunity to configure the
PollableOptions . |
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
compareTo
default G pollable(UnaryOperator<Pollable<?>> fn)
grid.pollable(pollable -> pollable .pollableOptions(options -> options .errorLimit(5) .constantStrategy(5000)));
fn
- the function to configure the pollable componentdefault G pollable(boolean isPollable)
default G pollable()
default G notPollable()
default G pollableOptions(PollableOptions pollOptions)
default G pollableOptions(UnaryOperator<PollableOptions> fn)
PollableOptions
.fn
- the function to configure the poll optionsdefault G pollableCollectionConditions(Collection<Conditional<?>> conditionsToAdd)
default G pollableCollectionCondition(Conditional<?>... conditions)
default G pollableItemConditions(Collection<Conditional<?>> conditionsToAdd)
default G pollableItemCondition(Conditional<?>... conditions)
Copyright © 2021. All rights reserved.