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

org.datafx.featuretoggle.HideByFeatureResourceConsumer Maven / Gradle / Ivy

The newest version!
package org.datafx.featuretoggle;

import javafx.scene.Node;
import org.datafx.controller.context.ViewContext;
import org.datafx.controller.context.resource.ControllerResourceConsumer;

public class HideByFeatureResourceConsumer implements ControllerResourceConsumer {

    @Override
    public void consumeResource(HideByFeature annotation, Node resource, ViewContext context) {
        FeatureHandler.getInstance().hideByFeature(resource, annotation.value());
    }

    @Override
    public Class getSupportedAnnotation() {
        return HideByFeature.class;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy