Interface IMutableElement
- All Superinterfaces:
IElement, Resettable
- All Known Subinterfaces:
IAccordion, IAccordionStyle, IButton, IButtonStyle, ICheckbox, ICheckboxStyle, IComponent, IComponentStyle, IContainer<C,S>, IControl<C, S>, IControlBaseStyle<S>, IControlStyle<S>, IDropdownMenu, IDropdownMenuStyle, IGrid, IGridStyle, IHorizontalStack, IHorizontalStackStyle, IImageControl, IImageControlStyle, IItemMenu<M, S>, IItemMenuItem<I>, IItemMenuStyle<S>, ILabel, ILabelStyle, ILayer<L>, ILinearContainer<C, S>, ILinearContainerStyle<S>, ILink, ILinkStyle, IMultiStateConfiguration<C, S>, IRespondingMutableElement<E>, ISingleContainer, ISingleContainerStyle, IStylableElement<E>, IStyleElement<E>, ITabContainer, ITabContainerStyle, ITextbox, ITextboxStyle, IUploader, IUploaderStyle, IValidationLabel, IValidationLabelStyle, IVerticalStack, IVerticalStackStyle, IWebGui<G>
- All Known Implementing Classes:
AbstractContainer, AbstractControlStyle, AbstractItemMenu, AbstractItemMenuStyle, AbstractLinearContainer, AbstractLinearContainerStyle, AbstractMultiStateConfiguration, AbstractMutableElement, AbstractStylableElement, AbstractStyleElement, Button, ButtonStyle, Component, ComponentStyle, ComponentWithAdapterFactory, Control, DropdownMenu, DropdownMenuStyle, FloatContainer, FloatContainerStyle, Grid, GridCell, GridStyle, HorizontalStack, HorizontalStackStyle, ImageControl, ImageControlStyle, ItemMenuItem, Label, LabelStyle, Layer, Link, LinkStyle, MutableImage, SingleContainer, SingleContainerStyle, Textbox, TextboxStyle, Uploader, UploaderStyle, ValidationLabel, ValidationLabelStyle, VerticalStack, VerticalStackStyle, WebGui
A
IMutableElement is a IElement. The attributes of a
IMutableElement can be mutated separately. The attributes of a
IMutableElement can be reset together.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrChangeAttribute(INode<?> attribute) Adds or changes the given attribute to the currentIMutableElement.voidaddOrChangeAttribute(String attribute) Adds or changes the given attribute to the currentIMutableElement.default voidaddOrChangeAttributes(INode<?>... attributes) Adds or changes the given attributes to the currentIMutableElement.default voidaddOrChangeAttributes(Iterable<? extends INode<?>> attributes) Adds or changes the given attributes to the currentIMutableElement.default voidaddOrChangeAttributes(String... attributes) Adds or changes the given attributes to the currentIMutableElement.default voidresetFromAttributes(Iterable<? extends INode<?>> attributes) Resets the currentIMutableElementfrom the given attributes.default voidresetFromSpecification(INode<?> specification) Resets the currentIMutableElementfrom the given specification.Methods inherited from interface IElement
getAttributes, getSpecification, toFormatedString, toXmlMethods inherited from interface Resettable
reset
-
Method Details
-
addOrChangeAttribute
Adds or changes the given attribute to the currentIMutableElement.- Parameters:
attribute-- Throws:
RuntimeException- if the given attribute is not valid.
-
addOrChangeAttribute
Adds or changes the given attribute to the currentIMutableElement.- Parameters:
attribute-- Throws:
RuntimeException- if the given attribute is not valid.
-
addOrChangeAttributes
Adds or changes the given attributes to the currentIMutableElement.- Parameters:
attributes-- Throws:
RuntimeException- if the given attributes is null.RuntimeException- if one of the given attributes is not valid.
-
addOrChangeAttributes
Adds or changes the given attributes to the currentIMutableElement.- Parameters:
attributes-- Throws:
RuntimeException- if the given attributes is null.RuntimeException- if one of the given attributes is not valid.
-
addOrChangeAttributes
Adds or changes the given attributes to the currentIMutableElement.- Parameters:
attributes-- Throws:
RuntimeException- if the given attributes is null.RuntimeException- if one of the given attributes is not valid.
-
resetFromAttributes
Resets the currentIMutableElementfrom the given attributes.- Parameters:
attributes-- Throws:
RuntimeException- if the given attributes is null.RuntimeException- if one of the given attributes is not valid.
-
resetFromSpecification
Resets the currentIMutableElementfrom the given specification.- Parameters:
specification-- Throws:
RuntimeException- if the given specification is not valid.
-