private void filtrar() { grid.getDataProvider().setFilter(txtBuscar.getText()); if (grid.getDataProvider().hasFilter()) { int alto = grid.getDataProvider().resulted.size() * 15; // grid.setHeight(alto + "mm"); } else { int alto = grid.getData().size() * 15; // grid.setHeight(alto + "mm"); } grid.getDataProvider().refresh(); }
private void style() { MyResource.INSTANCE.getStlUICliente().ensureInjected(); btnSelect.addStyleName(MyResource.INSTANCE.getStlUICliente().pushButton()); btnBack.addStyleName(MyResource.INSTANCE.getStlUICliente().pushButton()); // main.setWidth("100%"); headerGridDni.setWidth("40%"); headerGridCliente.setWidth("60%"); // setHeightContainer(55); // setWidthGrid(); // scrollPanel.setWidth("100%"); // scrollPanel.setHeight("auto"); txtBuscar.addStyleName(MyResource.INSTANCE.getStlUICliente().txtBuscarUICliente()); grid.addStyleName(MyResource.INSTANCE.getStlUICliente().gridUICliente()); headerGridDni.getElement().getStyle().setFloat(Style.Float.LEFT); headerGridCliente.getElement().getStyle().setFloat(Style.Float.LEFT); }