All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.czyzby.lml.parser.impl.attribute.table.TableRoundLmlAttribute Maven / Gradle / Ivy

package com.github.czyzby.lml.parser.impl.attribute.table;

import com.badlogic.gdx.scenes.scene2d.ui.Table;
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 Table#setRound(boolean)}. Mapped to "round".
 *
 * @author MJ */
public class TableRoundLmlAttribute implements LmlAttribute {
    @Override
    public Class
getHandledType() { return Table.class; } @Override public void process(final LmlParser parser, final LmlTag tag, final Table actor, final String rawAttributeData) { actor.setRound(parser.parseBoolean(rawAttributeData, actor)); } }