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

public interface IMutableElement extends Resettable, IElement
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 Details

    • addOrChangeAttribute

      void addOrChangeAttribute(INode<?> attribute)
      Adds or changes the given attribute to the current IMutableElement.
      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 IMutableElement.
      Parameters:
      attribute -
      Throws:
      RuntimeException - if the given attribute is not valid.
    • addOrChangeAttributes

      default void addOrChangeAttributes(INode<?>... attributes)
      Adds or changes the given attributes to the current IMutableElement.
      Parameters:
      attributes -
      Throws:
      RuntimeException - if the given attributes is null.
      RuntimeException - if one of the given attributes is not valid.
    • addOrChangeAttributes

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

      default void addOrChangeAttributes(String... attributes)
      Adds or changes the given attributes to the current IMutableElement.
      Parameters:
      attributes -
      Throws:
      RuntimeException - if the given attributes is null.
      RuntimeException - if one of the given attributes is not valid.
    • resetFromAttributes

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

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