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

com.vaadin.v7.shared.ui.grid.GridStaticSectionState Maven / Gradle / Ivy

There is a newer version: 8.27.3
Show newest version
/*
 * Copyright (C) 2000-2024 Vaadin Ltd
 *
 * This program is available under Vaadin Commercial License and Service Terms.
 *
 * See  for the full
 * license.
 */
package com.vaadin.v7.shared.ui.grid;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.vaadin.shared.Connector;

/**
 * Shared state for Grid headers and footers.
 *
 * @since 7.4
 * @author Vaadin Ltd
 */
public class GridStaticSectionState implements Serializable {

    public static class CellState implements Serializable {
        public String text = "";

        public String html = "";

        public Connector connector = null;

        public GridStaticCellType type = GridStaticCellType.TEXT;

        public String columnId;

        public String styleName = null;
    }

    public static class RowState implements Serializable {
        public List cells = new ArrayList();

        public boolean defaultRow = false;

        /**
         * Map from column id set to cell state for merged state.
         */
        public Map, CellState> cellGroups = new HashMap, CellState>();

        /**
         * The style name for the row. Null if none.
         */
        public String styleName = null;
    }

    public List rows = new ArrayList();

    public boolean visible = true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy