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

org.nuiton.jaxx.runtime.swing.ApplicationActionJavaBeanDefinition Maven / Gradle / Ivy

package org.nuiton.jaxx.runtime.swing;

import com.google.auto.service.AutoService;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import io.ultreia.java4all.bean.AbstractJavaBeanComparatorBuilder;
import io.ultreia.java4all.bean.AbstractJavaBeanInstanceBuilder;
import io.ultreia.java4all.bean.AbstractJavaBeanPredicate;
import io.ultreia.java4all.bean.AbstractJavaBeanStream;
import io.ultreia.java4all.bean.definition.AbstractJavaBeanDefinition;
import io.ultreia.java4all.bean.definition.JavaBeanDefinition;
import java.util.Collection;
import java.util.function.BiConsumer;
import java.util.function.Function;
import javax.annotation.Generated;

@AutoService(JavaBeanDefinition.class)
@Generated(value = "io.ultreia.java4all.bean.spi.GenerateJavaBeanDefinitionProcessor", date = "Wed Jul 31 11:04:15 UTC 2019")
public final class ApplicationActionJavaBeanDefinition extends AbstractJavaBeanDefinition {

    @Override
    protected final ImmutableSet> loadAcceptedTypes() {
        return ImmutableSet.>builder()
                .add(ApplicationAction.class)
                .build();
    }

    @Override
    protected final ImmutableMap> loadTypes() {
        return ImmutableMap.>builder()
                .put("acceleratorKey", javax.swing.KeyStroke.class)
                .put("actionCommandKey", java.lang.String.class)
                .put("addKeyStrokeToText", boolean.class)
                .put("addMnemonicAsKeyStroke", boolean.class)
                .put("displayMnemonicIndexKey", int.class)
                .put("editor", javax.swing.AbstractButton.class)
                .put("enabled", boolean.class)
                .put("icon", javax.swing.Icon.class)
                .put("keyStroke", javax.swing.KeyStroke.class)
                .put("largeIcon", javax.swing.Icon.class)
                .put("mnemonic", int.class)
                .put("name", java.lang.String.class)
                .put("selectedKey", boolean.class)
                .put("text", java.lang.String.class)
                .put("tooltipText", java.lang.String.class)
                .put("ui", org.nuiton.jaxx.runtime.JAXXObject.class)
                .build();
    }

    @SuppressWarnings("unchecked")
    @Override
    protected final ImmutableMap> loadGetters() {
        return (ImmutableMap) ImmutableMap., ?>>builder()
                .put("acceleratorKey", ApplicationAction::getAcceleratorKey)
                .put("actionCommandKey", ApplicationAction::getActionCommandKey)
                .put("addKeyStrokeToText", ApplicationAction::isAddKeyStrokeToText)
                .put("addMnemonicAsKeyStroke", ApplicationAction::isAddMnemonicAsKeyStroke)
                .put("displayMnemonicIndexKey", ApplicationAction::getDisplayMnemonicIndexKey)
                .put("editor", ApplicationAction::getEditor)
                .put("enabled", ApplicationAction::isEnabled)
                .put("icon", ApplicationAction::getIcon)
                .put("keyStroke", ApplicationAction::getKeyStroke)
                .put("largeIcon", ApplicationAction::getLargeIcon)
                .put("mnemonic", ApplicationAction::getMnemonic)
                .put("name", ApplicationAction::getName)
                .put("selectedKey", ApplicationAction::isSelectedKey)
                .put("text", ApplicationAction::getText)
                .put("tooltipText", ApplicationAction::getTooltipText)
                .put("ui", ApplicationAction::getUi)
                .build();
    }

    @SuppressWarnings("unchecked")
    @Override
    protected final ImmutableMap> loadSetters() {
        return (ImmutableMap) ImmutableMap., ?>>builder()
                .put("addKeyStrokeToText", (e, v) -> e.setAddKeyStrokeToText((boolean) v))
                .put("addMnemonicAsKeyStroke", (e, v) -> e.setAddMnemonicAsKeyStroke((boolean) v))
                .put("displayMnemonicIndexKey", (e, v) -> e.setDisplayMnemonicIndexKey((int) v))
                .put("editor", (e, v) -> e.setEditor((javax.swing.AbstractButton) v))
                .put("enabled", (e, v) -> e.setEnabled((boolean) v))
                .put("icon", (e, v) -> e.setIcon((javax.swing.Icon) v))
                .put("keyStroke", (e, v) -> e.setKeyStroke((javax.swing.KeyStroke) v))
                .put("largeIcon", (e, v) -> e.setLargeIcon((javax.swing.Icon) v))
                .put("mnemonic", (e, v) -> e.setMnemonic((int) v))
                .put("name", (e, v) -> e.setName((java.lang.String) v))
                .put("selectedKey", (e, v) -> e.setSelectedKey((boolean) v))
                .put("text", (e, v) -> e.setText((java.lang.String) v))
                .put("tooltipText", (e, v) -> e.setTooltipText((java.lang.String) v))
                .put("ui", (e, v) -> e.setUi((UI) v))
                .build();
    }

    public static  ApplicationActionPredicate predicate() {
        return new ApplicationActionPredicate<>();
    }

    public static  ApplicationActionStream stream(Collection> elements) {
        return new ApplicationActionStream<>(elements);
    }

    public static  ApplicationActionComparatorBuilder comparator() {
        return new ApplicationActionComparatorBuilder<>();
    }

    public static  ApplicationActionInstanceBuilder instance() {
        return new ApplicationActionInstanceBuilder<>();
    }

    @Override
    public ApplicationActionPredicate predicateBuilder() {
        return new ApplicationActionPredicate(this);
    }

    @Override
    public ApplicationActionComparatorBuilder comparatorBuilder() {
        return new ApplicationActionComparatorBuilder(this);
    }

    @Override
    public ApplicationActionInstanceBuilder instanceBuilder() {
        return new ApplicationActionInstanceBuilder(this);
    }

    public static final class ApplicationActionPredicate extends AbstractJavaBeanPredicate, ApplicationActionPredicate> {

        protected ApplicationActionPredicate() {
            super(ApplicationActionJavaBeanDefinition.class);
        }

        protected ApplicationActionPredicate(ApplicationActionJavaBeanDefinition javaBeanDefinition) {
            super(javaBeanDefinition);
        }

        public ObjectQuery, javax.swing.KeyStroke, ApplicationActionPredicate, ?> whereAcceleratorKey() {
            return where("acceleratorKey");
        }

        public StringQuery, ApplicationActionPredicate, ?> whereActionCommandKey() {
            return whereString("actionCommandKey");
        }

        public PrimitiveBooleanQuery, ApplicationActionPredicate, ?> whereAddKeyStrokeToText() {
            return wherePrimitiveBoolean("addKeyStrokeToText");
        }

        public PrimitiveBooleanQuery, ApplicationActionPredicate, ?> whereAddMnemonicAsKeyStroke() {
            return wherePrimitiveBoolean("addMnemonicAsKeyStroke");
        }

        public PrimitiveObjectQuery, java.lang.Integer, ApplicationActionPredicate, ?> whereDisplayMnemonicIndexKey() {
            return wherePrimitive("displayMnemonicIndexKey");
        }

        public ObjectQuery, javax.swing.AbstractButton, ApplicationActionPredicate, ?> whereEditor() {
            return where("editor");
        }

        public PrimitiveBooleanQuery, ApplicationActionPredicate, ?> whereEnabled() {
            return wherePrimitiveBoolean("enabled");
        }

        public ObjectQuery, javax.swing.Icon, ApplicationActionPredicate, ?> whereIcon() {
            return where("icon");
        }

        public ObjectQuery, javax.swing.KeyStroke, ApplicationActionPredicate, ?> whereKeyStroke() {
            return where("keyStroke");
        }

        public ObjectQuery, javax.swing.Icon, ApplicationActionPredicate, ?> whereLargeIcon() {
            return where("largeIcon");
        }

