Interface IFluentMutableMultiTokenHolder<H extends IFluentMutableMultiTokenHolder<H>>
- Type Parameters:
H- is the type of aIFluentMutableMultiTokenHolder.
- All Superinterfaces:
IMultiTokenHolder
- All Known Subinterfaces:
IAccordion, IButton, ICheckbox, IComponent, IContainer<C,S>, IControl<C, S>, IDropdownMenu, IGrid, IHorizontalStack, IImageControl, IItemMenu<M, S>, ILabel, ILayer<L>, ILinearContainer<C, S>, ILink, ISingleContainer, IStylableElement<E>, IStyleElement<E>, ITabContainer, ITextbox, IUploader, IValidationLabel, IVerticalStack, IWebGui<G>
- All Known Implementing Classes:
AbstractContainer, AbstractItemMenu, AbstractLinearContainer, AbstractStylableElement, AbstractStyleElement, Button, Component, ComponentWithAdapterFactory, Control, DropdownMenu, FloatContainer, Grid, HorizontalStack, ImageControl, Label, Layer, Link, SingleContainer, Textbox, Uploader, ValidationLabel, VerticalStack, WebGui
public interface IFluentMutableMultiTokenHolder<H extends IFluentMutableMultiTokenHolder<H>>
extends IMultiTokenHolder
A
IFluentMutableMultiTokenHolder is a IMultiTokenHolder whose
tokens can be added and removed programmatically and fluently.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionAdds the given token to the currentIFluentMutableMultiTokenHolder.voidremoveToken(String token) Removes the token that equals the given token from the currentIFluentMutableMultiTokenHolderif the currentIFluentMutableMultiTokenHoldercontains such a token.voidRemoves all tokens from the currentIFluentMutableMultiTokenHolder.Methods inherited from interface IMultiTokenHolder
getTokens
-
Method Details
-
addToken
Adds the given token to the currentIFluentMutableMultiTokenHolder.- Parameters:
token-- Returns:
- the current
IFluentMutableMultiTokenHolder. - Throws:
RuntimeException- if the given token is null or blank.
-
removeToken
Removes the token that equals the given token from the currentIFluentMutableMultiTokenHolderif the currentIFluentMutableMultiTokenHoldercontains such a token.- Parameters:
token-
-
removeTokens
void removeTokens()Removes all tokens from the currentIFluentMutableMultiTokenHolder.
-