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

org.teamapps.dto.UiWorkSpaceLayoutView 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", defaultImpl = UiWorkSpaceLayoutView.class)
public class UiWorkSpaceLayoutView implements UiObject {


	protected String viewName;
	protected String tabIcon;
	protected String tabCaption;
	protected UiClientObjectReference component;
	protected boolean tabCloseable = true;
	protected boolean lazyLoading = false;
	protected boolean visible = true;

	/**
	 * @deprecated Only for Jackson deserialization. Use the other constructor instead.
	 */
	@Deprecated
	public UiWorkSpaceLayoutView() {
		// default constructor for Jackson
	}

	public UiWorkSpaceLayoutView(String viewName, String tabIcon, String tabCaption, UiClientObjectReference component) {
		this.viewName = viewName;
		this.tabIcon = tabIcon;
		this.tabCaption = tabCaption;
		this.component = component;
	}

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

	@SuppressWarnings("unchecked")
	public String toString() {
		return new StringBuilder(getClass().getSimpleName()).append(": ")
				.append("viewName=" + viewName).append(", ")
				.append("tabIcon=" + tabIcon).append(", ")
				.append("tabCaption=" + tabCaption).append(", ")
				.append("tabCloseable=" + tabCloseable).append(", ")
				.append("lazyLoading=" + lazyLoading).append(", ")
				.append("visible=" + visible).append(", ")
				.append(component != null ? "component={" + component.toString() + "}" : "")
				.toString();
	}

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

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

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

	@com.fasterxml.jackson.annotation.JsonGetter("component")
	public UiClientObjectReference getComponent() {
		return component;
	}

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

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

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

	@com.fasterxml.jackson.annotation.JsonSetter("tabCloseable")
	public UiWorkSpaceLayoutView setTabCloseable(boolean tabCloseable) {
		this.tabCloseable = tabCloseable;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("lazyLoading")
	public UiWorkSpaceLayoutView setLazyLoading(boolean lazyLoading) {
		this.lazyLoading = lazyLoading;
		return this;
	}

	@com.fasterxml.jackson.annotation.JsonSetter("visible")
	public UiWorkSpaceLayoutView setVisible(boolean visible) {
		this.visible = visible;
		return this;
	}




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy