Package org.jrebirth.af.core.ui.annotation

Examples of org.jrebirth.af.core.ui.annotation.RootNodeId


            // by default use the controller object as callback object
            this.callbackObject = this.getController();
        }

        // Find the RootNodeId annotation
        final RootNodeId rni = ClassUtility.getLastClassAnnotation(this.getClass(), RootNodeId.class);
        if (rni != null) {
            getRootNode().setId(rni.value().isEmpty() ? this.getClass().getSimpleName() : rni.value());
        }

        // Process Event Handler Annotation
        // For each View class annotation we will attach an event handler to the root node
        for (final Annotation a : this.getClass().getAnnotations()) {
View Full Code Here


        // Prepare the root node
        this.rootNode = (N) ClassUtility.buildGenericType(this.getClass(), Node.class);

        // Find the RootNodeId annotation
        final RootNodeId rni = ClassUtility.getLastClassAnnotation(this.getClass(), RootNodeId.class);
        if (rni != null) {
            getRootNode().setId(rni.value().isEmpty() ? this.getClass().getSimpleName() : rni.value());
        }

        // Set up the model view
        initSimpleView();
    }
View Full Code Here

TOP

Related Classes of org.jrebirth.af.core.ui.annotation.RootNodeId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.