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.191
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", defaultImpl = UiFontStyle.class)
public class UiFontStyle implements UiObject {


	protected String fontColor;
	protected String 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("fontColor=" + fontColor).append(", ")
				.append("backgroundColor=" + backgroundColor).append(", ")
				.append("bold=" + bold).append(", ")
				.append("underline=" + underline).append(", ")
				.append("italic=" + italic).append(", ")
				.append("relativeFontSize=" + relativeFontSize)
				.toString();
	}

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

	@com.fasterxml.jackson.annotation.JsonGetter("backgroundColor")
	public String 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(String fontColor) {
		this.fontColor = fontColor;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("backgroundColor")
	public UiFontStyle setBackgroundColor(String 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 - 2024 Weber Informatics LLC | Privacy Policy