![JAR search and dependency download from the Maven repository](/logo.png)
org.bonitasoft.web.designer.model.page.Tab Maven / Gradle / Ivy
/**
* Copyright (C) 2015 BonitaSoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.bonitasoft.web.designer.model.page;
import java.util.UUID;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.bonitasoft.web.designer.model.JsonViewPersistence;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;
public class Tab {
private Container container = new Container();
private String title;
private String id = UUID.randomUUID().toString();
private String active;
@JsonView({ JsonViewPersistence.class })
public Container getContainer() {
return container;
}
public void setContainer(Container container) {
this.container = container;
}
@JsonView({ JsonViewPersistence.class })
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
@JsonIgnore
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
@JsonView({ JsonViewPersistence.class })
public String getActive() {
return active;
}
public void setActive(String active) {
this.active = active;
}
@Override
public boolean equals(final Object obj) {
if (obj instanceof Tab) {
var other = (Tab) obj;
return new EqualsBuilder()
.append(container, other.container)
.append(title, other.title)
.append(active, other.active)
.isEquals();
} else {
return false;
}
}
@Override
public int hashCode() {
return new HashCodeBuilder(17, 37)
.append(container)
.append(title)
.append(active)
.toHashCode();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy