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

net.isger.brick.velocity.directive.widget.AbstractLayout Maven / Gradle / Ivy

package net.isger.brick.velocity.directive.widget;

import org.apache.velocity.runtime.parser.node.ASTDirective;
import org.apache.velocity.runtime.parser.node.Node;

public abstract class AbstractLayout implements WidgetLayout {

    protected WidgetScreen screen;

    public AbstractLayout(WidgetScreen screen) {
        this.screen = screen;
    }

    public boolean isWidgetNode(Node node) {
        return node instanceof ASTDirective
                && screen.getDirective().getName()
                        .equals(((ASTDirective) node).getDirectiveName());
    }

    // private WidgetNode getWidgetNode(Node node) {
    // ASTDirective directiveNode = (ASTDirective) node;
    // return null;
    // }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy