84 lines
1.5 KiB
Java
84 lines
1.5 KiB
Java
package org.gcube.application.geoportalcommon.shared.guipresentation;
|
|
|
|
import java.io.Serializable;
|
|
|
|
import javax.xml.bind.annotation.XmlAccessType;
|
|
import javax.xml.bind.annotation.XmlAccessorType;
|
|
import javax.xml.bind.annotation.XmlAttribute;
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
/**
|
|
* The Class Header.
|
|
*
|
|
* @author Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it
|
|
*
|
|
* Sep 26, 2022
|
|
*/
|
|
@XmlRootElement(name = "header")
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
public class Header implements Serializable {
|
|
|
|
private static final long serialVersionUID = 1914492109448706008L;
|
|
|
|
@XmlAttribute
|
|
private String title;
|
|
|
|
@XmlAttribute
|
|
private String subtitle;
|
|
|
|
/**
|
|
* Instantiates a new header.
|
|
*/
|
|
public Header() {
|
|
|
|
}
|
|
|
|
/**
|
|
* Gets the title.
|
|
*
|
|
* @return the title
|
|
*/
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
/**
|
|
* Gets the subtitle.
|
|
*
|
|
* @return the subtitle
|
|
*/
|
|
public String getSubtitle() {
|
|
return subtitle;
|
|
}
|
|
|
|
/**
|
|
* Sets the title.
|
|
*
|
|
* @param title the new title
|
|
*/
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
|
|
/**
|
|
* Sets the subtitle.
|
|
*
|
|
* @param subtitle the new subtitle
|
|
*/
|
|
public void setSubtitle(String subtitle) {
|
|
this.subtitle = subtitle;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
StringBuilder builder = new StringBuilder();
|
|
builder.append("Header [title=");
|
|
builder.append(title);
|
|
builder.append(", subtitle=");
|
|
builder.append(subtitle);
|
|
builder.append("]");
|
|
return builder.toString();
|
|
}
|
|
|
|
}
|