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