
com.github.apetrelli.gwtintegration.widget.client.panel.ShowOnePanel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-integration-widget Show documentation
Show all versions of gwt-integration-widget Show documentation
A widget collection for GWT.
The newest version!
package com.github.apetrelli.gwtintegration.widget.client.panel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.WidgetCollection;
public class ShowOnePanel extends FlowPanel {
public void show(int index) {
WidgetCollection widgets = getChildren();
int i = 0;
for (Widget widget: widgets) {
widget.setVisible(i == index);
i++;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy