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

org.butterfaces.model.table.TableColumnVisibility Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
package org.butterfaces.model.table;

import java.util.ArrayList;
import java.util.List;

/**
 * DTO used by {@link TableColumnVisibilityModel} to handle column visibility changes by user interaction.
 */
public class TableColumnVisibility {
    private final String tableIdentifier;
    private final List visibleColumns = new ArrayList<>();
    private final List invisibleColumns = new ArrayList<>();

    public TableColumnVisibility(final String tableIdentifier,
                                 final List visibleColumns,
                                 final List invisibleColumns) {
        this.tableIdentifier = tableIdentifier;
        this.visibleColumns.addAll(visibleColumns);
        this.invisibleColumns.addAll(invisibleColumns);
    }

    public String getTableIdentifier() {
        return tableIdentifier;
    }

    public List getInvisibleColumns() {
        return invisibleColumns;
    }

    public List getVisibleColumns() {
        return visibleColumns;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy