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

org.nuiton.jaxx.runtime.swing.action.JAXXObjectActionSupportJavaBeanDefinition Maven / Gradle / Ivy

There is a newer version: 3.1.5
Show newest version
package org.nuiton.jaxx.runtime.swing.action;

import com.google.auto.service.AutoService;
import io.ultreia.java4all.bean.definition.AbstractJavaBeanDefinition;
import io.ultreia.java4all.bean.definition.JavaBeanDefinition;
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 = "Mon Sep 09 13:43:11 UTC 2024")
public final class JAXXObjectActionSupportJavaBeanDefinition extends AbstractJavaBeanDefinition {

    @Override
    protected final java.util.Set> loadAcceptedTypes() {
        java.util.Set> result = new java.util.LinkedHashSet<>();
        result.add(JAXXObjectActionSupport.class);
        return java.util.Collections.unmodifiableSet(result);
    }

    @Override
    protected final java.util.Map> loadTypes() {
        java.util.Map> result = new java.util.LinkedHashMap<>();
        result.put("acceleratorKey", javax.swing.KeyStroke.class);
        result.put("actionCommandKey", java.lang.String.class);
        result.put("addKeyStrokeToText", boolean.class);
        result.put("addMnemonicAsKeyStroke", boolean.class);
        result.put("checkMenuItemIsArmed", boolean.class);
        result.put("displayMnemonicIndexKey", int.class);
        result.put("editor", javax.swing.AbstractButton.class);
        result.put("enabled", boolean.class);
        result.put("icon", javax.swing.Icon.class);
        result.put("keyStroke", javax.swing.KeyStroke.class);
        result.put("largeIcon", javax.swing.Icon.class);
        result.put("mnemonic", int.class);
        result.put("name", java.lang.String.class);
        result.put("selectedKey", boolean.class);
        result.put("text", java.lang.String.class);
        result.put("tooltipText", java.lang.String.class);
        result.put("ui", org.nuiton.jaxx.runtime.JAXXObject.class);
        return java.util.Collections.unmodifiableMap(result);
    }

    @SuppressWarnings("unchecked")
    @Override
    protected final java.util.Map> loadGetters() {
        java.util.Map, ?>> result = new java.util.LinkedHashMap<>();
        result.put("acceleratorKey", JAXXObjectActionSupport::getAcceleratorKey);
        result.put("actionCommandKey", JAXXObjectActionSupport::getActionCommandKey);
        result.put("addKeyStrokeToText", JAXXObjectActionSupport::isAddKeyStrokeToText);
        result.put("addMnemonicAsKeyStroke", JAXXObjectActionSupport::isAddMnemonicAsKeyStroke);
        result.put("checkMenuItemIsArmed", JAXXObjectActionSupport::isCheckMenuItemIsArmed);
        result.put("displayMnemonicIndexKey", JAXXObjectActionSupport::getDisplayMnemonicIndexKey);
        result.put("editor", JAXXObjectActionSupport::getEditor);
        result.put("enabled", JAXXObjectActionSupport::isEnabled);
        result.put("icon", JAXXObjectActionSupport::getIcon);
        result.put("keyStroke", JAXXObjectActionSupport::getKeyStroke);
        result.put("largeIcon", JAXXObjectActionSupport::getLargeIcon);
        result.put("mnemonic", JAXXObjectActionSupport::getMnemonic);
        result.put("name", JAXXObjectActionSupport::getName);
        result.put("selectedKey", JAXXObjectActionSupport::isSelectedKey);
        result.put("text", JAXXObjectActionSupport::getText);
        result.put("tooltipText", JAXXObjectActionSupport::getTooltipText);
        result.put("ui", JAXXObjectActionSupport::getUi);
        return (java.util.Map) java.util.Collections.unmodifiableMap(result);
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy