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

public interface MutableElement extends Resettable, Element
A MutableElement has attributes that can be mutated.
Author:
Silvan Wyss
  • Method Details

    • addOrChangeAttribute

      void addOrChangeAttribute(Node<?> attribute)
      Adds or changes the given attribute to the current MutableElement.
      Parameters:
      attribute -
      Throws:
      RuntimeException - if the given attribute is not valid
    • addOrChangeAttribute

      void addOrChangeAttribute(String attribute)
      Adds or changes the given attribute to the current MutableElement.
      Parameters:
      attribute -
      Throws:
      RuntimeException - if the given attribute is not valid
    • addOrChangeAttributes

      default void addOrChangeAttributes(Iterable<? extends Node<?>> attributes)
      Adds or changes the given attributes to the current MutableElement.
      Parameters:
      attributes -
      Throws:
      RuntimeException - if one of the given attributes is not valid
    • resetFromAttributes

      default void resetFromAttributes(Iterable<? extends Node<?>> attributes)
      Resets the current MutableElement from the given attributes.
      Parameters:
      attributes -
      Throws:
      RuntimeException - if one of the given attributes is not valid
    • resetFromSpecification

      default void resetFromSpecification(Node<?> specification)
      Resets the current MutableElement from the given specification.
      Parameters:
      specification -
      Throws:
      RuntimeException - if the given specification is not valid