        public PrimitiveObjectQuery, java.lang.Integer, ApplicationActionPredicate, ?> whereMnemonic() {
            return wherePrimitive("mnemonic");
        }

        public StringQuery, ApplicationActionPredicate, ?> whereName() {
            return whereString("name");
        }

        public PrimitiveBooleanQuery, ApplicationActionPredicate, ?> whereSelectedKey() {
            return wherePrimitiveBoolean("selectedKey");
        }

        public StringQuery, ApplicationActionPredicate, ?> whereText() {
            return whereString("text");
        }

        public StringQuery, ApplicationActionPredicate, ?> whereTooltipText() {
            return whereString("tooltipText");
        }

        public ObjectQuery, org.nuiton.jaxx.runtime.JAXXObject, ApplicationActionPredicate, ?> whereUi() {
            return where("ui");
        }
    }

    public static final class ApplicationActionStream extends AbstractJavaBeanStream, ApplicationActionStream> {

        protected ApplicationActionStream(Collection> elements) {
            super(ApplicationActionJavaBeanDefinition.class, elements);
        }

        protected ApplicationActionStream(ApplicationActionJavaBeanDefinition javaBeanDefinition, Collection> elements) {
            super(javaBeanDefinition, elements);
        }

        public StreamObjectQuery, javax.swing.KeyStroke, ApplicationActionStream, ?> whereAcceleratorKey() {
            return where("acceleratorKey");
        }

        public StreamStringQuery, ApplicationActionStream, ?> whereActionCommandKey() {
            return whereString("actionCommandKey");
        }

        public StreamPrimitiveBooleanQuery, ApplicationActionStream, ?> whereAddKeyStrokeToText() {
            return wherePrimitiveBoolean("addKeyStrokeToText");
        }

        public StreamPrimitiveBooleanQuery, ApplicationActionStream, ?> whereAddMnemonicAsKeyStroke() {
            return wherePrimitiveBoolean("addMnemonicAsKeyStroke");
        }

        public StreamPrimitiveObjectQuery, java.lang.Integer, ApplicationActionStream, ?> whereDisplayMnemonicIndexKey() {
            return wherePrimitive("displayMnemonicIndexKey");
        }

        public StreamObjectQuery, javax.swing.AbstractButton, ApplicationActionStream, ?> whereEditor() {
            return where("editor");
        }

        public StreamPrimitiveBooleanQuery, ApplicationActionStream, ?> whereEnabled() {
            return wherePrimitiveBoolean("enabled");
        }

        public StreamObjectQuery, javax.swing.Icon, ApplicationActionStream, ?> whereIcon() {
            return where("icon");
        }

        public StreamObjectQuery, javax.swing.KeyStroke, ApplicationActionStream, ?> whereKeyStroke() {
            return where("keyStroke");
        }

        public StreamObjectQuery, javax.swing.Icon, ApplicationActionStream, ?> whereLargeIcon() {
            return where("largeIcon");
        }

        public StreamPrimitiveObjectQuery, java.lang.Integer, ApplicationActionStream, ?> whereMnemonic() {
            return wherePrimitive("mnemonic");
        }

        public StreamStringQuery, ApplicationActionStream, ?> whereName() {
            return whereString("name");
        }

        public StreamPrimitiveBooleanQuery, ApplicationActionStream, ?> whereSelectedKey() {
            return wherePrimitiveBoolean("selectedKey");
        }

        public StreamStringQuery, ApplicationActionStream, ?> whereText() {
            return whereString("text");
        }

        public StreamStringQuery, ApplicationActionStream, ?> whereTooltipText() {
            return whereString("tooltipText");
        }

        public StreamObjectQuery, org.nuiton.jaxx.runtime.JAXXObject, ApplicationActionStream, ?> whereUi() {
            return where("ui");
        }
    }

    public static final class ApplicationActionComparatorBuilder extends AbstractJavaBeanComparatorBuilder, ApplicationActionComparatorBuilder> {

        protected ApplicationActionComparatorBuilder() {
            super(ApplicationActionJavaBeanDefinition.class);
        }

        protected ApplicationActionComparatorBuilder(ApplicationActionJavaBeanDefinition javaBeanDefinition) {
            super(javaBeanDefinition);
        }

        public Query, java.lang.String, ApplicationActionComparatorBuilder> whereActionCommandKey() {
            return on("actionCommandKey");
        }

        public Query, java.lang.Boolean, ApplicationActionComparatorBuilder> whereAddKeyStrokeToText() {
            return on("addKeyStrokeToText");
        }

        public Query, java.lang.Boolean, ApplicationActionComparatorBuilder> whereAddMnemonicAsKeyStroke() {
            return on("addMnemonicAsKeyStroke");
        }

        public Query, java.lang.Integer, ApplicationActionComparatorBuilder> whereDisplayMnemonicIndexKey() {
            return on("displayMnemonicIndexKey");
        }

        public Query, java.lang.Boolean, ApplicationActionComparatorBuilder> whereEnabled() {
            return on("enabled");
        }

        public Query, java.lang.Integer, ApplicationActionComparatorBuilder> whereMnemonic() {
            return on("mnemonic");
        }

        public Query, java.lang.String, ApplicationActionComparatorBuilder> whereName() {
            return on("name");
        }

        public Query, java.lang.Boolean, ApplicationActionComparatorBuilder> whereSelectedKey() {
            return on("selectedKey");
        }

        public Query, java.lang.String, ApplicationActionComparatorBuilder> whereText() {
            return on("text");
        }

        public Query, java.lang.String, ApplicationActionComparatorBuilder> whereTooltipText() {
            return on("tooltipText");
        }
    }

    public static final class ApplicationActionInstanceBuilder extends AbstractJavaBeanInstanceBuilder, ApplicationActionInstanceBuilder> {

        protected ApplicationActionInstanceBuilder() {
            super(ApplicationActionJavaBeanDefinition.class);
        }

        protected ApplicationActionInstanceBuilder(ApplicationActionJavaBeanDefinition javaBeanDefinition) {
            super(javaBeanDefinition);
        }

        public ApplicationActionInstanceBuilder addKeyStrokeToText(java.lang.Boolean value) {
            return set("addKeyStrokeToText", value);
        }

        public ApplicationActionInstanceBuilder addMnemonicAsKeyStroke(java.lang.Boolean value) {
            return set("addMnemonicAsKeyStroke", value);
        }

        public ApplicationActionInstanceBuilder displayMnemonicIndexKey(java.lang.Integer value) {
            return set("displayMnemonicIndexKey", value);
        }

        public ApplicationActionInstanceBuilder editor(javax.swing.AbstractButton value) {
            return set("editor", value);
        }

        public ApplicationActionInstanceBuilder enabled(java.lang.Boolean value) {
            return set("enabled", value);
        }

        public ApplicationActionInstanceBuilder icon(javax.swing.Icon value) {
            return set("icon", value);
        }

        public ApplicationActionInstanceBuilder keyStroke(javax.swing.KeyStroke value) {
            return set("keyStroke", value);
        }

        public ApplicationActionInstanceBuilder largeIcon(javax.swing.Icon value) {
            return set("largeIcon", value);
        }

        public ApplicationActionInstanceBuilder mnemonic(java.lang.Integer value) {
            return set("mnemonic", value);
        }

        public ApplicationActionInstanceBuilder name(java.lang.String value) {
            return set("name", value);
        }

        public ApplicationActionInstanceBuilder selectedKey(java.lang.Boolean value) {
            return set("selectedKey", value);
        }

        public ApplicationActionInstanceBuilder text(java.lang.String value) {
            return set("text", value);
        }

        public ApplicationActionInstanceBuilder tooltipText(java.lang.String value) {
            return set("tooltipText", value);
        }

        public ApplicationActionInstanceBuilder ui(org.nuiton.jaxx.runtime.JAXXObject value) {
            return set("ui", value);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy