Example usage for com.vaadin.server ThemeResource equals

List of usage examples for com.vaadin.server ThemeResource equals

Introduction

In this page you can find the example usage for com.vaadin.server ThemeResource equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Tests if the given object equals this Resource.

Usage

From source file:edu.kit.dama.ui.admin.administration.user.UserDataTablePanel.java

License:Apache License

protected final void addTableFilter(String filterExpression, String columnId,
        UserDataFilter.SearchSpace searchSpace) {
    // Add requested filter
    IndexedContainer container = (IndexedContainer) getUserDataTable().getContainerDataSource();
    UserDataFilter userDataFilter = new UserDataFilter(filterExpression, columnId, searchSpace);
    container.addContainerFilter(userDataFilter);
    filters.put(columnId, new FilterProperties<>(filterExpression, searchSpace));
    // Set filter icon at corresponding table columns if missing
    ThemeResource filterAddIcon = new ThemeResource(IconContainer.FILTER_ADD);
    if (!filterAddIcon.equals(getUserDataTable().getColumnIcon(columnId))) {
        // Set missing filterAddIcon
        getUserDataTable().setColumnIcon(columnId, filterAddIcon);
    }/*  w w w.  j a  v a2 s. c om*/
}

From source file:edu.kit.dama.ui.admin.administration.usergroup.UserGroupTablePanel.java

License:Apache License

protected void addTableFilter(String filterExpression, String columnId,
        UserGroupFilter.SearchSpace searchSpace) {
    // Add requested filter
    IndexedContainer container = (IndexedContainer) getUserGroupTable().getContainerDataSource();
    UserGroupFilter userGroupFilter = new UserGroupFilter(filterExpression, columnId, searchSpace);
    container.addContainerFilter(userGroupFilter);

    filters.put(columnId, new FilterProperties<>(filterExpression, searchSpace));
    // Set filter icon at corresponding table columns if missing
    ThemeResource filterAddIcon = new ThemeResource(IconContainer.FILTER_ADD);
    if (!filterAddIcon.equals(getUserGroupTable().getColumnIcon(columnId))) {
        // Set missing filterAddIcon
        getUserGroupTable().setColumnIcon(columnId, filterAddIcon);
    }/*from  www.  ja  v a  2s  . co m*/
}