de.factoryfx.javafx.view.ViewDescriptionFactory Maven / Gradle / Ivy
package de.factoryfx.javafx.view;
import de.factoryfx.data.attribute.types.EnumAttribute;
import de.factoryfx.data.attribute.types.I18nAttribute;
import de.factoryfx.factory.FactoryBase;
import de.factoryfx.factory.SimpleFactoryBase;
import de.factoryfx.factory.atrribute.FactoryReferenceAttribute;
import de.factoryfx.javafx.util.UniformDesign;
import de.factoryfx.javafx.util.UniformDesignFactory;
import org.controlsfx.glyphfont.FontAwesome;
public class ViewDescriptionFactory> extends SimpleFactoryBase {
public final I18nAttribute text = new I18nAttribute().de("text").en("text");
EnumAttribute icon = new EnumAttribute<>(FontAwesome.Glyph.class).de("icon").en("icon");
public final FactoryReferenceAttribute> uniformDesign = new FactoryReferenceAttribute>().setupUnsafe(UniformDesignFactory.class).de("uniformDesign").en("uniformDesign");
@Override
public ViewDescription createImpl() {
return new ViewDescription(uniformDesign.instance().getText(text),icon.getEnum());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy