package com.github.czyzby.lml.parser.impl.attribute.group.button; import com.github.czyzby.lml.parser.LmlParser; import com.github.czyzby.lml.parser.tag.LmlAttribute; import com.github.czyzby.lml.parser.tag.LmlTag; import com.github.czyzby.lml.scene2d.ui.reflected.ButtonTable; /** See {@link com.badlogic.gdx.scenes.scene2d.ui.ButtonGroup#setMaxCheckCount(int)}. Mapped to "maxCheckCount", "max". * * @author MJ */ public class MaxCheckCountLmlAttribute implements LmlAttribute<ButtonTable> { @Override public Class<ButtonTable> getHandledType() { return ButtonTable.class; } @Override public void process(final LmlParser parser, final LmlTag tag, final ButtonTable actor, final String rawAttributeData) { actor.getButtonGroup().setMaxCheckCount(parser.parseInt(rawAttributeData, actor)); } }