com.github.czyzby.lml.parser.impl.attribute.split.SplitAmountLmlAttribute Maven / Gradle / Ivy
package com.github.czyzby.lml.parser.impl.attribute.split;
import com.badlogic.gdx.scenes.scene2d.ui.SplitPane;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlAttribute;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** See {@link SplitPane#setSplitAmount(float)}. By default, mapped to "split", "splitAmount", "value".
*
* @author MJ */
public class SplitAmountLmlAttribute implements LmlAttribute {
@Override
public Class getHandledType() {
return SplitPane.class;
}
@Override
public void process(final LmlParser parser, final LmlTag tag, final SplitPane actor,
final String rawAttributeData) {
actor.setSplitAmount(parser.parseFloat(rawAttributeData, actor));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy