Interface MutableElement
- All Superinterfaces:
AttributesRepresentable, Element, Resettable, SpecificationRepresentable
- All Known Subinterfaces:
Container<C,S>, Control<C, S>, ControlBaseStyle<S>, ControlStyle<S>, IAccordion, IAccordionStyle, IButton, IButtonStyle, ICheckbox, ICheckboxStyle, IComponent, IComponentStyle, IDropdownMenu, IDropdownMenuStyle, IGrid, IGridStyle, IHorizontalStack, IHorizontalStackStyle, IImageControl, IImageControlStyle, IItemMenu<M, S>, IItemMenuItem<I>, IItemMenuStyle<S>, ILabel, ILabelStyle, ILayer, ILinearContainer<C, S>, ILinearContainerStyle<S>, ILink, ILinkStyle, ISingleContainer, ISingleContainerStyle, ITabContainer, ITabContainerStyle, ITabContainerTab, ITextbox, ITextboxStyle, IUploader, IUploaderStyle, IValidationLabel, IValidationLabelStyle, IVerticalStack, IVerticalStackStyle, IWebGui<G>, MultiStateConfiguration<C, S>, RespondingMutableElement<E>, StylableElement<E>, StyleHolder<E>
- All Known Implementing Classes:
AbstractContainer, AbstractControl, AbstractControlStyle, AbstractItemMenu, AbstractItemMenuStyle, AbstractLinearContainer, AbstractLinearContainerStyle, AbstractMultiStateConfiguration, AbstractMutableElementWithProperties, AbstractStylableElement, AbstractStyleElement, Button, ButtonStyle, Component, ComponentStyle, ComponentWithAdapterFactory, DropdownMenu, DropdownMenuStyle, FloatContainer, FloatContainerStyle, Grid, GridCell, GridStyle, HorizontalStack, HorizontalStackStyle, ImageControl, ImageControlStyle, ItemMenuItem, Label, LabelStyle, Layer, Link, LinkStyle, MutableImage, SingleContainer, SingleContainerStyle, TabContainer, TabContainerStyle, TabContainerTab, Textbox, TextboxStyle, Uploader, UploaderStyle, ValidationLabel, ValidationLabelStyle, VerticalStack, VerticalStackStyle, WebGui
A
MutableElement has attributes that can be mutated.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrChangeAttribute(Node<?> attribute) Adds or changes the given attribute to the currentMutableElement.voidaddOrChangeAttribute(String attribute) Adds or changes the given attribute to the currentMutableElement.default voidaddOrChangeAttributes(Iterable<? extends Node<?>> attributes) Adds or changes the given attributes to the currentMutableElement.default voidresetFromAttributes(Iterable<? extends Node<?>> attributes) Resets the currentMutableElementfrom the given attributes.default voidresetFromSpecification(Node<?> specification) Resets the currentMutableElementfrom the given specification.Methods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface Resettable
resetMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedString
-
Method Details
-
addOrChangeAttribute
Adds or changes the given attribute to the currentMutableElement.- Parameters:
attribute-- Throws:
RuntimeException- if the given attribute is not valid
-
addOrChangeAttribute
Adds or changes the given attribute to the currentMutableElement.- Parameters:
attribute-- Throws:
RuntimeException- if the given attribute is not valid
-
addOrChangeAttributes
Adds or changes the given attributes to the currentMutableElement.- Parameters:
attributes-- Throws:
RuntimeException- if one of the given attributes is not valid
-
resetFromAttributes
Resets the currentMutableElementfrom the given attributes.- Parameters:
attributes-- Throws:
RuntimeException- if one of the given attributes is not valid
-
resetFromSpecification
Resets the currentMutableElementfrom the given specification.- Parameters:
specification-- Throws:
RuntimeException- if the given specification is not valid
-