org.nuiton.jaxx.runtime.swing.ApplicationActionJavaBeanDefinition 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 ApplicationActionJavaBeanDefinition extends AbstractJavaBeanDefinition {
@Override
protected final java.util.Set> loadAcceptedTypes() {
java.util.Set> result = new java.util.LinkedHashSet<>();
result.add(ApplicationAction.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("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", ApplicationAction::getAcceleratorKey);
result.put("actionCommandKey", ApplicationAction::getActionCommandKey);
result.put("addKeyStrokeToText", ApplicationAction::isAddKeyStrokeToText);
result.put("addMnemonicAsKeyStroke", ApplicationAction::isAddMnemonicAsKeyStroke);
result.put("displayMnemonicIndexKey", ApplicationAction::getDisplayMnemonicIndexKey);
result.put("editor", ApplicationAction::getEditor);
result.put("enabled", ApplicationAction::isEnabled);
result.put("icon", ApplicationAction::getIcon);
result.put("keyStroke", ApplicationAction::getKeyStroke);
result.put("largeIcon", ApplicationAction::getLargeIcon);
result.put("mnemonic", ApplicationAction::getMnemonic);
result.put("name", ApplicationAction::getName);
result.put("selectedKey", ApplicationAction::isSelectedKey);
result.put("text", ApplicationAction::getText);
result.put("tooltipText", ApplicationAction::getTooltipText);
result.put("ui", ApplicationAction::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("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);
}
}