Example usage for com.google.gwt.query.client.css CSS VISIBILITY

List of usage examples for com.google.gwt.query.client.css CSS VISIBILITY

Introduction

In this page you can find the example usage for com.google.gwt.query.client.css CSS VISIBILITY.

Prototype

VisibilityProperty VISIBILITY

To view the source code for com.google.gwt.query.client.css CSS VISIBILITY.

Click Source Link

Document

The visibility property specifies whether the boxes generated by an element are rendered.

Usage

From source file:cimav.client.view.nomina.HorasExtrasUI.java

private void buildGrid() {

    List<HoraExtra> list = new ArrayList<>();
    provider = new ListDataProvider<>(list);

    ICustomDataGridResource dataGridResource = GWT.create(ICustomDataGridResource.class);
    dataGridResource.dataGridStyle().ensureInjected();

    dataGrid = new DataGrid<>(60, dataGridResource);

    //dataGrid = new DataGrid<>(provider.getKeyProvider());
    dataGrid.getElement().setId("idDataGrid");

    dataGrid.setAutoHeaderRefreshDisabled(true);

    dataGrid.setEmptyTableWidget(new Label("Sin Horas Extras"));

    dataGrid.setPageSize(20);/*ww w . ja  va  2  s .c  o  m*/

    diaCell = new DatePickerCell(DateTimeFormat.getFormat(DateTimeFormat.PredefinedFormat.DATE_MEDIUM));
    horasCell = new NomCantidadInputCell();

    initTableColumns();

    // Add the CellList to the adapter in the database.
    provider.addDataDisplay(dataGrid);

    dataGrid.addRowHoverHandler(new RowHoverEvent.Handler() {
        @Override
        public void onRowHover(RowHoverEvent event) {
            TableRowElement rowEle = event.getHoveringRow();
            Element removeHoraExtraEle = rowEle.getElementsByTagName("a").getItem(0);
            if (event.isUnHover()) {
                GQuery.$(removeHoraExtraEle).css(CSS.VISIBILITY.with(Style.Visibility.HIDDEN));
            } else {
                GQuery.$(removeHoraExtraEle).css(CSS.VISIBILITY.with(Style.Visibility.VISIBLE));
            }
        }
    });

}

From source file:cimav.client.view.nomina.NominaFaltasUI.java

private void buildGrid() {

    List<Incidencia> list = new ArrayList<>();
    provider = new ListDataProvider<>(list);

    ICustomDataGridResource dataGridResource = GWT.create(ICustomDataGridResource.class);
    dataGridResource.dataGridStyle().ensureInjected();

    dataGrid = new DataGrid<>(60, dataGridResource);

    //dataGrid = new DataGrid<>(provider.getKeyProvider());
    dataGrid.getElement().setId("idDataGrid");

    dataGrid.setAutoHeaderRefreshDisabled(true);

    dataGrid.setEmptyTableWidget(new Label("Sin incidencias"));

    dataGrid.setPageSize(20);//from  w w w . j a  va2 s  .  c  o m

    fechaInicioCell = new DatePickerCell(DateTimeFormat.getFormat(PredefinedFormat.DATE_MEDIUM));
    diasCell = new NomIntegerInputCell("80");
    folioCell = new NomTextInputCell();

    initTableColumns();

    //        // Add the CellList to the adapter in the database.
    provider.addDataDisplay(dataGrid);

    dataGrid.addRowHoverHandler(new RowHoverEvent.Handler() {
        @Override
        public void onRowHover(RowHoverEvent event) {
            TableRowElement rowEle = event.getHoveringRow();
            Element removeFaltaEle = rowEle.getElementsByTagName("a").getItem(0);
            if (event.isUnHover()) {
                GQuery.$(removeFaltaEle).css(CSS.VISIBILITY.with(Style.Visibility.HIDDEN));
            } else {
                GQuery.$(removeFaltaEle).css(CSS.VISIBILITY.with(Style.Visibility.VISIBLE));
            }
        }
    });

}

From source file:cimav.client.view.nomina.NominaSaldoUI.java

private void buildGrid() {

    List<Movimiento> nominaQuincenalList = new ArrayList<>();
    provider = new ListDataProvider<>(nominaQuincenalList);

    ICustomDataGridResource dataGridResource = GWT.create(ICustomDataGridResource.class);
    dataGridResource.dataGridStyle().ensureInjected();

    dataGrid = new DataGrid<>(60, dataGridResource);

    //dataGrid = new DataGrid<>(provider.getKeyProvider());

    dataGrid.getElement().setId("idDataGrid");

    dataGrid.setAutoHeaderRefreshDisabled(true);

    dataGrid.setEmptyTableWidget(new Label("Sin movimientos"));

    dataGrid.setPageSize(20);/*from  w w  w. j a v a2  s  .c  o m*/

    quincenasCell = new NomIntegerInputCell("24");
    saldoCell = new NomCantidadInputCell();
    permanenteCell = new CheckboxCell();

    initTableColumns();

    // Add the CellList to the adapter in the database.
    provider.addDataDisplay(dataGrid);

    dataGrid.addRowHoverHandler(new RowHoverEvent.Handler() {
        @Override
        public void onRowHover(RowHoverEvent event) {
            TableRowElement rowEle = event.getHoveringRow();
            Element removeSaldoEle = rowEle.getElementsByTagName("a").getItem(0);
            if (event.isUnHover()) {
                GQuery.$(removeSaldoEle).css(CSS.VISIBILITY.with(Style.Visibility.HIDDEN));
            } else {
                GQuery.$(removeSaldoEle).css(CSS.VISIBILITY.with(Style.Visibility.VISIBLE));
            }
        }
    });

}