Example usage for com.google.gwt.user.cellview.client SimplePager startLoading

List of usage examples for com.google.gwt.user.cellview.client SimplePager startLoading

Introduction

In this page you can find the example usage for com.google.gwt.user.cellview.client SimplePager startLoading.

Prototype

public void startLoading() 

Source Link

Document

Let the page know that the table is loading.

Usage

From source file:org.opennms.features.node.list.gwt.client.PageableNodeList.java

License:Open Source License

private void initializeTables() {

    m_ipInterfaceTable.setPageSize(19);//from   ww w .  java 2s. c  o m
    m_ipInterfaceTable.addSelectEventHandler(this);

    m_ipIfaceDataProvider = new ListDataProvider<IpInterface>();
    m_ipIfaceDataProvider.addDataDisplay(m_ipInterfaceTable);

    SimplePager ipSimplePager = new SimplePager(TextLocation.CENTER,
            (Resources) GWT.create(OnmsSimplePagerResources.class), true, 1000, false);
    ipSimplePager.setWidth("100%");
    ipSimplePager.setDisplay(m_ipInterfaceTable);
    ipSimplePager.startLoading();
    m_ipTableDiv.add(ipSimplePager);

    m_physicalInterfaceTable.setPageSize(20);
    m_physicalInterfaceTable.addSelectEventHandler(this);

    m_physicalIfaceDataProvider = new ListDataProvider<PhysicalInterface>();
    m_physicalIfaceDataProvider.addDataDisplay(m_physicalInterfaceTable);

    SimplePager physicalSimplePager = new SimplePager(TextLocation.CENTER,
            (Resources) GWT.create(OnmsSimplePagerResources.class), true, 1000, false);
    physicalSimplePager.setWidth("100%");
    physicalSimplePager.setDisplay(m_physicalInterfaceTable);
    physicalSimplePager.startLoading();
    m_physTableDiv.add(physicalSimplePager);

    m_ipInterfaceTableDiv.getElement().getStyle().setOverflow(Overflow.AUTO);
    m_physicalTableDiv.getElement().getStyle().setOverflow(Overflow.AUTO);

}