com.github.czyzby.lml.parser.impl.attribute.input.MessageLmlAttribute Maven / Gradle / Ivy
package com.github.czyzby.lml.parser.impl.attribute.input;
import com.badlogic.gdx.scenes.scene2d.ui.TextField;
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 TextField#setMessageText(String)}. Mapped to "message", "messageText".
*
* @author MJ */
public class MessageLmlAttribute implements LmlAttribute {
@Override
public Class getHandledType() {
return TextField.class;
}
@Override
public void process(final LmlParser parser, final LmlTag tag, final TextField actor,
final String rawAttributeData) {
actor.setMessageText(parser.parseString(rawAttributeData, actor));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy