List of usage examples for com.google.gwt.user.client.ui DeckLayoutPanel showWidget
public void showWidget(Widget widget)
From source file:edu.caltech.ipac.firefly.ui.PopoutWidget.java
void showOneView(int showIdx) { if (showIdx > _expandedList.size() - 1) showIdx = 0;// w w w.j a v a 2s. c o m _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(); }
From source file:org.geosdi.geoplatform.gui.client.widget.NotifyListPanel.java
License:Open Source License
public NotifyListPanel(final List<SingleNotify> listComponent, final DeckLayoutPanel deckLayoutPanel) { this.listComponent = listComponent; initWidget(uiBinder.createAndBindUi(this)); ScrollPanel scrollPanel = new ScrollPanel(); HTMLPanel newsPanel = new HTMLPanel(""); newsPanel.setWidth("100%"); newsPanel.setHeight("100%"); scrollPanel.setSize("400px", "250px"); for (int i = 0; i < listComponent.size(); i++) { final int j = i + 1; SingleNotify singleNotify = listComponent.get(i); singleNotify.setIndex(j);/* w w w .j a v a 2s . c om*/ singleNotify.setStyleName(style.singleNews(), true); deckLayoutPanel.insert(new NotifyMessagePanel(listComponent.get(i)), j); singleNotify.addDomHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { deckLayoutPanel.setAnimationDuration(300); deckLayoutPanel.showWidget((j)); } }, ClickEvent.getType()); newsPanel.add(singleNotify); } scrollPanel.add(newsPanel); centerPanel.add(scrollPanel); }