package com.vaadin.addon.spreadsheet.shared;
/*
* #%L
* Vaadin Spreadsheet
* %%
* Copyright (C) 2013 - 2015 Vaadin Ltd
* %%
* This program is available under Commercial Vaadin Add-On License 3.0
* (CVALv3).
*
* See the file license.html distributed with this software for more
* information about licensing.
*
* You should have received a copy of the CVALv3 along with this program.
* If not, see <http://vaadin.com/license/cval-3>.
* #L%
*/
import java.io.Serializable;
/**
* Shared state for the grouping feature
*/
public class GroupingData implements Serializable {
public int startIndex;
public int endIndex;
public int level;
/**
* index unique for this group, for collapse/expand
*/
public int uniqueIndex;
public boolean collapsed;
public GroupingData() {
}
public GroupingData(long start, long end, short level, long unique,
boolean coll) {
this((int) start, (int) end, (int) level, (int) unique, coll);
}
public GroupingData(int start, int end, int level, int unique, boolean coll) {
startIndex = start;
endIndex = end;
this.level = level;
uniqueIndex = unique;
collapsed = coll;
}
}