
com.github.czyzby.lml.parser.impl.attribute.building.RangeMinValueLmlAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-lml Show documentation
Show all versions of gdx-lml Show documentation
Templates for LibGDX Scene2D UI with HTML-like syntax and FreeMarker-inspired macros.
package com.github.czyzby.lml.parser.impl.attribute.building;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.impl.tag.builder.FloatRangeLmlActorBuilder;
import com.github.czyzby.lml.parser.tag.LmlBuildingAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** Used to parse min value of numeric range widgets. Expects a float. Mapped to "min".
*
* @author MJ */
public class RangeMinValueLmlAttribute implements LmlBuildingAttribute {
@Override
public Class getBuilderType() {
return FloatRangeLmlActorBuilder.class;
}
@Override
public boolean process(final LmlParser parser, final LmlTag tag, final FloatRangeLmlActorBuilder builder,
final String rawAttributeData) {
builder.setMin(parser.parseFloat(rawAttributeData));
return FULLY_PARSED;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy