Interface StylableElement<E extends StylableElement<E>>
- Type Parameters:
E- the type of aStylableElement.
- All Superinterfaces:
AttributesRepresentable, Element, FluentMutableMultiTokenHolder<E>, FluentMutableOptionalIdHolder<E>, MultiTokenHolder, MutableElement, OptionalIdHolder, Resettable, SpecificationRepresentable, TypeRequestable
- All Known Subinterfaces:
Container<C,S>, Control<C, S>, IAccordion, IButton, ICheckbox, IComponent, IDropdownMenu, IGrid, IHorizontalStack, IImageControl, IItemMenu<M, S>, ILabel, ILayer, ILinearContainer<C, S>, ILink, ISingleContainer, ITabContainer, ITextbox, IUploader, IValidationLabel, IVerticalStack, IWebGui<G>, StyleHolder<E>
- 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 StylableElement<E extends StylableElement<E>>
extends FluentMutableMultiTokenHolder<E>, FluentMutableOptionalIdHolder<E>, MutableElement, TypeRequestable
A
StylableElement is configurable and can contain other
StylableElements.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionExtendedIterable<? extends StylableElement<?>> booleanvoidResets the style of the currentStylableElementand the style of the childStylableElements of the currentStylableElement.Methods inherited from interface AttributesRepresentable
getAttributesMethods inherited from interface FluentMutableMultiTokenHolder
addToken, removeToken, removeTokensMethods inherited from interface FluentMutableOptionalIdHolder
removeId, setIdMethods inherited from interface MultiTokenHolder
getTokensMethods inherited from interface MutableElement
addOrChangeAttribute, addOrChangeAttribute, addOrChangeAttributes, resetFromAttributes, resetFromSpecificationMethods inherited from interface OptionalIdHolder
getId, getIdInSingleQuotes, hasId, hasIdMethods inherited from interface Resettable
resetMethods inherited from interface SpecificationRepresentable
getSpecification, hasEqualSpecificationAsElement, toFormatedStringMethods inherited from interface TypeRequestable
getType, isOfConcreteType, isOfConcreteType, isOfType, isOfType
-
Method Details
-
getStoredChildStylableElements
ExtendedIterable<? extends StylableElement<?>> getStoredChildStylableElements()- Returns:
- the child
StylableElements of the currentStylableElement.
-
hasRole
- Parameters:
role-- Returns:
- true if the current
StylableElementhas the given role, false otherwise
-
resetStyleRecursively
void resetStyleRecursively()Resets the style of the currentStylableElementand the style of the childStylableElements of the currentStylableElement.
-