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