Class DefaultValueAttributeWitherFunction<T>

java.lang.Object
com.foreach.across.modules.web.ui.elements.support.AttributeWitherFunction<T>
com.foreach.across.modules.bootstrapui.attributes.DefaultValueAttributeWitherFunction<T>
All Implemented Interfaces:
com.foreach.across.modules.web.ui.ViewElement.WitherGetter<com.foreach.across.modules.web.ui.elements.HtmlViewElement,T>, com.foreach.across.modules.web.ui.ViewElement.WitherRemover<com.foreach.across.modules.web.ui.elements.HtmlViewElement>, com.foreach.across.modules.web.ui.ViewElement.WitherSetter<com.foreach.across.modules.web.ui.elements.HtmlViewElement>, Predicate<com.foreach.across.modules.web.ui.elements.HtmlViewElement>

public class DefaultValueAttributeWitherFunction<T> extends com.foreach.across.modules.web.ui.elements.support.AttributeWitherFunction<T> implements com.foreach.across.modules.web.ui.ViewElement.WitherSetter<com.foreach.across.modules.web.ui.elements.HtmlViewElement>
Customization of AttributeWitherFunction which sets a default attribute value. The Predicate implementation still only checks for the presence of the attribute.
Since:
3.0.0
Author:
Arne Vandamme
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.foreach.across.modules.web.ui.elements.support.AttributeWitherFunction

    com.foreach.across.modules.web.ui.elements.support.AttributeWitherFunction.AttributeValueWitherFunction<T extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultValueAttributeWitherFunction(String attributeKey, T defaultValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyTo(com.foreach.across.modules.web.ui.elements.HtmlViewElement target)
     

    Methods inherited from class com.foreach.across.modules.web.ui.elements.support.AttributeWitherFunction

    getValueFrom, removeFrom, test, withValue

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Predicate

    and, negate, or

    Methods inherited from interface com.foreach.across.modules.web.ui.ViewElement.WitherGetter

    as
  • Constructor Details

    • DefaultValueAttributeWitherFunction

      public DefaultValueAttributeWitherFunction(String attributeKey, T defaultValue)
  • Method Details

    • applyTo

      public void applyTo(com.foreach.across.modules.web.ui.elements.HtmlViewElement target)
      Specified by:
      applyTo in interface com.foreach.across.modules.web.ui.ViewElement.WitherSetter<T>