Created
November 30, 2012 13:21
-
-
Save roberto-filho/4175715 to your computer and use it in GitHub Desktop.
LancamentoFiscalFilter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.com.germantech.ecf.telas.filtros; | |
import org.eclipse.jface.viewers.Viewer; | |
import org.eclipse.jface.viewers.ViewerFilter; | |
import br.com.germantech.ecf.aplicacao.helpers.ReflectionHelper; | |
public class PropertyFiscalFilter extends ViewerFilter{ | |
private String searchString ; | |
private String property; | |
private void setSearchText(String s) { | |
this.searchString = ".*" + s + ".*"; | |
} | |
public void setProperty(String property) { | |
this.property = property; | |
} | |
@Override | |
public boolean select(Viewer viewer, Object parentElement, Object element) { | |
return ReflectionHelper.compare(element, this.searchString, this.atributo); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment