org.nuiton.jaxx.runtime.swing.TabInfoJavaBeanDefinition 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 = "Fri Oct 22 17:26:36 CEST 2021")
public final class TabInfoJavaBeanDefinition extends AbstractJavaBeanDefinition {
@Override
protected final ImmutableSet> loadAcceptedTypes() {
return ImmutableSet.>builder()
.add(TabInfo.class)
.build();
}
@Override
protected final ImmutableMap> loadTypes() {
return ImmutableMap.>builder()
.put("background", java.awt.Color.class)
.put("containerId", java.lang.String.class)
.put("disabledIcon", javax.swing.Icon.class)
.put("displayedMnemonicIndex", int.class)
.put("enabled", boolean.class)
.put("foreground", java.awt.Color.class)
.put("icon", javax.swing.Icon.class)
.put("id", java.lang.String.class)
.put("mnemonic", int.class)
.put("properties", java.util.Set.class)
.put("tabComponent", javax.swing.JComponent.class)
.put("tabComponentStr", java.lang.String.class)
.put("tabIndex", int.class)
.put("title", java.lang.String.class)
.put("toolTipText", java.lang.String.class)
.put("valid", boolean.class)
.build();
}
@SuppressWarnings("unchecked")
@Override
protected final ImmutableMap> loadGetters() {
return (ImmutableMap) ImmutableMap.>builder()
.put("background", TabInfo::getBackground)
.put("containerId", TabInfo::getContainerId)
.put("disabledIcon", TabInfo::getDisabledIcon)
.put("displayedMnemonicIndex", TabInfo::getDisplayedMnemonicIndex)
.put("enabled", TabInfo::isEnabled)
.put("foreground", TabInfo::getForeground)
.put("icon", TabInfo::getIcon)
.put("id", TabInfo::getId)
.put("mnemonic", TabInfo::getMnemonic)
.put("properties", TabInfo::getProperties)
.put("tabComponent", TabInfo::getTabComponent)
.put("tabComponentStr", TabInfo::getTabComponentStr)
.put("tabIndex", TabInfo::getTabIndex)
.put("title", TabInfo::getTitle)
.put("toolTipText", TabInfo::getToolTipText)
.put("valid", TabInfo::isValid)
.build();
}
@SuppressWarnings("unchecked")
@Override
protected final ImmutableMap> loadSetters() {
return (ImmutableMap) ImmutableMap.>builder()
.put("background", (e, v) -> e.setBackground((java.awt.Color) v))
.put("containerId", (e, v) -> e.setContainerId((java.lang.String) v))
.put("disabledIcon", (e, v) -> e.setDisabledIcon((javax.swing.Icon) v))
.put("displayedMnemonicIndex", (e, v) -> e.setDisplayedMnemonicIndex((int) v))
.put("enabled", (e, v) -> e.setEnabled((boolean) v))
.put("foreground", (e, v) -> e.setForeground((java.awt.Color) v))
.put("icon", (e, v) -> e.setIcon((javax.swing.Icon) v))
.put("mnemonic", (e, v) -> e.setMnemonic((int) v))
.put("properties", (e, v) -> e.setProperties((java.util.Set< java.lang.String >) v))
.put("tabComponent", (e, v) -> e.setTabComponent((javax.swing.JComponent) v))
.put("tabComponentStr", (e, v) -> e.setTabComponentStr((java.lang.String) v))
.put("tabIndex", (e, v) -> e.setTabIndex((int) v))
.put("title", (e, v) -> e.setTitle((java.lang.String) v))
.put("toolTipText", (e, v) -> e.setToolTipText((java.lang.String) v))
.put("valid", (e, v) -> e.setValid((boolean) v))
.build();
}
public static TabInfoPredicate predicate() {
return new TabInfoPredicate();
}
public static TabInfoStream stream(Collection elements) {
return new TabInfoStream(elements);
}
public static TabInfoComparatorBuilder comparator() {
return new TabInfoComparatorBuilder();
}
public static TabInfoInstanceBuilder instance() {
return new TabInfoInstanceBuilder();
}
@Override
public TabInfoPredicate predicateBuilder() {
return new TabInfoPredicate(this);
}
@Override
public TabInfoComparatorBuilder comparatorBuilder() {
return new TabInfoComparatorBuilder(this);
}
@Override
public TabInfoInstanceBuilder instanceBuilder() {
return new TabInfoInstanceBuilder(this);
}
public static final class TabInfoPredicate extends AbstractJavaBeanPredicate {
protected TabInfoPredicate() {
super(TabInfoJavaBeanDefinition.class);
}
protected TabInfoPredicate(TabInfoJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public ObjectQuery whereBackground() {
return where("background");
}
public StringQuery whereContainerId() {
return whereString("containerId");
}
public ObjectQuery whereDisabledIcon() {
return where("disabledIcon");
}
public PrimitiveObjectQuery whereDisplayedMnemonicIndex() {
return wherePrimitive("displayedMnemonicIndex");
}
public PrimitiveBooleanQuery whereEnabled() {
return wherePrimitiveBoolean("enabled");
}
public ObjectQuery whereForeground() {
return where("foreground");
}
public ObjectQuery whereIcon() {
return where("icon");
}
public StringQuery whereId() {
return whereString("id");
}
public PrimitiveObjectQuery whereMnemonic() {
return wherePrimitive("mnemonic");
}
public ObjectQuery whereProperties() {
return where("properties");
}
public ObjectQuery whereTabComponent() {
return where("tabComponent");
}
public StringQuery whereTabComponentStr() {
return whereString("tabComponentStr");
}
public PrimitiveObjectQuery whereTabIndex() {
return wherePrimitive("tabIndex");
}
public StringQuery whereTitle() {
return whereString("title");
}
public StringQuery whereToolTipText() {
return whereString("toolTipText");
}
public PrimitiveBooleanQuery whereValid() {
return wherePrimitiveBoolean("valid");
}
}
public static final class TabInfoStream extends AbstractJavaBeanStream {
protected TabInfoStream(Collection elements) {
super(TabInfoJavaBeanDefinition.class, elements);
}
protected TabInfoStream(TabInfoJavaBeanDefinition javaBeanDefinition, Collection elements) {
super(javaBeanDefinition, elements);
}
public StreamObjectQuery whereBackground() {
return where("background");
}
public StreamStringQuery whereContainerId() {
return whereString("containerId");
}
public StreamObjectQuery whereDisabledIcon() {
return where("disabledIcon");
}
public StreamPrimitiveObjectQuery whereDisplayedMnemonicIndex() {
return wherePrimitive("displayedMnemonicIndex");
}
public StreamPrimitiveBooleanQuery whereEnabled() {
return wherePrimitiveBoolean("enabled");
}
public StreamObjectQuery whereForeground() {
return where("foreground");
}
public StreamObjectQuery whereIcon() {
return where("icon");
}
public StreamStringQuery whereId() {
return whereString("id");
}
public StreamPrimitiveObjectQuery whereMnemonic() {
return wherePrimitive("mnemonic");
}
public StreamObjectQuery whereProperties() {
return where("properties");
}
public StreamObjectQuery whereTabComponent() {
return where("tabComponent");
}
public StreamStringQuery whereTabComponentStr() {
return whereString("tabComponentStr");
}
public StreamPrimitiveObjectQuery whereTabIndex() {
return wherePrimitive("tabIndex");
}
public StreamStringQuery whereTitle() {
return whereString("title");
}
public StreamStringQuery whereToolTipText() {
return whereString("toolTipText");
}
public StreamPrimitiveBooleanQuery whereValid() {
return wherePrimitiveBoolean("valid");
}
}
public static final class TabInfoComparatorBuilder extends AbstractJavaBeanComparatorBuilder {
protected TabInfoComparatorBuilder() {
super(TabInfoJavaBeanDefinition.class);
}
protected TabInfoComparatorBuilder(TabInfoJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public Query whereContainerId() {
return on("containerId");
}
public Query whereDisplayedMnemonicIndex() {
return on("displayedMnemonicIndex");
}
public Query whereEnabled() {
return on("enabled");
}
public Query whereId() {
return on("id");
}
public Query whereMnemonic() {
return on("mnemonic");
}
public Query whereTabComponentStr() {
return on("tabComponentStr");
}
public Query whereTabIndex() {
return on("tabIndex");
}
public Query whereTitle() {
return on("title");
}
public Query whereToolTipText() {
return on("toolTipText");
}
public Query whereValid() {
return on("valid");
}
}
public static final class TabInfoInstanceBuilder extends AbstractJavaBeanInstanceBuilder {
protected TabInfoInstanceBuilder() {
super(TabInfoJavaBeanDefinition.class);
}
protected TabInfoInstanceBuilder(TabInfoJavaBeanDefinition javaBeanDefinition) {
super(javaBeanDefinition);
}
public TabInfoInstanceBuilder background(java.awt.Color value) {
return set("background", value);
}
public TabInfoInstanceBuilder containerId(java.lang.String value) {
return set("containerId", value);
}
public TabInfoInstanceBuilder disabledIcon(javax.swing.Icon value) {
return set("disabledIcon", value);
}
public TabInfoInstanceBuilder displayedMnemonicIndex(java.lang.Integer value) {
return set("displayedMnemonicIndex", value);
}
public TabInfoInstanceBuilder enabled(java.lang.Boolean value) {
return set("enabled", value);
}
public TabInfoInstanceBuilder foreground(java.awt.Color value) {
return set("foreground", value);
}
public TabInfoInstanceBuilder icon(javax.swing.Icon value) {
return set("icon", value);
}
public TabInfoInstanceBuilder mnemonic(java.lang.Integer value) {
return set("mnemonic", value);
}
public TabInfoInstanceBuilder properties(java.util.Set value) {
return set("properties", value);
}
public TabInfoInstanceBuilder tabComponent(javax.swing.JComponent value) {
return set("tabComponent", value);
}
public TabInfoInstanceBuilder tabComponentStr(java.lang.String value) {
return set("tabComponentStr", value);
}
public TabInfoInstanceBuilder tabIndex(java.lang.Integer value) {
return set("tabIndex", value);
}
public TabInfoInstanceBuilder title(java.lang.String value) {
return set("title", value);
}
public TabInfoInstanceBuilder toolTipText(java.lang.String value) {
return set("toolTipText", value);
}
public TabInfoInstanceBuilder valid(java.lang.Boolean value) {
return set("valid", value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy