Skip to content

Instantly share code, notes, and snippets.

@roberto-filho
Created December 3, 2012 19:07
Show Gist options
  • Save roberto-filho/4197168 to your computer and use it in GitHub Desktop.
Save roberto-filho/4197168 to your computer and use it in GitHub Desktop.
Um manager de filtros dinâmicos
public class FilterStore extends Observable {
Map<String, String> campos;
Map<String, String> valores = Maps.newHashMap();
public FilterStore(Map<String, String> campos) {
this.campos = campos;
}
public void atualizar(String campo, String valor) {
// Aqui o camarada atualiza os valores de cada campo
// contidos no map "valores"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment