com.github.czyzby.lml.parser.impl.attribute.table.TableAlignLmlAttribute 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;
import com.github.czyzby.lml.util.LmlUtilities;
/** See {@link Table#align(int)}. To avoid collision with cell attributes, this attribute is mapped to "tableAlign".
*
* @author MJ */
public class TableAlignLmlAttribute 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.align(LmlUtilities.parseAlignment(parser, actor, rawAttributeData));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy