Package com.cathive.fx.guice.controllerlookup

Examples of com.cathive.fx.guice.controllerlookup.ControllerLookup


        @Override
        public ControllerLookup get() {
            if (!fxmlLoadingScope.isActive()) {
                throw new IllegalStateException("A ControllerLookup instance cannot be injected while outside of the FXML Loading scope.");
            }
            return new ControllerLookup(fxmlLoadingScope.getIdentifiables());
        }
View Full Code Here


    @Override
    public void injectMembers(T instance) {
        Object controllerInstance = null;
        if (!annotation.controllerId().isEmpty()) {
            controllerInstance = new ControllerLookup(scope.getIdentifiables()).lookup(annotation.controllerId());
        } else {
            controllerInstance = scope.getInstance(annotation.controllerId());
        }
        if (controllerInstance == null) {
            throw new IllegalStateException("No suitable controller instance found!");
View Full Code Here

        public ControllerLookup get() {
            if(!fxmlLoadingScope.isInScope()) {
                throw new IllegalStateException("A ControllerLookup instance cannot be injected while outside of the FXML Loading scope.");
            }
           
            return new ControllerLookup(fxmlLoadingScope.getControllers());
        }
View Full Code Here

        public ControllerLookup get() {
            if (!fxmlLoadingScope.isActive()) {
                throw new IllegalStateException(
                        "A ControllerLookup instance cannot be injected while outside of the FXML Loading scope.");
            }
            return new ControllerLookup(fxmlLoadingScope.getIdentifiables());
        }
View Full Code Here

    @Override
    public void injectMembers(T instance) {
        Object controllerInstance = null;
        if (!annotation.controllerId().isEmpty()) {
            controllerInstance = new ControllerLookup(scope.getIdentifiables()).lookup(annotation.controllerId());
        } else {
            controllerInstance = scope.getInstance(annotation.controllerId());
        }
        if (controllerInstance == null) {
            throw new IllegalStateException("No suitable controller instance found!");
View Full Code Here

        @Override
        public ControllerLookup get() {
            if (!fxmlLoadingScope.isActive()) {
                throw new IllegalStateException("A ControllerLookup instance cannot be injected while outside of the FXML Loading scope.");
            }
            return new ControllerLookup(fxmlLoadingScope.getIdentifiables());
        }
View Full Code Here

        @Override
        public ControllerLookup get() {
            if (!fxmlLoadingScope.isActive()) {
                throw new IllegalStateException("A ControllerLookup instance cannot be injected while outside of the FXML Loading scope.");
            }
            return new ControllerLookup(fxmlLoadingScope.getIdentifiables());
        }
View Full Code Here

TOP

Related Classes of com.cathive.fx.guice.controllerlookup.ControllerLookup

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.