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

org.teamapps.dto.UiFontStyle Maven / Gradle / Ivy

There is a newer version: 0.9.194
Show newest version
package org.teamapps.dto;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;

/**
 * THIS IS GENERATED CODE!
 * PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UiFontStyle implements UiObject {


	protected UiColor fontColor;
	protected UiColor backgroundColor;
	protected boolean bold;
	protected boolean underline;
	protected boolean italic;
	protected float relativeFontSize = 1;

	public UiFontStyle() {
	}

	@com.fasterxml.jackson.annotation.JsonIgnore
	public UiObjectType getUiObjectType() {
		return UiObjectType.UI_FONT_STYLE;
	}

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("bold=" + bold).append(", ")
				.append("underline=" + underline).append(", ")
				.append("italic=" + italic).append(", ")
				.append("relativeFontSize=" + relativeFontSize).append(", ")
				.append(fontColor != null ? "fontColor={" + fontColor.toString() + "}" : "").append(", ")
				.append(backgroundColor != null ? "backgroundColor={" + backgroundColor.toString() + "}" : "")
				.toString();
	}

	@com.fasterxml.jackson.annotation.JsonGetter("fontColor")
	public UiColor getFontColor() {
		return fontColor;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
	public UiColor getBackgroundColor() {
		return backgroundColor;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("bold")
	public boolean getBold() {
		return bold;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("underline")
	public boolean getUnderline() {
		return underline;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("italic")
	public boolean getItalic() {
		return italic;
	}

	@com.fasterxml.jackson.annotation.JsonGetter("relativeFontSize")
	public float getRelativeFontSize() {
		return relativeFontSize;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("fontColor")
	public UiFontStyle setFontColor(UiColor fontColor) {
		this.fontColor = fontColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
	public UiFontStyle setBackgroundColor(UiColor backgroundColor) {
		this.backgroundColor = backgroundColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("bold")
	public UiFontStyle setBold(boolean bold) {
		this.bold = bold;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("underline")
	public UiFontStyle setUnderline(boolean underline) {
		this.underline = underline;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("italic")
	public UiFontStyle setItalic(boolean italic) {
		this.italic = italic;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("relativeFontSize")
	public UiFontStyle setRelativeFontSize(float relativeFontSize) {
		this.relativeFontSize = relativeFontSize;
		return this;
	}






}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy