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

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

The newest version!
package org.nuiton.jaxx.runtime.swing;

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 = "Wed Sep 18 12:57:40 UTC 2024")
public final class TabInfoJavaBeanDefinition extends AbstractJavaBeanDefinition {

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

    @Override
    protected final java.util.Map> loadTypes() {
        java.util.Map> result = new java.util.LinkedHashMap<>();
        result.put("background", java.awt.Color.class);
        result.put("containerId", java.lang.String.class);
        result.put("disabledIcon", javax.swing.Icon.class);
        result.put("displayedMnemonicIndex", int.class);
        result.put("enabled", boolean.class);
        result.put("foreground", java.awt.Color.class);
        result.put("icon", javax.swing.Icon.class);
        result.put("id", java.lang.String.class);
        result.put("mnemonic", int.class);
        result.put("properties", java.util.Set.class);
        result.put("tabComponent", javax.swing.JComponent.class);
        result.put("tabComponentStr", java.lang.String.class);
        result.put("tabIndex", int.class);
        result.put("title", java.lang.String.class);
        result.put("toolTipText", java.lang.String.class);
        result.put("valid", boolean.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("background", TabInfo::getBackground);
        result.put("containerId", TabInfo::getContainerId);
        result.put("disabledIcon", TabInfo::getDisabledIcon);
        result.put("displayedMnemonicIndex", TabInfo::getDisplayedMnemonicIndex);
        result.put("enabled", TabInfo::isEnabled);
        result.put("foreground", TabInfo::getForeground);
        result.put("icon", TabInfo::getIcon);
        result.put("id", TabInfo::getId);
        result.put("mnemonic", TabInfo::getMnemonic);
        result.put("properties", TabInfo::getProperties);
        result.put("tabComponent", TabInfo::getTabComponent);
        result.put("tabComponentStr", TabInfo::getTabComponentStr);
        result.put("tabIndex", TabInfo::getTabIndex);
        result.put("title", TabInfo::getTitle);
        result.put("toolTipText", TabInfo::getToolTipText);
        result.put("valid", TabInfo::isValid);
        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("background", (e, v) -> e.setBackground((java.awt.Color) v));
        result.put("containerId", (e, v) -> e.setContainerId((java.lang.String) v));
        result.put("disabledIcon", (e, v) -> e.setDisabledIcon((javax.swing.Icon) v));
        result.put("displayedMnemonicIndex", (e, v) -> e.setDisplayedMnemonicIndex((int) v));
        result.put("enabled", (e, v) -> e.setEnabled((boolean) v));
        result.put("foreground", (e, v) -> e.setForeground((java.awt.Color) v));
        result.put("icon", (e, v) -> e.setIcon((javax.swing.Icon) v));
        result.put("mnemonic", (e, v) -> e.setMnemonic((int) v));
        result.put("properties", (e, v) -> e.setProperties((java.util.Set< java.lang.String >) v));
        result.put("tabComponent", (e, v) -> e.setTabComponent((javax.swing.JComponent) v));
        result.put("tabComponentStr", (e, v) -> e.setTabComponentStr((java.lang.String) v));
        result.put("tabIndex", (e, v) -> e.setTabIndex((int) v));
        result.put("title", (e, v) -> e.setTitle((java.lang.String) v));
        result.put("toolTipText", (e, v) -> e.setToolTipText((java.lang.String) v));
        result.put("valid", (e, v) -> e.setValid((boolean) v));
        return (java.util.Map) java.util.Collections.unmodifiableMap(result);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy