org.nuiton.jaxx.runtime.swing.action.JAXXObjectActionSupportJavaBeanDefinition Maven / Gradle / Ivy
package org.nuiton.jaxx.runtime.swing.action;
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 = "Fri Oct 22 17:26:36 CEST 2021")
public final class JAXXObjectActionSupportJavaBeanDefinition extends AbstractJavaBeanDefinition {
@Override
protected final ImmutableSet> loadAcceptedTypes() {
return ImmutableSet.>builder()
.add(JAXXObjectActionSupport.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("checkMenuItemIsArmed", 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", JAXXObjectActionSupport::getAcceleratorKey)
.put("actionCommandKey", JAXXObjectActionSupport::getActionCommandKey)
.put("addKeyStrokeToText", JAXXObjectActionSupport::isAddKeyStrokeToText)
.put("addMnemonicAsKeyStroke", JAXXObjectActionSupport::isAddMnemonicAsKeyStroke)
.put("checkMenuItemIsArmed", JAXXObjectActionSupport::isCheckMenuItemIsArmed)
.put("displayMnemonicIndexKey", JAXXObjectActionSupport::getDisplayMnemonicIndexKey)
.put("editor", JAXXObjectActionSupport::getEditor)
.put("enabled", JAXXObjectActionSupport::isEnabled)
.put("icon", JAXXObjectActionSupport::getIcon)
.put("keyStroke", JAXXObjectActionSupport::getKeyStroke)
.put("largeIcon", JAXXObjectActionSupport::getLargeIcon)
.put("mnemonic", JAXXObjectActionSupport::getMnemonic)
.put("name", JAXXObjectActionSupport::getName)
.put("selectedKey", JAXXObjectActionSupport::isSelectedKey)
.put("text", JAXXObjectActionSupport::getText)
.put("tooltipText", JAXXObjectActionSupport::getTooltipText)
.put("ui", JAXXObjectActionSupport::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("checkMenuItemIsArmed", (e, v) -> e.setCheckMenuItemIsArmed((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 JAXXObjectActionSupportPredicate predicate() {
return new JAXXObjectActionSupportPredicate<>();
}
public static JAXXObjectActionSupportStream stream(Collection> elements) {
return new JAXXObjectActionSupportStream<>(elements);
}
public static JAXXObjectActionSupportComparatorBuilder comparator() {
return new JAXXObjectActionSupportComparatorBuilder<>();
}
public static JAXXObjectActionSupportInstanceBuilder instance() {
return new JAXXObjectActionSupportInstanceBuilder<>();
}
@Override
public JAXXObjectActionSupportPredicate predicateBuilder() {
return new JAXXObjectActionSupportPredicate(this);
}
@Override
public JAXXObjectActionSupportComparatorBuilder comparatorBuilder() {
return new JAXXObjectActionSupportComparatorBuilder(this);
}
@Override
public JAXXObjectActionSupportInstanceBuilder instanceBuilder() {
return new JAXXObjectActionSupportInstanceBuilder(this);
}
public static final class JAXXObjectActionSupportPredicate extends AbstractJavaBeanPredicate, JAXXObjectActionSupportPredicate> {
protected JAXXObjectActionSupportPredicate() {
super(JAXXObjectActionSupportJavaBeanDefinition.class);
}
protected JAXXObjectActionSupportPredicate(JAXXObjectActionSupportJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public ObjectQuery, javax.swing.KeyStroke, JAXXObjectActionSupportPredicate, ?> whereAcceleratorKey() {
return where("acceleratorKey");
}
public StringQuery, JAXXObjectActionSupportPredicate, ?> whereActionCommandKey() {
return whereString("actionCommandKey");
}
public PrimitiveBooleanQuery, JAXXObjectActionSupportPredicate, ?> whereAddKeyStrokeToText() {
return wherePrimitiveBoolean("addKeyStrokeToText");
}
public PrimitiveBooleanQuery, JAXXObjectActionSupportPredicate, ?> whereAddMnemonicAsKeyStroke() {
return wherePrimitiveBoolean("addMnemonicAsKeyStroke");
}
public PrimitiveBooleanQuery, JAXXObjectActionSupportPredicate, ?> whereCheckMenuItemIsArmed() {
return wherePrimitiveBoolean("checkMenuItemIsArmed");
}
public PrimitiveObjectQuery, java.lang.Integer, JAXXObjectActionSupportPredicate, ?> whereDisplayMnemonicIndexKey() {
return wherePrimitive("displayMnemonicIndexKey");
}
public ObjectQuery, javax.swing.AbstractButton, JAXXObjectActionSupportPredicate, ?> whereEditor() {
return where("editor");
}
public PrimitiveBooleanQuery, JAXXObjectActionSupportPredicate, ?> whereEnabled() {
return wherePrimitiveBoolean("enabled");
}
public ObjectQuery, javax.swing.Icon, JAXXObjectActionSupportPredicate, ?> whereIcon() {
return where("icon");
}
public ObjectQuery, javax.swing.KeyStroke, JAXXObjectActionSupportPredicate, ?> whereKeyStroke() {
return where("keyStroke");
}
public ObjectQuery, javax.swing.Icon, JAXXObjectActionSupportPredicate, ?> whereLargeIcon() {
return where("largeIcon");
}
public PrimitiveObjectQuery, java.lang.Integer, JAXXObjectActionSupportPredicate, ?> whereMnemonic() {
return wherePrimitive("mnemonic");
}
public StringQuery, JAXXObjectActionSupportPredicate, ?> whereName() {
return whereString("name");
}
public PrimitiveBooleanQuery, JAXXObjectActionSupportPredicate, ?> whereSelectedKey() {
return wherePrimitiveBoolean("selectedKey");
}
public StringQuery, JAXXObjectActionSupportPredicate, ?> whereText() {
return whereString("text");
}
public StringQuery, JAXXObjectActionSupportPredicate, ?> whereTooltipText() {
return whereString("tooltipText");
}
public ObjectQuery, org.nuiton.jaxx.runtime.JAXXObject, JAXXObjectActionSupportPredicate, ?> whereUi() {
return where("ui");
}
}
public static final class JAXXObjectActionSupportStream extends AbstractJavaBeanStream, JAXXObjectActionSupportStream> {
protected JAXXObjectActionSupportStream(Collection> elements) {
super(JAXXObjectActionSupportJavaBeanDefinition.class, elements);
}
protected JAXXObjectActionSupportStream(JAXXObjectActionSupportJavaBeanDefinition javaBeanDefinition, Collection> elements) {
super(javaBeanDefinition, elements);
}
public StreamObjectQuery, javax.swing.KeyStroke, JAXXObjectActionSupportStream, ?> whereAcceleratorKey() {
return where("acceleratorKey");
}
public StreamStringQuery, JAXXObjectActionSupportStream, ?> whereActionCommandKey() {
return whereString("actionCommandKey");
}
public StreamPrimitiveBooleanQuery, JAXXObjectActionSupportStream, ?> whereAddKeyStrokeToText() {
return wherePrimitiveBoolean("addKeyStrokeToText");
}
public StreamPrimitiveBooleanQuery, JAXXObjectActionSupportStream, ?> whereAddMnemonicAsKeyStroke() {
return wherePrimitiveBoolean("addMnemonicAsKeyStroke");
}
public StreamPrimitiveBooleanQuery, JAXXObjectActionSupportStream, ?> whereCheckMenuItemIsArmed() {
return wherePrimitiveBoolean("checkMenuItemIsArmed");
}
public StreamPrimitiveObjectQuery, java.lang.Integer, JAXXObjectActionSupportStream, ?> whereDisplayMnemonicIndexKey() {
return wherePrimitive("displayMnemonicIndexKey");
}
public StreamObjectQuery, javax.swing.AbstractButton, JAXXObjectActionSupportStream, ?> whereEditor() {
return where("editor");
}
public StreamPrimitiveBooleanQuery, JAXXObjectActionSupportStream, ?> whereEnabled() {
return wherePrimitiveBoolean("enabled");
}
public StreamObjectQuery, javax.swing.Icon, JAXXObjectActionSupportStream, ?> whereIcon() {
return where("icon");
}
public StreamObjectQuery, javax.swing.KeyStroke, JAXXObjectActionSupportStream, ?> whereKeyStroke() {
return where("keyStroke");
}
public StreamObjectQuery, javax.swing.Icon, JAXXObjectActionSupportStream, ?> whereLargeIcon() {
return where("largeIcon");
}
public StreamPrimitiveObjectQuery, java.lang.Integer, JAXXObjectActionSupportStream, ?> whereMnemonic() {
return wherePrimitive("mnemonic");
}
public StreamStringQuery, JAXXObjectActionSupportStream, ?> whereName() {
return whereString("name");
}
public StreamPrimitiveBooleanQuery, JAXXObjectActionSupportStream, ?> whereSelectedKey() {
return wherePrimitiveBoolean("selectedKey");
}
public StreamStringQuery, JAXXObjectActionSupportStream, ?> whereText() {
return whereString("text");
}
public StreamStringQuery, JAXXObjectActionSupportStream, ?> whereTooltipText() {
return whereString("tooltipText");
}
public StreamObjectQuery, org.nuiton.jaxx.runtime.JAXXObject, JAXXObjectActionSupportStream, ?> whereUi() {
return where("ui");
}
}
public static final class JAXXObjectActionSupportComparatorBuilder extends AbstractJavaBeanComparatorBuilder, JAXXObjectActionSupportComparatorBuilder> {
protected JAXXObjectActionSupportComparatorBuilder() {
super(JAXXObjectActionSupportJavaBeanDefinition.class);
}
protected JAXXObjectActionSupportComparatorBuilder(JAXXObjectActionSupportJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public Query, java.lang.String, JAXXObjectActionSupportComparatorBuilder> whereActionCommandKey() {
return on("actionCommandKey");
}
public Query, java.lang.Boolean, JAXXObjectActionSupportComparatorBuilder> whereAddKeyStrokeToText() {
return on("addKeyStrokeToText");
}
public Query, java.lang.Boolean, JAXXObjectActionSupportComparatorBuilder> whereAddMnemonicAsKeyStroke() {
return on("addMnemonicAsKeyStroke");
}
public Query, java.lang.Boolean, JAXXObjectActionSupportComparatorBuilder> whereCheckMenuItemIsArmed() {
return on("checkMenuItemIsArmed");
}
public Query, java.lang.Integer, JAXXObjectActionSupportComparatorBuilder> whereDisplayMnemonicIndexKey() {
return on("displayMnemonicIndexKey");
}
public Query, java.lang.Boolean, JAXXObjectActionSupportComparatorBuilder> whereEnabled() {
return on("enabled");
}
public Query, java.lang.Integer, JAXXObjectActionSupportComparatorBuilder> whereMnemonic() {
return on("mnemonic");
}
public Query, java.lang.String, JAXXObjectActionSupportComparatorBuilder> whereName() {
return on("name");
}
public Query, java.lang.Boolean, JAXXObjectActionSupportComparatorBuilder> whereSelectedKey() {
return on("selectedKey");
}
public Query, java.lang.String, JAXXObjectActionSupportComparatorBuilder> whereText() {
return on("text");
}
public Query, java.lang.String, JAXXObjectActionSupportComparatorBuilder> whereTooltipText() {
return on("tooltipText");
}
}
public static final class JAXXObjectActionSupportInstanceBuilder extends AbstractJavaBeanInstanceBuilder, JAXXObjectActionSupportInstanceBuilder> {
protected JAXXObjectActionSupportInstanceBuilder() {
super(JAXXObjectActionSupportJavaBeanDefinition.class);
}
protected JAXXObjectActionSupportInstanceBuilder(JAXXObjectActionSupportJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public JAXXObjectActionSupportInstanceBuilder addKeyStrokeToText(java.lang.Boolean value) {
return set("addKeyStrokeToText", value);
}
public JAXXObjectActionSupportInstanceBuilder addMnemonicAsKeyStroke(java.lang.Boolean value) {
return set("addMnemonicAsKeyStroke", value);
}
public JAXXObjectActionSupportInstanceBuilder checkMenuItemIsArmed(java.lang.Boolean value) {
return set("checkMenuItemIsArmed", value);
}
public JAXXObjectActionSupportInstanceBuilder displayMnemonicIndexKey(java.lang.Integer value) {
return set("displayMnemonicIndexKey", value);
}
public JAXXObjectActionSupportInstanceBuilder editor(javax.swing.AbstractButton value) {
return set("editor", value);
}
public JAXXObjectActionSupportInstanceBuilder enabled(java.lang.Boolean value) {
return set("enabled", value);
}
public JAXXObjectActionSupportInstanceBuilder icon(javax.swing.Icon value) {
return set("icon", value);
}
public JAXXObjectActionSupportInstanceBuilder keyStroke(javax.swing.KeyStroke value) {
return set("keyStroke", value);
}
public JAXXObjectActionSupportInstanceBuilder largeIcon(javax.swing.Icon value) {
return set("largeIcon", value);
}
public JAXXObjectActionSupportInstanceBuilder mnemonic(java.lang.Integer value) {
return set("mnemonic", value);
}
public JAXXObjectActionSupportInstanceBuilder name(java.lang.String value) {
return set("name", value);
}
public JAXXObjectActionSupportInstanceBuilder selectedKey(java.lang.Boolean value) {
return set("selectedKey", value);
}
public JAXXObjectActionSupportInstanceBuilder text(java.lang.String value) {
return set("text", value);
}
public JAXXObjectActionSupportInstanceBuilder tooltipText(java.lang.String value) {
return set("tooltipText", value);
}
public JAXXObjectActionSupportInstanceBuilder ui(org.nuiton.jaxx.runtime.JAXXObject value) {
return set("ui", value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy