com.github.czyzby.lml.parser.impl.attribute.layout.LayoutEnabledLmlAttribute Maven / Gradle / Ivy
package com.github.czyzby.lml.parser.impl.attribute.layout;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.utils.Layout;
import com.github.czyzby.lml.parser.LmlParser;
import com.github.czyzby.lml.parser.tag.LmlTag;
/** See {@link Layout#setLayoutEnabled(boolean)}. By default, mapped to "layout" and "layoutEnabled" attribute names.
*
* @author MJ */
public class LayoutEnabledLmlAttribute extends AbstractLayoutLmlAttribute {
@Override
protected void process(final LmlParser parser, final LmlTag tag, final Layout layout, final Actor actor,
final String rawAttributeData) {
layout.setLayoutEnabled(parser.parseBoolean(rawAttributeData, actor));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy