Example usage for com.google.gwt.user.client.ui DeckLayoutPanel getWidgetCount

List of usage examples for com.google.gwt.user.client.ui DeckLayoutPanel getWidgetCount

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui DeckLayoutPanel getWidgetCount.

Prototype

public int getWidgetCount() 

Source Link

Usage

From source file:edu.caltech.ipac.firefly.ui.PopoutWidget.java

void showOneView(int showIdx) {

    if (showIdx > _expandedList.size() - 1)
        showIdx = 0;/*from   w  w  w .  ja v a  2 s .c om*/

    _popoutUI.reinit(ViewType.ONE, _expandRoot);
    DeckLayoutPanel expandDeck = _popoutUI.getDeck();

    updateExpandRoot(_expandPopout.getAvailableSize());

    for (PopoutWidget popout : _expandedList) {
        GwtUtil.DockLayout.setWidgetChildSize(popout._clickTitlePanel, 0);
        popout._movablePanel.forceLayout();
        popout._stagePanel.setWidget(null);
        popout._movablePanel.setWidth("100%");
        popout._movablePanel.setHeight("100%");
        expandDeck.add(popout._movablePanel);
        GwtUtil.setStyle(popout._movablePanel, "border", "none");
    }

    _expandRoot.forceLayout();
    if (expandDeck.getWidgetCount() > 0)
        expandDeck.showWidget(showIdx);
    onResize();
    if (_expandedList.size() > 1)
        setViewType(ViewType.ONE);
    _popoutUI.updateOneImageNavigationPanel();
    AllPlots.getInstance().updateUISelectedLook();
}